if (isset($_REQUEST[session_name()]))
@session_start();
$base_path="../";
$bp="../";
require_once($base_path.'connect/connect.php');
include_once($base_path.'lib/lib.php');
include_once($base_path.'connect/_svod_rec.php');
if($_GET['id'])
{
$id=intval($_GET['id']);
$itemm=urlencode(anti($_GET['itemm']));
$r=mysql_query("SELECT * FROM board WHERE id='".$id."' AND zag_url='".$itemm."'");
$nr=mysql_num_rows($r);
}
if(!$nr)
{
header('HTTP/1.1 404 Not Found');
header('Status: 404 Not Found');
echo "
";
exit;
}
$rr=mysql_fetch_array($r);
$id_catalog=$rr['id_catalog'];
$tree_reg[0]=0;
$tree_cat[0]=0;
for($i=0; $i<3; $i++)
{
if($rr['razdel_'.$i])
$tree_cat[($i+1)]=$rr['razdel_'.$i];
if($rr['region_'.$i])
$tree_reg[($i+1)]=$rr['region_'.$i];
}
$glob_region=$tree_reg[1];
$name_items=$rr['zag'];
if(file_exists($base_path.'cashe_region/_svod_region_0.php'))
include_once($base_path.'cashe_region/_svod_region_0.php'); // регионы первого уровня
if($tree_reg[1] && file_exists($base_path.'cashe_region/_svod_region_'.$tree_reg[1].'.php'))
include_once($base_path.'cashe_region/_svod_region_'.$tree_reg[1].'.php'); // наш регион
for ($i=1; $i
Купить на авито =$title?>. avito
if($rru['round'])
{
?>
}
?>
include_once($base_path."blok/top_form.php");
?>
include_once($base_path."blok/search_form.php");
?>
|
echo $sape->return_links(2); ?>
|
//_rec ($id_catalog, 1);
?>
|
if($rru['typ_idv']==1)
include_once($base_path."blok/idv.php");
elseif($rru['typ_idv']==2)
include_once($base_path."blok/idv2.php");
elseif($rru['typ_idv']==3)
include_once($base_path."blok/idv3.php");
?>
|
if(!$err404)
{
?>
include_once($base_path."blok/bottom_form.php");
?>
|
|
|
}
?>