예제 #1
0
    }
}
// Enforce config
if (!isset($GLOBALS['CONFIG'])) {
    die("Something is wrong, can't initialize without configuration.");
}
// Set debug stuff
if (isset($GLOBALS['CONFIG']['DEBUG']) && $GLOBALS['CONFIG']['DEBUG']) {
    $GLOBALS['CONFIG']['DEBUG'] = true;
    include_once $GLOBALS['CONFIG']['PATH'] . '/includes/symbionts/dBug.php';
} else {
    $GLOBALS['CONFIG']['DEBUG'] = false;
}
// Initialize suxDB
require_once $GLOBALS['CONFIG']['PATH'] . '/includes/suxDB.php';
suxDB::$dsn = $GLOBALS['CONFIG']['DSN'];
// Include suxFunct
require_once $GLOBALS['CONFIG']['PATH'] . '/includes/suxFunct.php';
// Sessions
ini_set('session.use_only_cookies', true);
session_start();
// Set utf-8
header('Content-Type: text/html;charset=utf-8');
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
mb_language('uni');
// Avoid problems with arg_separator.output
ini_set('arg_separator.output', '&');
// Set the default timezone
date_default_timezone_set($GLOBALS['CONFIG']['TIMEZONE']);
// Get rid of magic quotes