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"; } try { require ENGINE_DIR . "/Core_modules/TemplateAdmin.php"; $tpl = new TemplateAdmin(); $tpl->setBasePath($config['http_home_url']); Licencing::$tpl =& $tpl; Func::$tpl =& $tpl; require ENGINE_DIR . "/Core_modules/Timer.php"; $timer = new Timer($_TIME); if (file_exists(ENGINE_DIR . '/data/car-market_conf.php')) { require_once ENGINE_DIR . '/data/car-market_conf.php'; } else { $tpl->msg('Error', $lang_car['module_not_installed']); } if ($db->mysql_extend == 'MySQLi') { require ENGINE_DIR . "/Core_modules/MySQLi_DLE.php"; $base = new MySQLi_DLE($db, $timer, $tables, PREFIX . "_"); } else { require ENGINE_DIR . "/Core_modules/MySQL_DLE.php"; $base = new MySQL_DLE($db, $timer, $tables, PREFIX . "_");