]> git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/poche/global.inc.php
@fivefilters via composer
[github/wallabag/wallabag.git] / inc / poche / global.inc.php
1 <?php
2 /**
3 * wallabag, self hostable application allowing you to not miss any content anymore
4 *
5 * @category wallabag
6 * @author Nicolas LÅ“uillet <nicolas@loeuillet.org>
7 * @copyright 2013
8 * @license http://opensource.org/licenses/MIT see COPYING file
9 */
10
11 # the poche system root directory (/inc)
12 define('INCLUDES', dirname(__FILE__) . '/..');
13
14 # the poche root directory
15 define('ROOT', INCLUDES . '/..');
16
17 require_once ROOT . '/vendor/autoload.php';
18 require_once INCLUDES . '/poche/Tools.class.php';
19 require_once INCLUDES . '/poche/User.class.php';
20 require_once INCLUDES . '/poche/Url.class.php';
21 require_once INCLUDES . '/poche/Template.class.php';
22 require_once INCLUDES . '/poche/Language.class.php';
23 require_once INCLUDES . '/poche/Routing.class.php';
24 require_once INCLUDES . '/poche/WallabagEBooks.class.php';
25 require_once INCLUDES . '/poche/Poche.class.php';
26 require_once INCLUDES . '/poche/Database.class.php';
27 require_once INCLUDES . '/poche/FlattrItem.class.php';
28
29 # system configuration; database credentials et caetera
30 require_once INCLUDES . '/poche/config.inc.php';
31 require_once INCLUDES . '/poche/config.inc.default.php';
32
33 if (DOWNLOAD_PICTURES) {
34 require_once INCLUDES . '/poche/pochePictures.php';
35 }
36
37 if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
38 date_default_timezone_set('UTC');
39 }
40
41 if (defined('ERROR_REPORTING')) {
42 error_reporting(ERROR_REPORTING);
43 }