From badfc7eec4122d216fbacc2ecba2cc458ba5f6eb Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 17 Sep 2006 12:37:49 +0000 Subject: [PATCH] be logged when you arrive on x.net git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@845 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 1 + modules/xnet.php | 6 ++++++ templates/skin/common.menu.tpl | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 49e9243..a7017ee 100644 --- 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 diff --git a/modules/xnet.php b/modules/xnet.php index fc45365..c36cf59 100644 --- a/modules/xnet.php +++ b/modules/xnet.php @@ -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(); diff --git a/templates/skin/common.menu.tpl b/templates/skin/common.menu.tpl index f14f67b..ef4cbfd 100644 --- a/templates/skin/common.menu.tpl +++ b/templates/skin/common.menu.tpl @@ -64,7 +64,7 @@ - + -- 2.1.4