Файл: system/header.php
Строк: 75
<?php
echo '<!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-Style-Type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no"/>
<link rel="shortcut icon" href="/design/style/favicon.png">';
$config = mysql_fetch_assoc(mysql_query("SELECT * FROM `config` WHERE `id` = '1'"));
if(isset($user))
{
echo '<link rel="stylesheet" href="/design/theme/'.$user['style'].'/style.css" type="text/css" /> ';
}
else
{
echo '<link rel="stylesheet" href="/design/theme/'.$config['style'].'/style.css" type="text/css" /> ';
}
echo ' <title>'. $title .'</title>
</head>
<body>';
$t = microtime(1);
if(!$user['id']) {
echo '<table style="width:100%" cellspacing="0" cellpadding="0"><tr><td class="p_t_v11"><a href="/login.php"><center><font color="#ffffff">Авторизация</font></center></a></td> <td class="p_t_v11"><a href="/registr.php"><center><font color="#ffffff">Регистрация</font></center></a></td></tr></table>';
} else {
$len = mysql_result(mysql_query("SELECT COUNT(id) FROM `lenta` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
$mes = mysql_result(mysql_query("SELECT COUNT(id) FROM `message` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
echo '<table style="width:100%" cellspacing="0" cellpadding="0"><tr><td class="p_t_v11"><a href="/user/cab.php"><center><img src="/images/up_panel/cab.png" alt="*"></center></a></td><td class="p_t_v11"><a href="/lenta.php"><center><img src="/images/up_panel/lent.png" alt="*"> ('.$len.') </center></a></td> <td class="p_t_v11"><a href="/mes"><center><img src="/images/up_panel/maill.png" alt="*"> ('.$mes.') </center></a></td><td class="p_t_v11"><a href="/exit.php"><center><img src="/images/up_panel/exit.png" alt="*"></center></a></td></tr></table>';
echo '<div class="podmenu">';
echo 'Ваш ник: <font color="red">'.$user['login'].' </font>'; echo '[<a href="/nickk.php">Сменить</a>]'; echo ' | Ваши деньги: <span style="color: #DAA520">'.$user['money'].'</div></span></a>';
echo '</div>';}
?>