From 6ad93dff69d7c2beb2196e73f641e6484fccbeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 20 Jan 2015 07:40:39 +0100 Subject: new folders --- app/config/global.inc.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 app/config/global.inc.php (limited to 'app/config/global.inc.php') diff --git a/app/config/global.inc.php b/app/config/global.inc.php new file mode 100755 index 00000000..4df68ea9 --- /dev/null +++ b/app/config/global.inc.php @@ -0,0 +1,25 @@ + + * @copyright 2013 + * @license http://opensource.org/licenses/MIT see COPYING file + */ + +define('ROOT', dirname(__FILE__) . '/../..'); + +require_once ROOT . '/vendor/autoload.php'; + +# system configuration; database credentials et caetera +require_once dirname(__FILE__) . '/config.inc.php'; +require_once dirname(__FILE__) . '/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); +} \ No newline at end of file -- cgit v1.2.3