]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/poche/global.inc.php
@fivefilters via composer
[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 7 * @copyright 2013
3602405e 8 * @license http://opensource.org/licenses/MIT see COPYING file
00dbaf90
NL
9 */
10
11# the poche system root directory (/inc)
12define('INCLUDES', dirname(__FILE__) . '/..');
13
14# the poche root directory
15define('ROOT', INCLUDES . '/..');
16
c78c1a3f 17require_once ROOT . '/vendor/autoload.php';
00dbaf90
NL
18require_once INCLUDES . '/poche/Tools.class.php';
19require_once INCLUDES . '/poche/User.class.php';
20require_once INCLUDES . '/poche/Url.class.php';
3602405e
NL
21require_once INCLUDES . '/poche/Template.class.php';
22require_once INCLUDES . '/poche/Language.class.php';
23require_once INCLUDES . '/poche/Routing.class.php';
15317991 24require_once INCLUDES . '/poche/WallabagEBooks.class.php';
00dbaf90 25require_once INCLUDES . '/poche/Poche.class.php';
00dbaf90 26require_once INCLUDES . '/poche/Database.class.php';
99410a21 27require_once INCLUDES . '/poche/FlattrItem.class.php';
00dbaf90 28
a33a3d2a 29# system configuration; database credentials et caetera
3602405e
NL
30require_once INCLUDES . '/poche/config.inc.php';
31require_once INCLUDES . '/poche/config.inc.default.php';
00dbaf90 32
3602405e 33if (DOWNLOAD_PICTURES) {
00dbaf90
NL
34 require_once INCLUDES . '/poche/pochePictures.php';
35}
36
37if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
38 date_default_timezone_set('UTC');
b3cda72e
NL
39}
40
41if (defined('ERROR_REPORTING')) {
42 error_reporting(ERROR_REPORTING);
c78c1a3f 43}