X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fbandeau.php;h=146580eed5986b7d92fc77deaa7f29c910eaefe0;hb=1dd218522cea6ae08998b0ca107c8fec608ddce8;hp=4f77b0c2d8c2206ffbce57bfc3567ccc57717950;hpb=8fc4efa394721853bca6ee0e4f2028f33ed0867d;p=platal.git diff --git a/modules/bandeau.php b/modules/bandeau.php index 4f77b0c..146580e 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); + $page->assign('login', $login == 'login'); + $page->assign('seed', $login); } function handler_css(&$page) { - header("Content-Type: text/css"); + pl_cached_content_headers("text/css"); readfile('../htdocs/css/bandeau.css'); exit(); } - + } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: