diff options
Diffstat (limited to 'inc/poche/config.inc.php')
-rwxr-xr-x | inc/poche/config.inc.php | 89 |
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 | ||
11 | require_once __DIR__ . '/../../inc/poche/define.inc.php'; | 11 | define ('SALT', ''); # put a strong string here |
12 | 12 | define ('LANG', 'en_EN.utf8'); | |
13 | # /!\ Be careful if you change the lines below /!\ | 13 | |
14 | if (!file_exists(__DIR__ . '/../../vendor/autoload.php')) { | 14 | define ('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 | } | 16 | define ('STORAGE_SQLITE', ROOT . '/db/poche.sqlite'); # if you are using sqlite, where the database file is located |
17 | 17 | ||
18 | require_once __DIR__ . '/../../inc/poche/User.class.php'; | 18 | # only for postgres & mysql |
19 | require_once __DIR__ . '/../../inc/poche/Url.class.php'; | 19 | define ('STORAGE_SERVER', 'localhost'); |
20 | require_once __DIR__ . '/../../inc/3rdparty/class.messages.php'; | 20 | define ('STORAGE_DB', 'poche'); |
21 | require_once __DIR__ . '/../../inc/poche/Poche.class.php'; | 21 | define ('STORAGE_USER', 'poche'); |
22 | require_once __DIR__ . '/../../inc/3rdparty/Readability.php'; | 22 | define ('STORAGE_PASSWORD', 'poche'); |
23 | require_once __DIR__ . '/../../inc/poche/PocheReadability.php'; | 23 | |
24 | require_once __DIR__ . '/../../inc/3rdparty/Encoding.php'; | 24 | ################################################################################# |
25 | require_once __DIR__ . '/../../inc/poche/Database.class.php'; | 25 | # Do not trespass unless you know what you are doing |
26 | require_once __DIR__ . '/../../vendor/autoload.php'; | 26 | ################################################################################# |
27 | require_once __DIR__ . '/../../inc/3rdparty/simple_html_dom.php'; | 27 | |
28 | require_once __DIR__ . '/../../inc/3rdparty/paginator.php'; | 28 | define ('MODE_DEMO', FALSE); |
29 | require_once __DIR__ . '/../../inc/3rdparty/Session.class.php'; | 29 | define ('DEBUG_POCHE', true); |
30 | 30 | define ('DOWNLOAD_PICTURES', FALSE); | |
31 | require_once __DIR__ . '/../../inc/3rdparty/simplepie/SimplePieAutoloader.php'; | 31 | define ('CONVERT_LINKS_FOOTNOTES', FALSE); |
32 | require_once __DIR__ . '/../../inc/3rdparty/simplepie/SimplePie/Core.php'; | 32 | define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE); |
33 | require_once __DIR__ . '/../../inc/3rdparty/content-extractor/ContentExtractor.php'; | 33 | define ('SHARE_TWITTER', TRUE); |
34 | require_once __DIR__ . '/../../inc/3rdparty/content-extractor/SiteConfig.php'; | 34 | define ('SHARE_MAIL', TRUE); |
35 | require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/HumbleHttpAgent.php'; | 35 | define ('SHARE_SHAARLI', FALSE); |
36 | require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/SimplePie_HumbleHttpAgent.php'; | 36 | define ('SHAARLI_URL', 'http://myshaarliurl.com'); |
37 | require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/CookieJar.php'; | 37 | define ('FLATTR', TRUE); |
38 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedItem.php'; | 38 | define ('FLATTR_API', 'https://api.flattr.com/rest/v2/things/lookup/?url='); |
39 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedWriter.php'; | 39 | define ('NOT_FLATTRABLE', '0'); |
40 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/DummySingleItemFeed.php'; | 40 | define ('FLATTRABLE', '1'); |
41 | require_once __DIR__ . '/../../inc/3rdparty/FlattrItem.class.php'; | 41 | define ('FLATTRED', '2'); |
42 | 42 | define ('ABS_PATH', 'assets/'); | |
43 | if (DOWNLOAD_PICTURES) { | 43 | |
44 | require_once __DIR__ . '/../../inc/poche/pochePictures.php'; | 44 | define ('DEFAULT_THEME', 'default'); |
45 | } | 45 | |
46 | 46 | define ('THEME', ROOT . '/themes'); | |
47 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { | 47 | define ('LOCALE', ROOT . '/locale'); |
48 | date_default_timezone_set('UTC'); | 48 | define ('CACHE', ROOT . '/cache'); |
49 | } | 49 | |
50 | 50 | define ('PAGINATION', '10'); | |
51 | $poche = new Poche(); \ No newline at end of file | 51 | |
52 | define ('POCHE_VERSION', '1.0-beta5'); | ||
53 | |||
54 | define ('IMPORT_POCKET_FILE', ROOT . '/ril_export.html'); | ||
55 | define ('IMPORT_READABILITY_FILE', ROOT . '/readability'); | ||
56 | define ('IMPORT_INSTAPAPER_FILE', ROOT . '/instapaper-export.html'); \ No newline at end of file | ||