aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/global.inc.php
blob: 8e62818ba305b3bed15b105fbeb406d7c870914f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
 * wallabag, self hostable application allowing you to not miss any content anymore
 *
 * @category   wallabag
 * @author     Nicolas Lœuillet <nicolas@loeuillet.org>
 * @copyright  2013
 * @license    http://opensource.org/licenses/MIT see COPYING file
 */

define('ROOT', dirname(__FILE__) . '/../..');

require_once ROOT . '/vendor/autoload.php';

# system configuration
require_once __DIR__ . '/config.inc.php';
require_once __DIR__ . '/config.inc.default.php';

if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
    date_default_timezone_set('UTC');
}

if (defined('ERROR_REPORTING')) {
    error_reporting(ERROR_REPORTING);
}