be logged when you arrive on x.net
[platal.git] / modules / xnet.php
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();