diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -15,7 +15,8 @@ $errors = array(); | |||
15 | # XSRF protection with token | 15 | # XSRF protection with token |
16 | if (!empty($_POST)) { | 16 | if (!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 | |||
89 | if (Session::isLogged()) { | 88 | if (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 | } |
93 | else { | 93 | else { |