]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/poche/global.inc.php
Merge pull request #581 from mariroz/fix-session-livetime
[github/wallabag/wallabag.git] / inc / poche / global.inc.php
CommitLineData
00dbaf90
NL
1<?php
2/**
c95b78a8 3 * wallabag, self hostable application allowing you to not miss any content anymore
00dbaf90 4 *
c95b78a8
NL
5 * @category wallabag
6 * @author Nicolas Lœuillet <nicolas@loeuillet.org>
00dbaf90
NL
7 * @copyright 2013
8 * @license http://www.wtfpl.net/ see COPYING file
9 */
10
11# the poche system root directory (/inc)
12define('INCLUDES', dirname(__FILE__) . '/..');
13
14# the poche root directory
15define('ROOT', INCLUDES . '/..');
16
17require_once INCLUDES . '/poche/Tools.class.php';
18require_once INCLUDES . '/poche/User.class.php';
19require_once INCLUDES . '/poche/Url.class.php';
20require_once INCLUDES . '/3rdparty/class.messages.php';
21require_once INCLUDES . '/poche/Poche.class.php';
22
00dbaf90
NL
23require_once INCLUDES . '/poche/Database.class.php';
24require_once INCLUDES . '/3rdparty/simple_html_dom.php';
25require_once INCLUDES . '/3rdparty/paginator.php';
26require_once INCLUDES . '/3rdparty/Session.class.php';
27
42c80841
NL
28require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedItem.php';
29require_once INCLUDES . '/3rdparty/libraries/feedwriter/FeedWriter.php';
00dbaf90
NL
30require_once INCLUDES . '/3rdparty/FlattrItem.class.php';
31
1570a653
NL
32require_once INCLUDES . '/3rdparty/htmlpurifier/HTMLPurifier.auto.php';
33
00dbaf90
NL
34# Composer its autoloader for automatically loading Twig
35if (! file_exists(ROOT . '/vendor/autoload.php')) {
36 Poche::$canRenderTemplates = false;
37} else {
38 require_once ROOT . '/vendor/autoload.php';
39}
40
41# system configuration; database credentials et cetera
42if (! file_exists(INCLUDES . '/poche/config.inc.php')) {
43 Poche::$configFileAvailable = false;
44} else {
45 require_once INCLUDES . '/poche/config.inc.php';
46}
47
48if (Poche::$configFileAvailable && DOWNLOAD_PICTURES) {
49 require_once INCLUDES . '/poche/pochePictures.php';
50}
51
52if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
53 date_default_timezone_set('UTC');
00dbaf90 54}