]>
Commit | Line | Data |
---|---|---|
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 | 11 | define ('POCHE_VERSION', '1.0-beta'); |
a1283248 | 12 | define ('MODE_DEMO', FALSE); |
eb1af592 NL |
13 | define ('DEBUG_POCHE', FALSE); |
14 | define ('CONVERT_LINKS_FOOTNOTES', FALSE); | |
15 | define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE); | |
16 | define ('DOWNLOAD_PICTURES', FALSE); | |
a62788c6 | 17 | define ('SHARE_TWITTER', TRUE); |
55821e04 | 18 | define ('SHARE_MAIL', TRUE); |
eb1af592 NL |
19 | define ('SALT', '464v54gLLw928uz4zUBqkRJeiPY68zCX'); |
20 | define ('ABS_PATH', 'assets/'); | |
21 | define ('TPL', './tpl'); | |
22 | define ('LOCALE', './locale'); | |
23 | define ('CACHE', './cache'); | |
24 | define ('LANG', 'fr_FR.UTF8'); | |
6a361945 NL |
25 | define ('PAGINATION', '10'); |
26 | define ('THEME', 'light'); | |
3208d538 | 27 | $storage_type = 'sqlite'; # sqlite, mysql, (file, not yet) |
eb1af592 NL |
28 | |
29 | # /!\ Be careful if you change the lines below /!\ | |
30 | require_once './inc/poche/Tools.class.php'; | |
31 | require_once './inc/poche/Url.class.php'; | |
6a361945 | 32 | require_once './inc/3rdparty/class.messages.php'; |
eb1af592 NL |
33 | require_once './inc/poche/Poche.class.php'; |
34 | require_once './inc/3rdparty/Readability.php'; | |
35 | require_once './inc/3rdparty/Encoding.php'; | |
eb1af592 NL |
36 | require_once './inc/store/store.class.php'; |
37 | require_once './inc/store/' . $storage_type . '.class.php'; | |
38 | require_once './vendor/autoload.php'; | |
c765c367 | 39 | require_once './inc/3rdparty/simple_html_dom.php'; |
6a361945 | 40 | require_once './inc/3rdparty/paginator.php'; |
6fb3a2a1 | 41 | require_once './inc/3rdparty/Session.class.php'; |
eb1af592 NL |
42 | |
43 | if (DOWNLOAD_PICTURES) { | |
32520785 | 44 | require_once './inc/poche/pochePictures.php'; |
eb1af592 NL |
45 | } |
46 | ||
6fb3a2a1 NL |
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 | // } |