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 publication 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<4; $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'];
include_once($base_path.'cashe_pub/_svod_catalog.php'); // дерево каталогов
if($id_catalog)
{
if(file_exists($base_path.'cashe_pub/_svod_catalog_'.$id_catalog.'.php'))
include_once($base_path.'cashe_pub/_svod_catalog_'.$id_catalog.'.php');
}
$title=$name_items;
$no_title=1;
?>
=$title?>
if($rr['description']) echo ''."\n";
if($rr['keywords']) echo ''."\n";
?>
if($rru['round'])
{
?>
}
?>
include_once($base_path."blok/top_form.php");
?>
include_once($base_path."pub/search_form.php");
?>
|
|
//_rec ($id_catalog, 1);
?>
|
include_once($base_path."pub/idv.php");
?>
|
if(!$err404)
{
?>
include_once($base_path."blok/bottom_form.php");
?>
|
|
|
}
?>