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