1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

copy of poche.sqlite

This commit is contained in:
Nicolas Lœuillet 2013-08-05 10:32:15 +02:00
parent e4ed594d82
commit 7f959169b7
5 changed files with 29 additions and 22 deletions

View file

@ -11,16 +11,15 @@
include dirname(__FILE__).'/inc/poche/config.inc.php';
#XSRF protection with token
// if (!empty($_POST)) {
// if (!Session::isToken($_POST['token'])) {
// die(_('Wrong token'));
// // TODO remettre le test
// }
// unset($_SESSION['tokens']);
// }
if (!empty($_POST)) {
if (!Session::isToken($_POST['token'])) {
die(_('Wrong token'));
}
unset($_SESSION['tokens']);
}
$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
$view = Tools::checkVar('view');
$view = Tools::checkVar('view', 'home');
$action = Tools::checkVar('action');
$id = Tools::checkVar('id');
$_SESSION['sort'] = Tools::checkVar('sort');