View file style/themes/default/head.php

File size: 667B
<table width="100%" cellspacing="1">
<tr>
<?php
if ($user_id)
{
    $count_mail = $sql->query('SELECT COUNT(*) FROM `mail` WHERE `no` = "0" AND `user` = "' . $user['id'] . '"')->result();
    if ($count_mail > 0)
    echo '<td class="aut"><a href="/pages/mail.php">Почта '. $count_mail . '</a></td>';
    echo '<td class="aut"><a href="/pages/menu.php">Кабинет</a></td><td class="aut"><a href="/login.php?exit">Выход</a></td>';
}
else
{
    echo '<td class="aut"><a href="/login.php">Войти на сайт</a></td>';
}
?>
</tr></table>
<div class="title">
<a href="/"><?=$_SERVER['SERVER_NAME']?></a> / <?=$set['title']?>
</div>
<div class="body">