Файл: inc/head.php
Строк: 45
<?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 * 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="index.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'];
    }
    $error_message = base64_decode('PGRpdiBzdHlsZT0iZGlzcGxheTogbm9uZSI+PGEgcmVsPSJjb3B5cmlnaHQiIGhyZWY9Imh0dHA6Ly9tb2Jpd2FwLnN1Ij4mY29weTsgbW9iaXdhcC5zdTwvYT48L2Rpdj4=');
}
if (isset($u_title))
{
    $title = $title1 = $u_title;
} elseif (empty($title) && empty($title1))
{
    $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>';
if(isset($message))
echo $message;
elseif(isset($error_message))
echo $error_message;
echo '<div class="navi">Путь: <a href="index.php">Загруз Центр</a> | <a href="index.php?c=' . $table . '">' . $head_cat['r_name'] . '</a>' . $put2 . $put1 . '</div>';
?>