"; exit(); } } //////////////// include_once($base_path.'index2.php'); } else { if (strpos($_SERVER['REQUEST_URI'], "?")!== false || strpos($_SERVER['REQUEST_URI'], "//")!== false) url404($abs_base_file.'404.php'); //*******//*********// if($_GET['lenta']) { @setcookie('lentatype', intval($_GET['lenta']), time()+30*24*3600, "/"); } if($_GET['rows']) { @setcookie('rowstype', intval($_GET['rows']), time()+30*24*3600, "/"); } $yhr=1; if(!$_GET['id_firm']) { $new_version = $abs_base; /////*********************** } if($_GET['id_firm']) { $id_f=_pre2($_GET['id_firm']); $id_firm=$id_f[1]; $bp="../"; $g = mysql_query("SELECT * FROM magazin WHERE zag_url = '".$id_firm."' "); $ng = mysql_num_rows($g); if(!$ng) url404($abs_base_file.'404.php'); //*******//*********// $gg = mysql_fetch_array($g); $id_magazin=$gg['id_akk']; $zag_magazin=$gg['zag']; $id_activ=$gg['activ']; $no_title=1; } if(isset($_GET['id_catalog'])) $bp="../../../"; $name_region="Россия"; $name_razdel="Доска объявлений"; $tree_reg=array(0); $tree_cat=array(0); if($_GET['id_catalog']) { $id_catalog=intval($_GET['id_catalog']); $cam=urlencode(anti($_GET['cam'])); } if($_GET['id_region']) { $rem=urlencode(anti($_GET['rem'])); $id_region=intval($_GET['id_region']); $r = mysql_query("SELECT id_region, parent_glob, path FROM region WHERE id_region = '".$id_region."' AND url='".$rem."'"); $nr=mysql_num_rows($r); if(!$nr) url404($abs_base_file.'404.php'); //*******//*********// $rr = mysql_fetch_array($r); $glob_region=$rr['parent_glob']; if(!$glob_region) $glob_region=$rr['id_region']; $tree_reg = explode(' ', trim($rr['path'].' '.$id_region)); } if(file_exists($base_path.'cashe_region/_svod_region_0.php')) include_once($base_path.'cashe_region/_svod_region_0.php'); // регионы первого уровня if($glob_region && file_exists($base_path.'cashe_region/_svod_region_'.$glob_region.'.php')) include_once($base_path.'cashe_region/_svod_region_'.$glob_region.'.php'); // наш регион for ($i=1; $i Купить script-ks.4.2.1

'; ?>