diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-05 10:32:15 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-05 10:32:15 +0200 |
commit | 7f959169b7220b4ed3e083cb2a545fe2c5400f9c (patch) | |
tree | 8b095a693b2ab306d6b83b46de1936ff88e9a350 /index.php | |
parent | e4ed594d8246ba5877b86e61f7f85c1b3010f62c (diff) | |
download | wallabag-7f959169b7220b4ed3e083cb2a545fe2c5400f9c.tar.gz wallabag-7f959169b7220b4ed3e083cb2a545fe2c5400f9c.tar.zst wallabag-7f959169b7220b4ed3e083cb2a545fe2c5400f9c.zip |
copy of poche.sqlite
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -11,16 +11,15 @@ | |||
11 | include dirname(__FILE__).'/inc/poche/config.inc.php'; | 11 | include dirname(__FILE__).'/inc/poche/config.inc.php'; |
12 | 12 | ||
13 | #XSRF protection with token | 13 | #XSRF protection with token |
14 | // if (!empty($_POST)) { | 14 | if (!empty($_POST)) { |
15 | // if (!Session::isToken($_POST['token'])) { | 15 | if (!Session::isToken($_POST['token'])) { |
16 | // die(_('Wrong token')); | 16 | die(_('Wrong token')); |
17 | // // TODO remettre le test | 17 | } |
18 | // } | 18 | unset($_SESSION['tokens']); |
19 | // unset($_SESSION['tokens']); | 19 | } |
20 | // } | ||
21 | 20 | ||
22 | $referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER']; | 21 | $referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER']; |
23 | $view = Tools::checkVar('view'); | 22 | $view = Tools::checkVar('view', 'home'); |
24 | $action = Tools::checkVar('action'); | 23 | $action = Tools::checkVar('action'); |
25 | $id = Tools::checkVar('id'); | 24 | $id = Tools::checkVar('id'); |
26 | $_SESSION['sort'] = Tools::checkVar('sort'); | 25 | $_SESSION['sort'] = Tools::checkVar('sort'); |