diff options
Diffstat (limited to 'inc/poche/config.inc.php')
-rwxr-xr-x[-rw-r--r--] | inc/poche/config.inc.php | 57 |
1 files changed, 20 insertions, 37 deletions
diff --git a/inc/poche/config.inc.php b/inc/poche/config.inc.php index 321784d7..4122ff10 100644..100755 --- a/inc/poche/config.inc.php +++ b/inc/poche/config.inc.php | |||
@@ -8,47 +8,30 @@ | |||
8 | * @license http://www.wtfpl.net/ see COPYING file | 8 | * @license http://www.wtfpl.net/ see COPYING file |
9 | */ | 9 | */ |
10 | 10 | ||
11 | # storage | 11 | require_once __DIR__ . '/../../inc/poche/define.inc.php'; |
12 | define ('STORAGE','sqlite'); # postgres, mysql, sqlite | ||
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 | |||
19 | define ('POCHE_VERSION', '1.0-beta1'); | ||
20 | define ('MODE_DEMO', FALSE); | ||
21 | define ('DEBUG_POCHE', FALSE); | ||
22 | define ('CONVERT_LINKS_FOOTNOTES', FALSE); | ||
23 | define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE); | ||
24 | define ('DOWNLOAD_PICTURES', FALSE); | ||
25 | define ('SHARE_TWITTER', TRUE); | ||
26 | define ('SHARE_MAIL', TRUE); | ||
27 | define ('SALT', '464v54gLLw928uz4zUBqkRJeiPY68zCX'); | ||
28 | define ('ABS_PATH', 'assets/'); | ||
29 | define ('TPL', './tpl'); | ||
30 | define ('LOCALE', './locale'); | ||
31 | define ('CACHE', './cache'); | ||
32 | define ('LANG', 'en_EN.UTF8'); | ||
33 | define ('PAGINATION', '10'); | ||
34 | define ('THEME', 'light'); | ||
35 | 12 | ||
36 | # /!\ Be careful if you change the lines below /!\ | 13 | # /!\ Be careful if you change the lines below /!\ |
37 | require_once './inc/poche/User.class.php'; | 14 | if (!file_exists(__DIR__ . '/../../vendor/autoload.php')) { |
38 | require_once './inc/poche/Tools.class.php'; | 15 | die('Twig does not seem installed. Have a look at <a href="http://inthepoche.com/?pages/Documentation">the documentation.</a>'); |
39 | require_once './inc/poche/Url.class.php'; | 16 | } |
40 | require_once './inc/3rdparty/class.messages.php'; | 17 | |
41 | require_once './inc/poche/Poche.class.php'; | 18 | if (file_exists(__DIR__ . '/../../inc/poche/myconfig.inc.php')) { |
42 | require_once './inc/3rdparty/Readability.php'; | 19 | require_once __DIR__ . '/../../inc/poche/myconfig.inc.php'; |
43 | require_once './inc/3rdparty/Encoding.php'; | 20 | } |
44 | require_once './inc/poche/Database.class.php'; | 21 | require_once __DIR__ . '/../../inc/poche/User.class.php'; |
45 | require_once './vendor/autoload.php'; | 22 | require_once __DIR__ . '/../../inc/poche/Url.class.php'; |
46 | require_once './inc/3rdparty/simple_html_dom.php'; | 23 | require_once __DIR__ . '/../../inc/3rdparty/class.messages.php'; |
47 | require_once './inc/3rdparty/paginator.php'; | 24 | require_once __DIR__ . '/../../inc/poche/Poche.class.php'; |
48 | require_once './inc/3rdparty/Session.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'; | ||
49 | 32 | ||
50 | if (DOWNLOAD_PICTURES) { | 33 | if (DOWNLOAD_PICTURES) { |
51 | require_once './inc/poche/pochePictures.php'; | 34 | require_once __DIR__ . '/../../inc/poche/pochePictures.php'; |
52 | } | 35 | } |
53 | 36 | ||
54 | $poche = new Poche(); | 37 | $poche = new Poche(); |