aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--inc/poche/config.inc.php12
-rw-r--r--index.php8
2 files changed, 10 insertions, 10 deletions
diff --git a/inc/poche/config.inc.php b/inc/poche/config.inc.php
index d91a44be..ee0f6616 100644
--- a/inc/poche/config.inc.php
+++ b/inc/poche/config.inc.php
@@ -29,7 +29,6 @@ $storage_type = 'sqlite'; # sqlite, mysql, (file, not yet)
29# /!\ Be careful if you change the lines below /!\ 29# /!\ Be careful if you change the lines below /!\
30require_once './inc/poche/Tools.class.php'; 30require_once './inc/poche/Tools.class.php';
31require_once './inc/poche/Url.class.php'; 31require_once './inc/poche/Url.class.php';
32require_once './inc/3rdparty/Session.class.php';
33require_once './inc/3rdparty/class.messages.php'; 32require_once './inc/3rdparty/class.messages.php';
34require_once './inc/poche/Poche.class.php'; 33require_once './inc/poche/Poche.class.php';
35require_once './inc/3rdparty/Readability.php'; 34require_once './inc/3rdparty/Readability.php';
@@ -39,9 +38,18 @@ require_once './inc/store/' . $storage_type . '.class.php';
39require_once './vendor/autoload.php'; 38require_once './vendor/autoload.php';
40require_once './inc/3rdparty/simple_html_dom.php'; 39require_once './inc/3rdparty/simple_html_dom.php';
41require_once './inc/3rdparty/paginator.php'; 40require_once './inc/3rdparty/paginator.php';
41require_once './inc/3rdparty/Session.class.php';
42 42
43if (DOWNLOAD_PICTURES) { 43if (DOWNLOAD_PICTURES) {
44 require_once './inc/poche/pochePictures.php'; 44 require_once './inc/poche/pochePictures.php';
45} 45}
46 46
47$poche = new Poche($storage_type); \ No newline at end of file 47$poche = new Poche($storage_type);
48
49#XSRF protection with token
50// if (!empty($_POST)) {
51// if (!Session::isToken($_POST['token'])) {
52// die(_('Wrong token'));
53// }
54// unset($_SESSION['tokens']);
55// } \ No newline at end of file
diff --git a/index.php b/index.php
index 98ada1bd..d0dd4ab5 100644
--- a/index.php
+++ b/index.php
@@ -10,14 +10,6 @@
10 10
11include dirname(__FILE__).'/inc/poche/config.inc.php'; 11include dirname(__FILE__).'/inc/poche/config.inc.php';
12 12
13#XSRF protection with token
14// if (!empty($_POST)) {
15// if (!Session::isToken($_POST['token'])) {
16// die(_('Wrong token'));
17// }
18// unset($_SESSION['tokens']);
19// }
20
21$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER']; 13$referer = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
22$view = Tools::checkVar('view', 'home'); 14$view = Tools::checkVar('view', 'home');
23$action = Tools::checkVar('action'); 15$action = Tools::checkVar('action');