Файл: obmen/file.php
Строк: 28
<?
include_once('../apahe/ini.php');
$obmen_f = mysql_fetch_assoc(mysql_query("SELECT * FROM `obmen-f` WHERE `id` = '".int($_GET['id'])."'"));
$urlup='/obmen/index';
$inc['title'] = 'Обменник - '.$obmen_f['file'].'.'.$obmen_f['type'].'';
include_once('../apahe/top.php');
if (!isset($apache)){
header ('location: /input.dll');
exit;
}
if (!$obmen_f){
header ('location: /obmen/index.dll');
exit;
}
if (file_exists('./type/'.$obmen_f['type'].'.tpl')){
include_once('./type/'.$obmen_f['type'].'.tpl');
}else{
include_once('./type/type-file.tpl');
}
include_once('../apahe/bottom.php');
?>