]> git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/poche/config.inc.php
cb882cd0246ffe9e8273e8e519d74bbdeffcd7ba
[github/wallabag/wallabag.git] / inc / poche / config.inc.php
1 <?php
2 /**
3 * poche, a read it later open source system
4 *
5 * @category poche
6 * @author Nicolas LÅ“uillet <nicolas@loeuillet.org>
7 * @copyright 2013
8 * @license http://www.wtfpl.net/ see COPYING file
9 */
10
11 require_once __DIR__ . '/../../inc/poche/define.inc.php';
12
13 # /!\ Be careful if you change the lines below /!\
14 if (!file_exists(__DIR__ . '/../../vendor/autoload.php')) {
15 die('Twig does not seem installed. Have a look at <a href="http://inthepoche.com/?pages/Documentation">the documentation.</a>');
16 }
17
18 // if (file_exists(__DIR__ . '/../../inc/poche/myconfig.inc.php')) {
19 // require_once __DIR__ . '/../../inc/poche/myconfig.inc.php';
20 // }
21 require_once __DIR__ . '/../../inc/poche/User.class.php';
22 require_once __DIR__ . '/../../inc/poche/Url.class.php';
23 require_once __DIR__ . '/../../inc/3rdparty/class.messages.php';
24 require_once __DIR__ . '/../../inc/poche/Poche.class.php';
25 require_once __DIR__ . '/../../inc/3rdparty/Readability.php';
26 require_once __DIR__ . '/../../inc/3rdparty/Encoding.php';
27 require_once __DIR__ . '/../../inc/poche/Database.class.php';
28 require_once __DIR__ . '/../../vendor/autoload.php';
29 require_once __DIR__ . '/../../inc/3rdparty/simple_html_dom.php';
30 require_once __DIR__ . '/../../inc/3rdparty/paginator.php';
31 require_once __DIR__ . '/../../inc/3rdparty/Session.class.php';
32
33 if (DOWNLOAD_PICTURES) {
34 require_once __DIR__ . '/../../inc/poche/pochePictures.php';
35 }
36
37 $poche = new Poche();
38 #XSRF protection with token
39 // if (!empty($_POST)) {
40 // if (!Session::isToken($_POST['token'])) {
41 // die(_('Wrong token'));
42 // }
43 // unset($_SESSION['tokens']);
44 // }