]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/poche/config.inc.php
prepare to multi users
[github/wallabag/wallabag.git] / inc / poche / config.inc.php
CommitLineData
eb1af592
NL
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
6a361945 11define ('POCHE_VERSION', '1.0-beta');
a1283248 12define ('MODE_DEMO', FALSE);
eb1af592
NL
13define ('DEBUG_POCHE', FALSE);
14define ('CONVERT_LINKS_FOOTNOTES', FALSE);
15define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE);
16define ('DOWNLOAD_PICTURES', FALSE);
a62788c6 17define ('SHARE_TWITTER', TRUE);
55821e04 18define ('SHARE_MAIL', TRUE);
eb1af592
NL
19define ('SALT', '464v54gLLw928uz4zUBqkRJeiPY68zCX');
20define ('ABS_PATH', 'assets/');
21define ('TPL', './tpl');
22define ('LOCALE', './locale');
23define ('CACHE', './cache');
7ce7ec4c 24define ('LANG', 'en_EN.UTF8');
6a361945
NL
25define ('PAGINATION', '10');
26define ('THEME', 'light');
3208d538 27$storage_type = 'sqlite'; # sqlite, mysql, (file, not yet)
eb1af592
NL
28
29# /!\ Be careful if you change the lines below /!\
7ce7ec4c 30require_once './inc/poche/User.class.php';
eb1af592
NL
31require_once './inc/poche/Tools.class.php';
32require_once './inc/poche/Url.class.php';
6a361945 33require_once './inc/3rdparty/class.messages.php';
eb1af592
NL
34require_once './inc/poche/Poche.class.php';
35require_once './inc/3rdparty/Readability.php';
36require_once './inc/3rdparty/Encoding.php';
eb1af592
NL
37require_once './inc/store/store.class.php';
38require_once './inc/store/' . $storage_type . '.class.php';
39require_once './vendor/autoload.php';
c765c367 40require_once './inc/3rdparty/simple_html_dom.php';
6a361945 41require_once './inc/3rdparty/paginator.php';
6fb3a2a1 42require_once './inc/3rdparty/Session.class.php';
eb1af592
NL
43
44if (DOWNLOAD_PICTURES) {
32520785 45 require_once './inc/poche/pochePictures.php';
eb1af592
NL
46}
47
6fb3a2a1
NL
48$poche = new Poche($storage_type);
49
50#XSRF protection with token
51// if (!empty($_POST)) {
52// if (!Session::isToken($_POST['token'])) {
53// die(_('Wrong token'));
54// }
55// unset($_SESSION['tokens']);
56// }