diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 08:57:35 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 08:57:35 +0200 |
commit | 2b840e0cfb63a453bea67a98541f3df9c273c5f5 (patch) | |
tree | 8c5aa51ba6481f29f9734373d6abd55917d1a671 /index.php | |
parent | 8cbb2a88024969f7efd90f8053f3b0805fa2f8fa (diff) | |
download | wallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.tar.gz wallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.tar.zst wallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.zip |
twig implementation
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 { |