X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fbandeau.php;h=09d0ad667be6cb207c9cf9f64392af0da451064d;hb=6ae6840d23628e9dbba7b62c58df98b843e34728;hp=2a3e34c72a5e31d9db101f6f2db1d9512fa99e09;hpb=065cd7ed086ef7806f294f92e675f16232704d6a;p=platal.git diff --git a/modules/bandeau.php b/modules/bandeau.php index 2a3e34c..09d0ad6 100644 --- a/modules/bandeau.php +++ b/modules/bandeau.php @@ -1,6 +1,6 @@ $this->make_hook('icone',AUTH_PUBLIC, 'user', NO_HTTPS), - 'bandeau' => $this->make_hook('html', AUTH_PUBLIC, 'user', NO_HTTPS), - 'bandeau.css' => $this->make_hook('css', AUTH_PUBLIC, 'user', NO_HTTPS), + 'bandeau/icone.png' => $this->make_hook('icone', AUTH_PUBLIC, 'user', NO_HTTPS), + 'bandeau' => $this->make_hook('html', AUTH_PUBLIC, 'user', NO_HTTPS), + 'bandeau.css' => $this->make_hook('css', AUTH_PUBLIC, 'user', NO_HTTPS), ); } function handler_icone(&$page) { - header("Content-Type: image/png"); + pl_cached_content_headers("image/png"); readfile('../htdocs/images/x.png'); exit(); } function handler_html(&$page, $login = '') { + pl_cached_content_headers("text/html"); $page->changeTpl('skin/common.bandeau.tpl', NO_SKIN); $page->assign('login', $login == 'login'); $page->assign('seed', $login); @@ -46,7 +47,7 @@ class BandeauModule extends PLModule function handler_css(&$page) { - header("Content-Type: text/css"); + pl_cached_content_headers("text/css"); readfile('../htdocs/css/bandeau.css'); exit(); }