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 . "_"); } $job = new JobAdmin($job_cfg, $lang_job, $dbase); Company::$job = Vacancy::$job = Resume::$job =& $job; if ($config['version_id'] < 7.5) {
require_once ENGINE_DIR . "/Core_modules/Cache.php"; Cache::$array_cache_path = ENGINE_DIR . "/car-market/cache/array/"; Cache::$HTML_cache_path = ENGINE_DIR . "/car-market/cache/"; require_once ENGINE_DIR . "/Core_modules/ExceptionCore.php"; $exc = new ExceptionErrorHandler(array(E_ERROR, E_WARNING, E_USER_WARNING)); if ($car_conf['general_debug']) { ExceptionErrorHandler::$log_type = 'show'; ExceptionDataBase::$log_type = 'show'; ExceptionAllError::$log_type = 'show'; } else { ExceptionErrorHandler::$log_type = 'file'; ExceptionErrorHandler::$log_file = ENGINE_DIR . "/car-market/logs/HandlerErrors.log"; ExceptionDataBase::$log_type = 'file'; ExceptionDataBase::$log_file = ENGINE_DIR . "/car-market/logs/database.log"; ExceptionAllError::$log_type = 'file'; ExceptionAllError::$log_file = ENGINE_DIR . "/car-market/logs/errors.log"; } require_once ENGINE_DIR . "/Core_modules/TemplateUser.php"; $template = new TemplateUser($tpl, 'car-market/'); $template->setBasePath($config['http_home_url']); require_once ENGINE_DIR . "/Core_modules/Timer.php"; $timer = new Timer($_TIME); if ($db->mysql_extend == 'MySQLi') { require_once ENGINE_DIR . "/Core_modules/MySQLi_DLE.php"; $base = new MySQLi_DLE($db, $timer, $tables, PREFIX . "_"); } else { require_once ENGINE_DIR . "/Core_modules/MySQL_DLE.php"; $base = new MySQL_DLE($db, $timer, $tables, PREFIX . "_"); } if (!$base->isConnect()) { $base->Connect(DBHOST, $port = '', DBUSER, DBPASS, DBNAME, $usepconnect = false, COLLATE);