aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/config.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche/config.inc.php')
-rwxr-xr-xinc/poche/config.inc.php89
1 files changed, 47 insertions, 42 deletions
diff --git a/inc/poche/config.inc.php b/inc/poche/config.inc.php
index aaa26af8..5c304d14 100755
--- a/inc/poche/config.inc.php
+++ b/inc/poche/config.inc.php
@@ -3,49 +3,54 @@
3 * poche, a read it later open source system 3 * poche, a read it later open source system
4 * 4 *
5 * @category poche 5 * @category poche
6 * @author Nicolas LÅ“uillet <support@inthepoche.com> 6 * @author Nicolas LÅ“uillet <nicolas@loeuillet.org>
7 * @copyright 2013 7 * @copyright 2013
8 * @license http://www.wtfpl.net/ see COPYING file 8 * @license http://www.wtfpl.net/ see COPYING file
9 */ 9 */
10 10
11require_once __DIR__ . '/../../inc/poche/define.inc.php'; 11define ('SALT', ''); # put a strong string here
12 12define ('LANG', 'en_EN.utf8');
13# /!\ Be careful if you change the lines below /!\ 13
14if (!file_exists(__DIR__ . '/../../vendor/autoload.php')) { 14define ('STORAGE', 'sqlite'); # postgres, mysql or sqlite
15 die('Twig does not seem installed. Have a look at <a href="inthepoche.com/doc">the documentation.</a>'); 15
16} 16define ('STORAGE_SQLITE', ROOT . '/db/poche.sqlite'); # if you are using sqlite, where the database file is located
17 17
18require_once __DIR__ . '/../../inc/poche/User.class.php'; 18# only for postgres & mysql
19require_once __DIR__ . '/../../inc/poche/Url.class.php'; 19define ('STORAGE_SERVER', 'localhost');
20require_once __DIR__ . '/../../inc/3rdparty/class.messages.php'; 20define ('STORAGE_DB', 'poche');
21require_once __DIR__ . '/../../inc/poche/Poche.class.php'; 21define ('STORAGE_USER', 'poche');
22require_once __DIR__ . '/../../inc/3rdparty/Readability.php'; 22define ('STORAGE_PASSWORD', 'poche');
23require_once __DIR__ . '/../../inc/poche/PocheReadability.php'; 23
24require_once __DIR__ . '/../../inc/3rdparty/Encoding.php'; 24#################################################################################
25require_once __DIR__ . '/../../inc/poche/Database.class.php'; 25# Do not trespass unless you know what you are doing
26require_once __DIR__ . '/../../vendor/autoload.php'; 26#################################################################################
27require_once __DIR__ . '/../../inc/3rdparty/simple_html_dom.php'; 27
28require_once __DIR__ . '/../../inc/3rdparty/paginator.php'; 28define ('MODE_DEMO', FALSE);
29require_once __DIR__ . '/../../inc/3rdparty/Session.class.php'; 29define ('DEBUG_POCHE', true);
30 30define ('DOWNLOAD_PICTURES', FALSE);
31require_once __DIR__ . '/../../inc/3rdparty/simplepie/SimplePieAutoloader.php'; 31define ('CONVERT_LINKS_FOOTNOTES', FALSE);
32require_once __DIR__ . '/../../inc/3rdparty/simplepie/SimplePie/Core.php'; 32define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE);
33require_once __DIR__ . '/../../inc/3rdparty/content-extractor/ContentExtractor.php'; 33define ('SHARE_TWITTER', TRUE);
34require_once __DIR__ . '/../../inc/3rdparty/content-extractor/SiteConfig.php'; 34define ('SHARE_MAIL', TRUE);
35require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/HumbleHttpAgent.php'; 35define ('SHARE_SHAARLI', FALSE);
36require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/SimplePie_HumbleHttpAgent.php'; 36define ('SHAARLI_URL', 'http://myshaarliurl.com');
37require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/CookieJar.php'; 37define ('FLATTR', TRUE);
38require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedItem.php'; 38define ('FLATTR_API', 'https://api.flattr.com/rest/v2/things/lookup/?url=');
39require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedWriter.php'; 39define ('NOT_FLATTRABLE', '0');
40require_once __DIR__ . '/../../inc/3rdparty/feedwriter/DummySingleItemFeed.php'; 40define ('FLATTRABLE', '1');
41require_once __DIR__ . '/../../inc/3rdparty/FlattrItem.class.php'; 41define ('FLATTRED', '2');
42 42define ('ABS_PATH', 'assets/');
43if (DOWNLOAD_PICTURES) { 43
44 require_once __DIR__ . '/../../inc/poche/pochePictures.php'; 44define ('DEFAULT_THEME', 'default');
45} 45
46 46define ('THEME', ROOT . '/themes');
47if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { 47define ('LOCALE', ROOT . '/locale');
48 date_default_timezone_set('UTC'); 48define ('CACHE', ROOT . '/cache');
49} 49
50 50define ('PAGINATION', '10');
51$poche = new Poche(); \ No newline at end of file 51
52define ('POCHE_VERSION', '1.0-beta5');
53
54define ('IMPORT_POCKET_FILE', ROOT . '/ril_export.html');
55define ('IMPORT_READABILITY_FILE', ROOT . '/readability');
56define ('IMPORT_INSTAPAPER_FILE', ROOT . '/instapaper-export.html'); \ No newline at end of file