Файл: system/header.php
Строк: 90
<?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['id'])) echo '<link rel="stylesheet" href="'.$HOME.'/design/theme/'.$user['style'].'/style.css" type="text/css" /> ';
else echo '<link rel="stylesheet" href="'.$HOME.'/design/theme/'.$config['style'].'/style.css" type="text/css" /> ';
echo ' <title>'. $title .'</title>
</head>
<body>';
$t = microtime(1);
echo '<div class="p_t_v11">';
echo '<a href="'.$HOME.'"><img src="'.$HOME.'/design/theme/default/logotip.png" alt="'.$HOME.'" title="'.$HOME.'" /></a></div>';
if(!isset($user['id'])) {
echo '<table style="width:100%" cellspacing="0" cellpadding="0" class="panelk"><tr>
<td class="links" ><center><a href="/login.php">Вход</a></td>
<td class="links" ><center><a href="/registr.php">Регистрация</a></td>
<td class="links" ><center><a href="/vk/auth.php">VK</a></td></tr></table>';
}
if(isset($user['id'])) {
$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);
$load_mod = mysql_result(mysql_query("SELECT COUNT(*) FROM `load_file` WHERE `mod` = '0'"), 0);
echo '<table style="width:100%" cellspacing="0" cellpadding="0" class="touch_panel"><tr>
<td><a href="/user/cab.php"><center><img src="/images/up_panel/cab.png" class="white" type="button" alt="*" height="30"></center></a></td>
<td ><a href="/lenta.php"><center><img class="white" type="button" src="/images/up_panel/lent.png" alt="*" height="30"><font color="red"><b>' . ($len > 0 ? '+'.$len.'' : '') . '</b></font></center></a></td>
<td><a href="/mes"><center><img class="white" type="button" src="/images/up_panel/maill.png" alt="*" height="30"><font color="red"><b> ' . ($mes > 0 ? '+'.$mes.'' : '') . ' </b></font> </center></a></td>
<td ><a href="/exit.php"><center><img class="white" type="button" src="/images/up_panel/exit.png" alt="*" height="30"></center></a></td></tr></table>';
}
$rek = mysql_result(mysql_query("SELECT COUNT(id) FROM `ads` WHERE `time_srok` > '".time()."' and `tip` = '0'"),0);
$sql_rek = mysql_query("SELECT * FROM `ads` WHERE `time_srok` > '".time()."' and `tip` = '0' ORDER BY rand() DESC LIMIT 3");
##Блок рекламы
if($rek != 0) {
echo '<div class="divrek">';
while($sql = mysql_fetch_assoc($sql_rek)){
echo '<a href="'.$sql['url'].'"><img src="'.$HOME.'/images/rr.png" alt="*" title="Реклама" / height="25"> ';
echo '<font color="'.$sql['color'].'">';
if($sql['b'] == 1) echo '<b>';
if($sql['i'] == 1) echo '<i>';
echo $sql['name'];
if($sql['i'] == 1) echo '</i>';
if($sql['b'] == 1) echo '</b>';
echo '</font>';
echo '</a>';
if($rek > 1) echo '</br>';
}
echo '<a href="/user/rek.php"><img src="'.$HOME.'/images/rr.png" alt="*" title="Реклама" / height="25"><b> Заказать рекламу (3 руб.)</b></a></div> ';
}
if(isset($user['id'])) {
if($user['level'] >= 1) echo ' ' .($load_mod > 0 ? '<div class="podmenu">
<a href="'.$HOME.'/panel/load_mod">Модерация файлов <font color="red"><b>+' . $load_mod . '</b></font></a> </div>' : '').' ';
}
?>