Add poison emails in the bandeau.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 30 Oct 2008 21:02:06 +0000 (22:02 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 30 Oct 2008 21:23:15 +0000 (22:23 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/bandeau.php
templates/skin/common.bandeau.tpl

index 24d38be..2a3e34c 100644 (file)
@@ -40,7 +40,8 @@ class BandeauModule extends PLModule
     function handler_html(&$page, $login = '')
     {
         $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)
index 56f6f31..77460e8 100644 (file)
   http://www.polytechnique.org/bandeau.css.
   Pour avoir l'icone, pour des raisons de sécurité il n'y a pas d'accès
   direct, il faut alors rediriger bandeau/icone.png vers celle du site&nbsp;:
-  http://www.polytechnique.org/bandeau/icone.png -->
+  http://www.polytechnique.org/bandeau/icone.png 
+-->
+
+<!-- Don't copy this list of emails!!!
+
+  {poison seed=$login}
+
+  -->
 
 {if !$login && $smarty.session.auth}
   {assign var="login" value="true"}