X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fbandeau.php;h=5e969423c129603febe0ab1df01e3c73128dcb81;hb=1aff3b59c0f46dafe3396c1123a252645805e233;hp=146580eed5986b7d92fc77deaa7f29c910eaefe0;hpb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;p=platal.git diff --git a/modules/bandeau.php b/modules/bandeau.php index 146580e..5e96942 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) { 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 == 'login'); $page->assign('seed', $login); + $page->assign('external', true); } - function handler_css(&$page) + function handler_css($page) { pl_cached_content_headers("text/css"); readfile('../htdocs/css/bandeau.css'); @@ -54,5 +55,5 @@ class BandeauModule extends PLModule } -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>