X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fbandeau.php;h=0870348dddcc555d31bf92a0c4fac4ddc6a69309;hb=e93255ef54304c697ef7ac101247f23dc5f7b31f;hp=87fa50905f4d564bf2b665bd6031354ab4856e8e;hpb=787bb3d745141f2f85bd947ad7dd775d2c63f908;p=platal.git diff --git a/modules/bandeau.php b/modules/bandeau.php index 87fa509..0870348 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) + 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 = '') + function handler_html($page, $login = '') { + pl_cached_content_headers("text/html"); $page->changeTpl('skin/common.bandeau.tpl', NO_SKIN); - $page->assign('login', $login); + $page->assign('login', $login == 'login'); + $page->assign('seed', $login); + $page->assign('external', true); } - function handler_css(&$page) + function handler_css($page) { - header("Content-Type: text/css"); + pl_cached_content_headers("text/css"); readfile('../htdocs/css/bandeau.css'); exit(); }