Let say... start porting module/profile.php
[platal.git] / modules / bandeau.php
index 4f77b0c..2a3e34c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -36,11 +36,12 @@ class BandeauModule extends PLModule
         readfile('../htdocs/images/x.png');
         exit();
     }
-    
+
     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)
@@ -49,7 +50,7 @@ class BandeauModule extends PLModule
         readfile('../htdocs/css/bandeau.css');
         exit();
     }
-    
+
 }
 
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: