aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-03 08:57:35 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-03 08:57:35 +0200
commit2b840e0cfb63a453bea67a98541f3df9c273c5f5 (patch)
tree8c5aa51ba6481f29f9734373d6abd55917d1a671 /index.php
parent8cbb2a88024969f7efd90f8053f3b0805fa2f8fa (diff)
downloadwallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.tar.gz
wallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.tar.zst
wallabag-2b840e0cfb63a453bea67a98541f3df9c273c5f5.zip
twig implementation
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 {