Пример #1
0
     break;
 case "companies":
     require ENGINE_DIR . "/job/admin/companies.php";
     break;
 case "fields":
     require ENGINE_DIR . "/job/admin/fields.php";
     break;
 case "xfields":
     require ENGINE_DIR . "/job/admin/xfields.php";
     break;
 case "settings":
     require ENGINE_DIR . "/job/admin/settings.php";
     break;
 case "clearcache":
     Cache::ClearAllCache();
     $tpl->msg($job->lang['clearcache'], $job->lang['clearcache_ok'], $MAIN_URL);
     break;
 case "cron":
     include ENGINE_DIR . "/job/cron.php";
     Cache::ClearAllCache();
     $tpl->msg($job->lang['action_cron'], $job->lang['action_cron_ok'], $MAIN_URL);
     break;
     /*	
     			case "rebuildcounter":
     				$dbase->Select('auto_models', array('id'));
     				while ($row = $dbase->FetchArray())
     				{
     					$models[] = $row['id'];
     				}
     				foreach ($models as $id)
     				{
Пример #2
0
    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 . "_");
    }
    require ENGINE_DIR . "/car-market/classes/CarMarketAdmin.php";
    $auto = new CarMarketAdmin($base, $car_conf, $lang_car, $config['version_id'] < 7.5 ? $member_db : $member_id, $other_fields_array, $checkboxes_array);
    Func::$obj =& $auto;
    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);