Файл: sys/head.php
Строк: 73
<?
/*
- Автор скрипт: Ak47res1
- ICQ: 646099815
*/
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-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<meta name="description" content="BLOG от Ak47res1" />
<meta name="keywords" content="BLOG от Ak47res1" />
<link rel="shortcut icon" href="'.$HOME.'/style/img/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="'.$HOME.'/style/style.css" type="text/css" />
<link rel="stylesheet" href="'.$HOME.'/style/addition.css" type="text/css" />
<title>'.$_SERVER['HTTP_HOST'].'/'.$title.'</title>
</head>
<body>
<div class="head">'.$_SERVER['HTTP_HOST'].'/'.$title.'</div>';
?><!-- Автор скрипт Ak47res1 --><?
$t = microtime(1);
// Проверка на блокировку аккаунта
if ($user->blocking == 1){
echo $div->div_err.' Аккаунт заблокированый</div>';
exit;
}
if (!isset($_SESSION['user_id'])) {
echo '<table style="width:100%" cellspacing="0" cellpadding="0"><tbody><tr>
<td style="vertical-align:top;width:50%;">
<a id="head" href="/login" title="Вход"><span style="color:#FFF">Вход</span></a>
</td>
<td style="vertical-align:top;width:50%;">
<a id="head" href="/reg" title="Регистрация"><span style="color:#FFF">Регистрация</span></a>
</td>';
echo ($_SERVER['PHP_SELF'] != '/index.php' ? '<td style="vertical-align:top;width:10%;border-right:none !important;">
<a id="head" href="/" title="На главную">
<img id="icon" src="/style/img_head/home_grey.png" width="12" height="12" alt="На главную">
</a></td>' : NULL);
echo '</tr></tbody></table>';
} else {
$zhurnal = mysql_result(mysql_query("SELECT COUNT(*) FROM `zhurnal` WHERE `user_id` = '". $user->id ."' AND `read` = '0'"), 0);
echo '<table style="width:100%" cellspacing="0" cellpadding="0"><tbody><tr>';
echo ($_SERVER['PHP_SELF'] != '/index.php' ? '<td style="vertical-align:top;width:10%;border-right:none !important;">
<a id="head" href="/" title="На главную">
<img id="icon" src="/style/img_head/home_grey.png" alt="На главную">
</a>
</td>' : NULL);
echo '
<td style="vertical-align:top;width:19%;border-right:none !important;">
<a id="head" href="/scripts/user/user.cabinet.php" title="Личный кабинет">
<img id="icon" src="/style/img_head/profile_man.png" alt="Личный кабинет">
</a>
</td>
<td style="vertical-align:top;width:19%;">
<a id="head" href="/scripts/zhurnal/" title="Журнал">
<img id="icon" src="/style/img_head/qlt_journaln.png" alt="Жур">
'. ($zhurnal > 0 ? '<span style="color:#FFFF00">'. $zhurnal .'</span>' : NULL) .'
</a>
</td>';
if (isset($user->id) && $_SERVER['PHP_SELF'] == '/index.php'){
echo ' <td style="vertical-align:top;width:5%;">
<a id="head" href="/?exit" title="Выход">
<img id="icon" src="/style/img_head/exit.png" alt="Выход">
</a>
</td>';
}
echo '</tr></tbody></table>';
mysql_query("UPDATE `user` SET `time_last` = '". time() ."' WHERE `id` = '". $user->id ."' LIMIT 1");
}
?>