Exemple #1
0
 case "GetCityEdit":
     require ENGINE_DIR . "/Core_modules/TemplateAdmin.php";
     $tpl = new TemplateAdmin();
     $tpl->echo = FALSE;
     $PHP_SELF = $config['http_home_url'] . "admin.php?mod=job&action=cities&subaction=";
     $result = $tpl->OTable(array(), 'style="margin-left:30px;width:95%" id="city_' . $id . '"');
     foreach ($job->GetCities($id) as $id => $name) {
         $result .= $tpl->row(array('width="30px" align="center"' => "", $id, $name, "[<a href=\"{$PHP_SELF}edit&type=city&id={$id}\">{$job->lang['action_edit']}</a>][<a OnClick=\"if (confirm('{$job->lang['del_confirm_city']}'))return true; else return false;\" href=\"{$PHP_SELF}del&type=city&id={$id}\">{$job->lang['action_del']}</a>]"), false, false, "id=\"{$id}\"");
     }
     $result .= $tpl->CTable();
     header('Content-Type: text/html; charset="' . $config['charset'] . '"');
     echo $result;
     break;
 case "GetSpecialtiesEdit":
     require ENGINE_DIR . "/Core_modules/TemplateAdmin.php";
     $tpl = new TemplateAdmin();
     $tpl->echo = FALSE;
     $PHP_SELF = $config['http_home_url'] . "admin.php?mod=job&action=specialties&subaction=";
     $result = $tpl->OTable(array(), 'style="margin-left:30px;width:95%" id="specialty_' . $id . '"');
     foreach ($job->GetSpecialties($id) as $id => $name) {
         $result .= $tpl->row(array('width="30px" align="center"' => "", $id, $name, "[<a href=\"{$PHP_SELF}edit&type=specialty&id={$id}\">{$job->lang['action_edit']}</a>][<a OnClick=\"if (confirm('{$job->lang['del_confirm_specialty']}'))return true; else return false;\" href=\"{$PHP_SELF}del&type=specialty&id={$id}\">{$job->lang['action_del']}</a>]"), false, false, "id=\"{$id}\"");
     }
     $result .= $tpl->CTable();
     header('Content-Type: text/html; charset="' . $config['charset'] . '"');
     echo $result;
     break;
 case "DelImage":
     $job_id = empty($_REQUEST['auto_id']) ? 0 : $_REQUEST['auto_id'];
     header('Content-Type: text/html; charset="' . $config['charset'] . '"');
     echo $job->DelPhoto($job_id, $id);
     break;
Exemple #2
0
     if (!$auto->use_region) {
         $auto->GetCities($id, 0);
     } else {
         $auto->GetCities(0, $id);
     }
     unset($auto->cities[0]);
     foreach ($auto->cities as $id => $name) {
         $result .= $tpl->row(array('width="30px" align="center"' => "", $id, $name, "[<a href=\"{$PHP_SELF}cities&subaction=edit&type=city&id={$id}\">{$auto->lang['edit']}</a>][<a href=\"{$PHP_SELF}cities&subaction=del&type=city&id={$id}\">{$auto->lang['del']}</a>]"), false, false, "id=\"{$id}\"");
     }
     $result .= $tpl->CTable();
     header('Content-Type: text/html; charset="' . $config['charset'] . '"');
     echo $result;
     break;
 case "GetModelEdit":
     require ENGINE_DIR . "/Core_modules/TemplateAdmin.php";
     $tpl = new TemplateAdmin();
     $tpl->echo = FALSE;
     $PHP_SELF = $config['http_home_url'] . "admin.php?mod=car-market&action=models&subaction=";
     $result = $tpl->OTable(array(), 'style="margin-left:30px;width:95%" id="model_' . $id . '"');
     $auto->GetModels($id);
     foreach ($auto->models as $id => $name) {
         $result .= $tpl->row(array('width="30px" align="center"' => "", $id, $name, "[<a href=\"{$PHP_SELF}edit&type=model&id={$id}\">{$auto->lang['edit']}</a>][<a href=\"{$PHP_SELF}del&type=model&id={$id}\">{$auto->lang['del']}</a>]"), false, false, "id=\"{$id}\"");
     }
     $result .= $tpl->CTable();
     header('Content-Type: text/html; charset="' . $config['charset'] . '"');
     echo $result;
     break;
 case "author":
     if (empty($_REQUEST['q'])) {
         return '';
     }
Exemple #3
0
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) {
        $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']);
$exc = new ExceptionErrorHandler('All');
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";