exit login.php, welcome events/
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 11 Jul 2006 19:27:48 +0000 (19:27 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Tue, 11 Jul 2006 19:27:48 +0000 (19:27 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@438 839d8a87-29fc-0310-9880-83ba4fa771e5

20 files changed:
hooks/tmp.inc.php
htdocs/login.php [deleted file]
modules/core.php
modules/events.php
templates/evenements.tpl
templates/index.tpl
templates/login.tpl
templates/rss.tpl
templates/skin/default.tpl
templates/skin/espace.tpl
templates/skin/humlinux.tpl
templates/skin/linux.tpl
templates/skin/liteskin.tpl
templates/skin/nbviolet.tpl
templates/skin/newxorg.tpl
templates/skin/oldtimes.tpl
templates/skin/openweb.tpl
templates/skin/sharky.tpl
templates/skin/spectral.tpl
templates/skin/trapped.tpl

index dcc6681..db8e254 100644 (file)
@@ -45,7 +45,7 @@ function tmp_menu()
     $globals->menu->addPrivateEntry(XOM_ADMIN,    30, 'Trackers',           'http://trackers.polytechnique.org');
     $globals->menu->addPrivateEntry(XOM_ADMIN,    40, 'Support',            'http://support.polytechnique.org');
 
-    $globals->menu->addPublicEntry(XOM_US,    00, 'Me connecter !',         'login.php');
+    $globals->menu->addPublicEntry(XOM_US,    00, 'Me connecter !',         'events');
     $globals->menu->addPublicEntry(XOM_US,    10, 'M\'inscrire',            'register/');
     $globals->menu->addPublicEntry(XOM_US,    20, 'Pourquoi m\'inscrire ?', 'Docs/PourquoiM\'Inscrire');
 
diff --git a/htdocs/login.php b/htdocs/login.php
deleted file mode 100644 (file)
index 6de9a2f..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php
-/***************************************************************************
- *  Copyright (C) 2003-2006 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                *
- ***************************************************************************/
-
-require_once('xorg.inc.php');
-new_skinned_page('login.tpl', AUTH_COOKIE);
-
-$res = $globals->xdb->query('SELECT date, naissance FROM auth_user_md5 WHERE user_id={?}', Session::getInt('uid'));
-list($date, $naissance) = $res->fetchOneRow();
-
-// incitation à mettre à jour la fiche
-
-$d2  = mktime(0, 0, 0, substr($date, 5, 2), substr($date, 8, 2), substr($date, 0, 4));
-if( (time() - $d2) > 60 * 60 * 24 * 400 ) {
-    // si fiche date de + de 400j;
-    $page->assign('fiche_incitation', $date);
-}
-
-// Souhaite bon anniversaire
-
-if (substr($naissance, 5) == date("m-d")) {
-       $page->assign('birthday', date("Y") - substr($naissance, 0, 4));
-}
-
-// incitation à mettre une photo
-
-$res = $globals->xdb->query('SELECT COUNT(*) FROM photo WHERE uid={?}', Session::getInt('uid'));
-$page->assign('photo_incitation', $res->fetchOneCell() == 0);
-
-// Incitation à se géolocaliser
-require_once('geoloc.inc.php');
-$res = localize_addresses(Session::getInt('uid', -1));
-$page->assign('geoloc_incitation', count($res));
-
-// affichage de la boîte avec quelques liens
-
-require_once('login.conf.php') ;
-$pub_nbElem = $pub_nbLig * $pub_nbCol ;
-if (count($pub_tjs) <= $pub_nbElem)
-    $publicite = array_slice ($pub_tjs,0,$pub_nbElem) ;
-else
-    $publicite = $pub_tjs ;
-$nbAlea = $pub_nbElem - count($publicite) ;
-if ($nbAlea > 0) {
-    $choix = array_rand($pub_rnd,$nbAlea) ;
-    foreach ($choix as $url)
-        $publicite[$url] = $pub_rnd[$url] ;
-    }
-$publicite = array_chunk( $publicite , $pub_nbLig , true ) ;
-$page->assign_by_ref('publicite', $publicite);
-
-// ajout du lien RSS
-
-if (Session::has('core_rss_hash')) {
-    $page->assign('xorg_rss',
-                  array("title" => "Polytechnique.org :: News",
-                        "href" => "/rss/".Session::get('forlife')."/".Session::get('core_rss_hash')."/rss.xml"));
-}
-
-// cache les evenements lus et raffiche les evenements a relire
-if (Env::has('lu')){
-  $globals->xdb->execute('DELETE FROM evenements_vus AS ev INNER JOIN evenements AS e ON e.id = ev.evt_id WHERE peremption < NOW)');
-  $globals->xdb->execute('REPLACE INTO evenements_vus VALUES({?},{?})', Env::get('lu'), Session::getInt('uid'));
-}
-if (Env::has('nonlu')){
-  $globals->xdb->execute('DELETE FROM evenements_vus WHERE evt_id = {?} AND user_id = {?}', Env::get('nonlu'), Session::getInt('uid'));
-}
-
-// affichage des evenements
-// annonces promos triées par présence d'une limite sur les promos
-// puis par dates croissantes d'expiration
-$promo = Session::getInt('promo');
-$sql = "SELECT  e.id,e.titre,e.texte,a.user_id,a.nom,a.prenom,a.promo,l.alias AS forlife
-          FROM  evenements    AS e
-    INNER JOIN  auth_user_md5 AS a ON e.user_id=a.user_id
-    INNER JOIN  aliases       AS l ON ( a.user_id=l.id AND l.type='a_vie' )
-    LEFT JOIN   evenements_vus AS ev ON (e.id = ev.evt_id AND ev.user_id = {?})
-         WHERE  FIND_IN_SET(e.flags, 'valide') AND peremption >= NOW()
-               AND (e.promo_min = 0 || e.promo_min <= {?})
-               AND (e.promo_max = 0 || e.promo_max >= {?})
-               AND ev.user_id IS NULL
-      ORDER BY  (e.promo_min != 0 AND  e.promo_max != 0) DESC,  e.peremption";
-$page->assign('evenement', $globals->xdb->iterator($sql, Session::getInt('uid'), $promo, $promo));
-
-$sql = "SELECT  e.id,e.titre, ev.user_id IS NULL AS nonlu
-          FROM  evenements    AS e
-    LEFT JOIN   evenements_vus AS ev ON (e.id = ev.evt_id AND ev.user_id = {?})
-         WHERE  FIND_IN_SET(e.flags, 'valide') AND peremption >= NOW()
-               AND (e.promo_min = 0 || e.promo_min <= {?})
-               AND (e.promo_max = 0 || e.promo_max >= {?})
-      ORDER BY  (e.promo_min != 0 AND  e.promo_max != 0) DESC,  e.peremption";
-$page->assign('evenement_summary', $globals->xdb->iterator($sql, Session::getInt('uid'), $promo, $promo));
-
-$page->assign('refe',$_SERVER['PHP_SELF']);
-
-$page->run();
-
-// vim:set et sws=4 sw=4 sts=4:
-?>
index e627078..1998766 100644 (file)
@@ -50,7 +50,7 @@ class CoreModule extends PLModule
     function handler_index(&$page)
     {
         if (logged()) {
-            redirect("login.php");
+            redirect("events");
         }
 
         return PL_OK;
@@ -86,7 +86,7 @@ class CoreModule extends PLModule
                 Session::kill('suid');
                 redirect($globals->baseurl.'/admin/utilisateurs.php?login='.$a4l);
             } else {
-                redirect("login.php");
+                redirect("events");
             }
         }
 
index 6169b82..b244729 100644 (file)
@@ -24,7 +24,8 @@ class EventsModule extends PLModule
     function handlers()
     {
         return array(
-            'events/submit'  => $this->make_hook('submit',    AUTH_MDP),
+            'events'         => $this->make_hook('ev',        AUTH_COOKIE),
+            'events/submit'  => $this->make_hook('ev_submit', AUTH_MDP),
 
             'nl'             => $this->make_hook('nl',        AUTH_COOKIE),
             'nl/show'        => $this->make_hook('nl_show',   AUTH_COOKIE),
@@ -32,7 +33,121 @@ class EventsModule extends PLModule
         );
     }
 
-    function handler_submit(&$page)
+    function handler_ev(&$page)
+    {
+        global $globals;
+
+        $page->changeTpl('login.tpl');
+
+        $res = $globals->xdb->query('SELECT date, naissance FROM auth_user_md5
+                                      WHERE user_id={?}', Session::getInt('uid'));
+        list($date, $naissance) = $res->fetchOneRow();
+
+        // incitation à mettre à jour la fiche
+
+        $d2  = mktime(0, 0, 0, substr($date, 5, 2), substr($date, 8, 2),
+                      substr($date, 0, 4));
+        if( (time() - $d2) > 60 * 60 * 24 * 400 ) {
+            // si fiche date de + de 400j;
+            $page->assign('fiche_incitation', $date);
+        }
+
+        // Souhaite bon anniversaire
+
+        if (substr($naissance, 5) == date('m-d')) {
+            $page->assign('birthday', date('Y') - substr($naissance, 0, 4));
+        }
+
+        // incitation à mettre une photo
+
+        $res = $globals->xdb->query('SELECT COUNT(*) FROM photo
+                                      WHERE uid={?}', Session::getInt('uid'));
+        $page->assign('photo_incitation', $res->fetchOneCell() == 0);
+
+        // Incitation à se géolocaliser
+        require_once 'geoloc.inc.php';
+        $res = localize_addresses(Session::getInt('uid', -1));
+        $page->assign('geoloc_incitation', count($res));
+
+        // affichage de la boîte avec quelques liens
+        require_once 'login.conf.php';
+        $pub_nbElem = $pub_nbLig * $pub_nbCol ;
+        if (count($pub_tjs) <= $pub_nbElem) {
+            $publicite = array_slice($pub_tjs, 0, $pub_nbElem);
+        } else {
+            $publicite = $pub_tjs ;
+        }
+
+        $nbAlea = $pub_nbElem - count($publicite) ;
+        if ($nbAlea > 0) {
+            $choix = array_rand($pub_rnd,$nbAlea) ;
+            foreach ($choix as $url) {
+                $publicite[$url] = $pub_rnd[$url] ;
+            }
+        }
+        $publicite = array_chunk( $publicite , $pub_nbLig , true ) ;
+        $page->assign_by_ref('publicite', $publicite);
+
+        // ajout du lien RSS
+
+        if (Session::has('core_rss_hash')) {
+            $page->assign('xorg_rss',
+                          array('title' => 'Polytechnique.org :: News',
+                                'href' => '/rss/'.Session::get('forlife')
+                                         .'/'.Session::get('core_rss_hash').'/rss.xml')
+            );
+        }
+
+        // cache les evenements lus et raffiche les evenements a relire
+        if (Env::has('lu')){
+            $globals->xdb->execute('DELETE FROM evenements_vus AS ev 
+                                     INNER JOIN evenements AS e ON e.id = ev.evt_id
+                                          WHERE peremption < NOW)');
+            $globals->xdb->execute('REPLACE INTO evenements_vus VALUES({?},{?})',
+                                   Env::get('lu'), Session::getInt('uid'));
+        }
+
+        if (Env::has('nonlu')){
+            $globals->xdb->execute('DELETE FROM evenements_vus
+                                          WHERE evt_id = {?} AND user_id = {?}',
+                                   Env::get('nonlu'), Session::getInt('uid'));
+        }
+
+        // affichage des evenements
+        // annonces promos triées par présence d'une limite sur les promos
+        // puis par dates croissantes d'expiration
+        $promo = Session::getInt('promo');
+        $sql = "SELECT  e.id,e.titre,e.texte,a.user_id,a.nom,a.prenom,a.promo,l.alias AS forlife
+                  FROM  evenements    AS e
+            INNER JOIN  auth_user_md5 AS a ON e.user_id=a.user_id
+            INNER JOIN  aliases       AS l ON ( a.user_id=l.id AND l.type='a_vie' )
+            LEFT JOIN   evenements_vus AS ev ON (e.id = ev.evt_id AND ev.user_id = {?})
+                 WHERE  FIND_IN_SET(e.flags, 'valide') AND peremption >= NOW()
+                        AND (e.promo_min = 0 || e.promo_min <= {?})
+                        AND (e.promo_max = 0 || e.promo_max >= {?})
+                        AND ev.user_id IS NULL
+              ORDER BY  (e.promo_min != 0 AND  e.promo_max != 0) DESC,  e.peremption";
+        $page->assign('evenement',
+                      $globals->xdb->iterator($sql, Session::getInt('uid'),
+                                              $promo, $promo)
+                      );
+
+        $sql = "SELECT  e.id,e.titre, ev.user_id IS NULL AS nonlu
+                  FROM  evenements    AS e
+            LEFT JOIN   evenements_vus AS ev ON (e.id = ev.evt_id AND ev.user_id = {?})
+                 WHERE  FIND_IN_SET(e.flags, 'valide') AND peremption >= NOW()
+                        AND (e.promo_min = 0 || e.promo_min <= {?})
+                        AND (e.promo_max = 0 || e.promo_max >= {?})
+              ORDER BY  (e.promo_min != 0 AND  e.promo_max != 0) DESC,  e.peremption";
+        $page->assign('evenement_summary',
+                      $globals->xdb->iterator($sql, Session::getInt('uid'),
+                                              $promo, $promo)
+                     );
+
+        return PL_OK;
+    }
+
+    function handler_ev_submit(&$page)
     {
         global $globals;
         $page->changeTpl('evenements.tpl');
index 6287875..dd9ea0e 100644 (file)
@@ -73,7 +73,7 @@ Ta proposition a bien 
 Merci pour ta contribution à la vie du site!
 </p>
 <p>
-<a href="{rel}/login.php">Retour à la page d'accueil</a>
+<a href="{rel}/events">Retour à la page d'accueil</a>
 </p>
 {else}
 <p class="erreur">
index 666b8c3..903a05b 100644 (file)
@@ -39,7 +39,7 @@
   <strong>Si vous êtes polytechnicien,</strong>
   <ul>
    <li class="spaced">vous pouvez <strong><a href="{rel}/register">vous inscrire à Polytechnique.org</a></strong> si ce n'est pas encore fait,</li>
-   <li class="spaced">ou <strong><a href="login.php">vous connecter</a></strong> si vous êtes inscrit !</li>
+   <li class="spaced">ou <strong><a href="{rel}/events">vous connecter</a></strong> si vous êtes inscrit !</li>
   </ul>
    Vous pouvez <strong><a href="docs/services.php">consulter la liste de ce que vous apporte Polytechnique.org</a></strong> si vous hésitez à vous inscrire !
    <br />
index c6f552d..3b3800d 100644 (file)
@@ -148,7 +148,7 @@ Bienvenue {$smarty.session.prenom}
   </div>
   {else}
   <div class="right">
-    <a href='{rel}/prefs/rss?referer=login.php'><img src='{rel}/images/rssact.gif' alt='fil rss' /></a>
+    <a href='{rel}/prefs/rss?referer=events'><img src='{rel}/images/rssact.gif' alt='fil rss' /></a>
   </div>
   {/if}
 {/if}
index 3b98f42..729874c 100644 (file)
@@ -54,7 +54,7 @@
     {iterate item=line from=$rss}
     <item>
       <title>{$line.titre|strip_tags}</title>
-      <link>{#globals.baseurl#}/login.php#newsid{$line.id}</link>
+      <link>{#globals.baseurl#}/events#newsid{$line.id}</link>
       <description><![CDATA[{$line.texte|nl2br}]]></description>
       <pubDate>{$line.creation_date|rss_date}</pubDate>
     </item>
index 2096d7f..34ee9fd 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{rel}/login.php"><img src="{rel}/images/sk_default_headlogo.jpg" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{rel}/images/sk_default_headlogo.jpg" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{rel}/login.php"><img src="{rel}/images/sk_default_ban.jpg" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{rel}/images/sk_default_ban.jpg" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
-          <a href="{rel}/login.php"><img src="{rel}/images/sk_default_lesX.gif" alt="[LES X SUR LE WEB]" /></a>
+          <a href="{rel}/events"><img src="{rel}/images/sk_default_lesX.gif" alt="[LES X SUR LE WEB]" /></a>
         </td>
       </tr>
       <tr>
index 26154dc..0828526 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_espace_logo.gif"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_espace_logo.gif"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_espace_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_espace_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
-          <a href="{"login.php"|url}"><img src="{"images/sk_espace_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_espace_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
         </td>
       </tr>
       <tr>
index 4d3aa44..9d0fc81 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_humlinux_logo.gif"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_humlinux_logo.gif"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_humlinux_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_humlinux_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
           {include file="skin/common.title.header.tpl"}
         </td>
       </tr>
index 92cbbb6..c371c7d 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_linux_logo.jpg"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_linux_logo.jpg"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_linux_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_linux_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
-          <a href="{"login.php"|url}"><img src="{"images/sk_linux_lesX.jpg"|url}" alt="[LES X SUR LE WEB]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_linux_lesX.jpg"|url}" alt="[LES X SUR LE WEB]" /></a>
         </td>
       </tr>
       <tr>
index 1adc6d9..31cc624 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_liteskin_logo.png"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_liteskin_logo.png"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_liteskin_titre.png"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_liteskin_titre.png"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
         </td>
       </tr>
index 2cfca74..56ea229 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_nbviolet_logo.gif"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_nbviolet_logo.gif"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_nbviolet_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_nbviolet_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
-          <a href="{"login.php"|url}"><img src="{"images/sk_nbviolet_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_nbviolet_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
         </td>
       </tr>
       <tr>
index eaf78e5..c3ad976 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_newxorg_logo.jpg"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_newxorg_logo.jpg"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_newxorg_ban.png"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_newxorg_ban.png"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
         </td>
       </tr>
index 3f6877f..4126833 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_oldtimes_logo.gif"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_oldtimes_logo.gif"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_oldtimes_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_oldtimes_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
-          <a href="{"login.php"|url}"><img src="{"images/sk_oldtimes_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_oldtimes_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
         </td>
       </tr>
       <tr>
index 3785551..bec2b93 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{rel}/login.php"><img src="{rel}/images/sk_default_headlogo.jpg" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{rel}/images/sk_default_headlogo.jpg" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{rel}/login.php"><img src="{rel}/images/sk_default_ban.jpg" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{rel}/images/sk_default_ban.jpg" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
         </td>
       </tr>
index f54fa82..3fb36e0 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_sharky_logo.png"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_sharky_logo.png"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_sharky_ban.png"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_sharky_ban.png"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
         </td>
       </tr>
index a50dd07..9b6fc9c 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_spectral_logo.gif"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_spectral_logo.gif"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_spectral_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_spectral_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
-          <a href="{"login.php"|url}"><img src="{"images/sk_spectral_lesX.jpg"|url}" alt="[LES X SUR LE WEB]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_spectral_lesX.jpg"|url}" alt="[LES X SUR LE WEB]" /></a>
         </td>
       </tr>
       <tr>
index d0b062f..c1ca1ce 100644 (file)
     <table id="body" cellpadding="0" cellspacing="0">
       <tr>
         <td id="body-logo">
-          <a href="{"login.php"|url}"><img src="{"images/sk_trapped_logo.gif"|url}" alt="[ LOGO ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_trapped_logo.gif"|url}" alt="[ LOGO ]" /></a>
         </td>
         <td id="body-top">
-          <a href="{"login.php"|url}"><img src="{"images/sk_trapped_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_trapped_ban.jpg"|url}" alt="[ Polytechnique.org ]" /></a>
           {include file="skin/common.title.header.tpl"}
-          <a href="{"login.php"|url}"><img src="{"images/sk_trapped_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
+          <a href="{rel}/events"><img src="{"images/sk_trapped_lesX.gif"|url}" alt="[LES X SUR LE WEB]" /></a>
         </td>
       </tr>
       <tr>