Файл: inc/adm_head.php
Строк: 42
<?php
/**
* @author [FaNiska]
* @copyright 2009
* Загруз центр
* Предложения, идеи, вопросы и об ошибках писать в icq 65-64-538 или на mobi-m-ru@ya.ru
*/
if (isset($table))
{
$head_cat = mysql_fetch_array(mysql_query("SELECT `r_name`, `s_name`, `p_i_f` FROM `category` WHERE `s_name` = 'files/$table' LIMIT 1"));
if ($id != 0)
{
$head_navi = mysql_fetch_array(mysql_query("SELECT `id`, `id_p`, `r_name` FROM `$table` WHERE `id` = $id LIMIT 1"));
$i = $head_navi['id_p'];
$head_navi['r_name'] = str_replace('*', '', $head_navi['r_name']);
$put1 = ' | ' . $head_navi['r_name'];
$title1 = $head_navi['r_name'];
while ($i > 0)
{
$put = mysql_fetch_array(mysql_query('SELECT `id`, `id_p`, `r_name` FROM `' . $table . '` WHERE `id` = ' . $i . ' LIMIT 1'));
$put['r_name'] = str_replace('*', '', $put['r_name']);
$put2 = ' | <a href="adm_fm.php?c=' . $table . '&id=' . $put['id'] . '">' . $put['r_name'] . '</a>' . $put2;
$title2 = ' - ' . $put['r_name'] . ' - ' . $title2;
$i = $put['id_p'];
}
}
if (isset($title1))
{
$title = $head_cat['r_name'] . $title2 . $title1;
} else
{
$title = $title1 = $head_cat['r_name'];
}
} else
{
$title = $title1 = $setup['name'];
}
header('Content-type: text/html; charset=utf-8');
header('Expires: Thu, 21 Jul 1977 07:30:00 GMT');
header('Last-Modified: ' . gmdate('r') . ' GMT');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8"/>
<title><?
echo $title;
?></title>
<link rel="stylesheet" href="inc/style.css" type="text/css" />
</head>
<body>
<?
echo '<div class="body"><h1 class="title">' . $title1 . '</h1>';
echo '<div class="navi">Путь: <a href="adm_fm.php">Загруз Центр</a> | <a href="adm_fm.php?c=' . $table . '">' . $head_cat['r_name'] . '</a>' . $put2 . $put1 . '</div>';
?>