Пример #1
0
    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 . "_");
    }
    $job = new JobAdmin($job_cfg, $lang_job, $dbase);
    Company::$job = Vacancy::$job = Resume::$job =& $job;
    if ($config['version_id'] < 7.5) {
        $job->member = array("id" => $member_db[10], "name" => $member_db[2], "email" => $member_db[5], "group" => $member_db[1], "ip" => $member_db[15]);
    } else {
        $job->member = array("id" => $member_id['user_id'], "name" => $member_id['name'], "email" => $member_id['email'], "group" => $member_id['user_group'], "ip" => $member_id['logged_ip']);
    }
    if (get_magic_quotes_gpc() && function_exists('array_map_recursive')) {
        array_map_recursive('stripslashes', $_GET);
        array_map_recursive('stripslashes', $_POST);
        array_map_recursive('stripslashes', $_COOKIE);
        array_map_recursive('stripslashes', $_REQUEST);
    }
    if ($job->config['general_debug']) {
        $dbase->debug = true;
        TemplateAdmin::$Debug_info =& $dbase->query_list;
    }