Файл: blog_ecsx/private.files/head.file.php
Строк: 52
<?php
echo '<html>
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="shortcut icon" href="/views/john/img/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/design.files/style.css">
<title>'.$title.'</title>
</head>
<body>';
echo '<div class="head"><table cellpadding="0" cellspacing="0"><tr>';
if(isset($user)){ echo '<td class="tdmenu"><a href="/profile"><img src="/design.files/profile.png"></a></td>'; }else{ echo '<td class="tdmenu"><a href="/success"><img src="/design.files/menu.png"></a></td>';}
echo '<td class="tdname">iBlog.ru</td>';
if(isset($user)){ echo '<td class="tdmenu"><a href="/exit"><img src="/design.files/exit.png"></a></td>'; }else{ echo '<td class="tdmenu"><a href="/registration"><img src="/design.files/ext.png"></a></td>';}
echo '</tr></table></div>';
if(isset($user)){
if($db->query("SELECT * FROM `journal` WHERE `id_user` = '$user[id]' AND `status` = '1'")->num_rows != '0') echo '<div class="wrap"> <a href="/journal"> Новые события в журнале <font color="red"> + '.$db->query("SELECT * FROM `journal` WHERE `id_user` = '$user[id]' AND `status` = '1'")->num_rows.'</font></a></div><div class="razd"></div>';
if($db->query("SELECT * FROM `moderation`")->num_rows != '0' && $user['prava'] > '1') echo '<div class="wrap"> <a href="/panel/moderation"> Новые статьи на модерацию <font color="red"> + '.$db->query("SELECT * FROM `moderation")->num_rows.'</font></a></div><div class="razd"></div>';
}
if(isset($_SESSION['message'])){
echo '<div class="complate"> '.htmlspecialchars($_SESSION['message']).'</div>';
$_SESSION['message'] = NULL; }