--- /dev/null
+/***************************************************************************
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************/
+
+#bandeau-X a        { vertical-align: middle; }
+#bandeau-X a:link, #bandeau-X a:visited    { text-decoration: none ; color: #505050; }
+#bandeau-X a:hover   { text-decoration: underline; color: black; }
+#bandeau-X a:active  { color: #CCCCCC ; background: #505050 ; }
+body {margin:0px;}
+#bandeau-X {
+background:#CCCCCC;color:#505050;font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;height:15px;border:none;padding:0;margin:0 }
+#bandeau-X img { vertical-align:middle;border:0;padding:0;margin:0 }
 
     $platal = new Platal('auth', 'banana', 'carnet', 'email', 'events',
                          'geoloc', 'lists', 'marketing', 'payment', 'platal',
                          'profile', 'register', 'search', 'stats', 'admin',
-                         'newsletter', 'axletter');
+                         'newsletter', 'axletter', 'bandeau');
     $platal->run();
 
     exit;
 
--- /dev/null
+<?php
+/***************************************************************************
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************/
+
+class BandeauModule extends PLModule
+{
+    function handlers()
+    {
+        return array(
+            'bandeau/icone.png'  => $this->make_hook('icone',AUTH_PUBLIC),
+            'bandeau'            => $this->make_hook('html', AUTH_PUBLIC),
+            'bandeau.css'                               => $this->make_hook('css', AUTH_PUBLIC),
+        );
+    }
+
+    function handler_icone(&$page)
+    {
+        header("Content-Type: image/png");
+        readfile('../htdocs/images/x.png');
+        exit();
+    }
+    
+    function handler_html(&$page, $login = '')
+    {
+        $page->changeTpl('skin/common.bandeau.tpl', NO_SKIN);
+        $page->assign('login', $login);
+    }
+
+    function handler_css(&$page)
+    {
+        header("Content-Type: text/css");
+        readfile('../htdocs/css/bandeau.css');
+        exit();
+    }
+    
+}
+
+?>
 
+{**************************************************************************}\r
+{*                                                                        *}\r
+{*  Copyright (C) 2003-2007 Polytechnique.org                             *}\r
+{*  http://opensource.polytechnique.org/                                  *}\r
+{*                                                                        *}\r
+{*  This program is free software; you can redistribute it and/or modify  *}\r
+{*  it under the terms of the GNU General Public License as published by  *}\r
+{*  the Free Software Foundation; either version 2 of the License, or     *}\r
+{*  (at your option) any later version.                                   *}\r
+{*                                                                        *}\r
+{*  This program is distributed in the hope that it will be useful,       *}\r
+{*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}\r
+{*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}\r
+{*  GNU General Public License for more details.                          *}\r
+{*                                                                        *}\r
+{*  You should have received a copy of the GNU General Public License     *}\r
+{*  along with this program; if not, write to the Free Software           *}\r
+{*  Foundation, Inc.,                                                     *}\r
+{*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}\r
+{*                                                                        *}\r
+{**************************************************************************}\r
+\r
+       <link rel="stylesheet" media="screen" type="text/css" href="css/bandeau.css"/>\r
 
 {*                                                                        *}
 {**************************************************************************}
 
+<!-- Pour récupérer ce bandeau sur votre site :
+       incluez le fichier http://www.polytechnique.org/bandeau dans vos php
+       ou http://www.polytechnique.org/bandeau/login pour profiter du login
+       automatique. Et rajoutez à la liste de css de vos pages
+       http://www.polytechnique.org/bandeau.css. -->
 
-    <!-- BANDEAU DEBUT -->
-    <table cellspacing="0" cellpadding="1" summary="" class="xdx">
-      <tr>
-        <td>
-          <img alt="" src="images/x.png" />  <a href="http://www.polytechnique.fr/">L'École</a> · <a href="http://www.polytechnique.edu/">Institutional site</a>  ~~  <a href="http://www.fondationx.org/">FX</a> · <a href="http://www.polytechniciens.com/">AX</a>  ~~  <a href="http://www.polytechnique.org/">Polytechnique.org</a> · <a href="http://www.polytechnique.net/{if $smarty.session.auth}login{/if}">Associations polytechniciennes</a> · <a href="http://www.polytechnique.fr/eleves/">Élèves</a> · <a href="http://www.manageurs.com/{if $smarty.session.auth}anciens_accueil.php?asso=X.org{/if}">Manageurs</a>
-        </td>
-      </tr>
-    </table>
-    <!-- BANDEAU FIN -->
+{if !$login && $smarty.session.auth}
+       {assign var="login" value="true"}
+{/if}
+
+<div id="bandeau-X">
+       <img href="http://www.polytechnique.org/bandeau/icone.png" alt=""/>
+       <a href="http://www.polytechnique.fr/">L'École</a> ·
+       <a href="http://www.polytechnique.edu/">Institutional site</a>
+       ˜˜
+       <a href="http://www.fondationx.org/">FX</a> ·
+       <a href="http://www.polytechniciens.com/">AX</a>
+       ˜˜
+       <a href="http://www.polytechnique.org">Polytechnique.org</a> ·
+       <a href="http://www.polytechnique.net{if $login}/login{/if}">Associations polytechniciennes</a> ·
+       <a href="http://www.polytechnique.fr/eleves/">Élèves</a> ·
+       <a href="http://www.manageurs.com/{if $login}anciens_accueil.php?asso=X.org{/if}">Manageurs</a>
+</div>
 
 {* vim:set et sw=2 sts=2 sws=2: *}