$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); } require ENGINE_DIR . "/car-market/classes/CarMarketUser.php"; $auto = new CarMarketUser($base, $car_conf, $lang_car, $member_id, $other_fields_array, $checkboxes_array); $auto->tpl =& $template;