3c181054db
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@168 b3834d28-1941-0410-a4f8-b48e95affb8f
31 lines
900 B
PHP
31 lines
900 B
PHP
<?php
|
|
if(!file_exists(dirname(__FILE__) .'/config.inc.php')) {
|
|
die("Please, create the 'config.inc.php' file. You can copy the 'config.inc.php.example' file.");
|
|
}
|
|
|
|
// First requirements part (before debug management)
|
|
require_once(dirname(__FILE__) .'/config.inc.php');
|
|
require_once(dirname(__FILE__) .'/constants.inc.php'); // some constants are based on variables from config file
|
|
|
|
|
|
// Debug Management using constants
|
|
if(DEBUG_MODE) {
|
|
ini_set('display_errors', '1');
|
|
ini_set('mysql.trace_mode', '1');
|
|
error_reporting(E_ALL);
|
|
//error_reporting(E_ALL^E_NOTICE);
|
|
} else {
|
|
ini_set('display_errors', '0');
|
|
ini_set('mysql.trace_mode', '0');
|
|
error_reporting(0);
|
|
}
|
|
|
|
|
|
// Second requirements part which could display bugs (must come after debug management)
|
|
require_once(dirname(__FILE__) .'/services/servicefactory.php');
|
|
require_once(dirname(__FILE__) .'/functions.inc.php');
|
|
|
|
|
|
session_start();
|
|
|
|
?>
|