]>
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 | ||
68857cea | 11 | # storage |
b916bcfc | 12 | define ('STORAGE','sqlite'); # postgres, mysql, sqlite |
68857cea NL |
13 | define ('STORAGE_SERVER', 'localhost'); # leave blank for sqlite |
14 | define ('STORAGE_DB', 'poche'); # only for postgres & mysql | |
15 | define ('STORAGE_SQLITE', './db/poche.sqlite'); | |
16 | define ('STORAGE_USER', 'postgres'); # leave blank for sqlite | |
17 | define ('STORAGE_PASSWORD', 'postgres'); # leave blank for sqlite | |
18 | ||
6a361945 | 19 | define ('POCHE_VERSION', '1.0-beta'); |
a1283248 | 20 | define ('MODE_DEMO', FALSE); |
c7ec97ce | 21 | define ('DEBUG_POCHE', FALSE); |
eb1af592 NL |
22 | define ('CONVERT_LINKS_FOOTNOTES', FALSE); |
23 | define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE); | |
24 | define ('DOWNLOAD_PICTURES', FALSE); | |
a62788c6 | 25 | define ('SHARE_TWITTER', TRUE); |
55821e04 | 26 | define ('SHARE_MAIL', TRUE); |
eb1af592 NL |
27 | define ('SALT', '464v54gLLw928uz4zUBqkRJeiPY68zCX'); |
28 | define ('ABS_PATH', 'assets/'); | |
29 | define ('TPL', './tpl'); | |
30 | define ('LOCALE', './locale'); | |
31 | define ('CACHE', './cache'); | |
7ce7ec4c | 32 | define ('LANG', 'en_EN.UTF8'); |
6a361945 NL |
33 | define ('PAGINATION', '10'); |
34 | define ('THEME', 'light'); | |
eb1af592 NL |
35 | |
36 | # /!\ Be careful if you change the lines below /!\ | |
7ce7ec4c | 37 | require_once './inc/poche/User.class.php'; |
eb1af592 NL |
38 | require_once './inc/poche/Tools.class.php'; |
39 | require_once './inc/poche/Url.class.php'; | |
6a361945 | 40 | require_once './inc/3rdparty/class.messages.php'; |
eb1af592 NL |
41 | require_once './inc/poche/Poche.class.php'; |
42 | require_once './inc/3rdparty/Readability.php'; | |
43 | require_once './inc/3rdparty/Encoding.php'; | |
bc1ee852 | 44 | require_once './inc/poche/Database.class.php'; |
eb1af592 | 45 | require_once './vendor/autoload.php'; |
c765c367 | 46 | require_once './inc/3rdparty/simple_html_dom.php'; |
6a361945 | 47 | require_once './inc/3rdparty/paginator.php'; |
6fb3a2a1 | 48 | require_once './inc/3rdparty/Session.class.php'; |
eb1af592 NL |
49 | |
50 | if (DOWNLOAD_PICTURES) { | |
32520785 | 51 | require_once './inc/poche/pochePictures.php'; |
eb1af592 NL |
52 | } |
53 | ||
bc1ee852 | 54 | $poche = new Poche(); |
6fb3a2a1 NL |
55 | #XSRF protection with token |
56 | // if (!empty($_POST)) { | |
57 | // if (!Session::isToken($_POST['token'])) { | |
58 | // die(_('Wrong token')); | |
59 | // } | |
60 | // unset($_SESSION['tokens']); | |
61 | // } |