aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/index.php b/index.php
index bc28a19d..fb13f38d 100644
--- a/index.php
+++ b/index.php
@@ -14,9 +14,7 @@ require_once 'inc/poche/global.inc.php';
14 14
15# Start session 15# Start session
16Session::$sessionName = 'poche'; 16Session::$sessionName = 'poche';
17if ( !isset($_GET['login']) ) { 17Session::init();
18 Session::init();
19}
20 18
21# Start Poche 19# Start Poche
22$poche = new Poche(); 20$poche = new Poche();
@@ -122,6 +120,7 @@ if (Session::isLogged()) {
122} else { 120} else {
123 $tpl_file = Tools::getTplFile('login'); 121 $tpl_file = Tools::getTplFile('login');
124 $tpl_vars['http_auth'] = 0; 122 $tpl_vars['http_auth'] = 0;
123 Session::logout();
125} 124}
126 125
127# because messages can be added in $poche->action(), we have to add this entry now (we can add it before) 126# because messages can be added in $poche->action(), we have to add this entry now (we can add it before)