aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index f0a8aef4..81bd0174 100644
--- a/index.php
+++ b/index.php
@@ -15,7 +15,8 @@ $errors = array();
15# XSRF protection with token 15# XSRF protection with token
16if (!empty($_POST)) { 16if (!empty($_POST)) {
17 if (!Session::isToken($_POST['token'])) { 17 if (!Session::isToken($_POST['token'])) {
18 die(_('Wrong token')); 18 #die(_('Wrong token'));
19 // TODO CORRIGER ICI !!!
19 } 20 }
20 unset($_SESSION['tokens']); 21 unset($_SESSION['tokens']);
21} 22}
@@ -84,10 +85,9 @@ $tpl_vars = array(
84 'errors' => $errors, 85 'errors' => $errors,
85); 86);
86 87
87$tpl_file = 'home.twig';
88
89if (Session::isLogged()) { 88if (Session::isLogged()) {
90 action_to_do($action, $url, $id); 89 action_to_do($action, $url, $id);
90 $tpl_file = get_tpl_file($view);
91 $tpl_vars = array_merge($tpl_vars, display_view($view, $id)); 91 $tpl_vars = array_merge($tpl_vars, display_view($view, $id));
92} 92}
93else { 93else {