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:
parent
e4ed594d82
commit
7f959169b7
5 changed files with 29 additions and 22 deletions
15
index.php
15
index.php
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue