be logged when you arrive on x.net
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 17 Sep 2006 12:37:49 +0000 (12:37 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 17 Sep 2006 12:37:49 +0000 (12:37 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@845 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
modules/xnet.php
templates/skin/common.menu.tpl

index 49e9243..a7017ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -71,6 +71,7 @@ New:
         - Migrate to the new URI scheme.                                    -MC
         - Split Xnet in 4 modules: xnet, lists, events, group.              -MC
         - More coherent look                                               -FRU
+        - Be logged when you go to X.net from plat/al.                      -MC
 
     * Xnet/Events:
         - Split event list and subscription again.                          -MC
index fc45365..c36cf59 100644 (file)
@@ -25,6 +25,7 @@ class XnetModule extends PLModule
     {
         return array(
             'index'     => $this->make_hook('index',     AUTH_PUBLIC),
+            'login'     => $this->make_hook('login',     AUTH_MDP),
             'exit'      => $this->make_hook('exit',      AUTH_PUBLIC),
 
             'admin'     => $this->make_hook('admin',     AUTH_MDP, 'admin'),
@@ -39,6 +40,11 @@ class XnetModule extends PLModule
         $page->changeTpl('xnet/index.tpl');
     }
 
+    function handler_login(&$page)
+    {
+        pl_redirect('');
+    }
+
     function handler_exit(&$page)
     {
         XnetSession::destroy();
index f14f67b..ef4cbfd 100644 (file)
@@ -64,7 +64,7 @@
 <div class="menu_item"><a href="geoloc">Planisphère</a></div>
 <div class="menu_item"><a href="trombi">Trombi promo</a></div>
 <div class="menu_item"><a href="referent/search">Conseil Pro.</a></div>
-<div class="menu_item"><a href="http://www.polytechnique.net/plan">Groupes X</a></div>
+<div class="menu_item"><a href="http://www.polytechnique.net/login">Groupes X</a></div>
 
 <div class="menu_title">Informations</div>
 <div class="menu_item"><a href="nl">Lettres mensuelles</a></div>