Beispiel #1
0
if (file_exists(ENGINE_DIR . '/data/job_conf.php')) {
    require_once ENGINE_DIR . '/data/job_conf.php';
} else {
    msg('error', 'Error', $lang_job['module_not_installed']);
}
Cache::$array_cache_path = ENGINE_DIR . "/job/cache/array/";
Cache::$HTML_cache_path = ENGINE_DIR . "/job/cache/";
$exc = new ExceptionErrorHandler('All');
if ($job_cfg['general_debug']) {
    ExceptionErrorHandler::$log_type = 'show';
    ExceptionDataBase::$log_type = 'show';
    ExceptionAllError::$log_type = 'show';
} else {
    ExceptionErrorHandler::$log_type = 'file';
    ExceptionErrorHandler::$log_file = ENGINE_DIR . "/job/logs/HandlerErrors.log";
    ExceptionDataBase::$log_type = 'file';
    ExceptionDataBase::$log_file = ENGINE_DIR . "/job/logs/database.log";
    ExceptionAllError::$log_type = 'file';
    ExceptionAllError::$log_file = ENGINE_DIR . "/job/logs/errors.log";
}
try {
    $tpl = new TemplateAdmin();
    Licencing::$tpl =& $tpl;
    $timer = new Timer($_TIME);
    if ($db->mysql_extend == 'MySQLi') {
        require_once ENGINE_DIR . "/Core_modules/MySQLi_DLE.php";
        $dbase = new MySQLi_DLE($db, $timer, $TABLES, PREFIX . "_");
    } else {
        require_once ENGINE_DIR . "/Core_modules/MySQL_DLE.php";
        $dbase = new MySQL_DLE($db, $timer, $TABLES, PREFIX . "_");
    }