Файл: php-zona.ru/modules/user/cab/index.php
Строк: 20
<?php
$title='Личный кабинет';
include_once($_SERVER["DOCUMENT_ROOT"].'/style/head.php');
?>
<div class="title">Личный кабинет</div>
<?
mode('user');
?>
<div class="text">
<a href="/user/<?=$user['id']?>">Моя страница</a><br/>
<a href="/cab/sett">Настройки</a><br/>
<a href="/cab/notifications">Оповещения</a> (<?=$db->query("SELECT `id` FROM `notifications` WHERE `id_us`='".$user['id']."'")->num_rows?>
<?if($db->query("SELECT `id` FROM `notifications` WHERE `id_us`='".$user['id']."' AND `read`='0'")->num_rows!=0){?><font color="red">+<?=$db->query("SELECT `id` FROM `notifications` WHERE `id_us`='".$user['id']."' AND `read`='0'")->num_rows?></font><?}?>)
<?
if($user['level']>=1){
?>
<br/><a href="/admin" class="links">Админ-панель</a>
<?
}
?>
</div>
<?
include_once($_SERVER["DOCUMENT_ROOT"].'/style/foot.php');
?>