Файл: modules/user/cab/index.php
Строк: 29
<?php
$title='Личный кабинет';
include_once($_SERVER["DOCUMENT_ROOT"].'/style/head.php');
?>
<div class="title">Личный кабинет</div>
<?
mode('user');
?>
<div class="section"> <a href="/user/<?=$user['id']?>">Моя страница</a> </div>
<div class="section"> <a href="/cab/sett">Настройки</a> </div>
<div class="section"> <a href="/mail">Почта</a> </div>
<div class="section"> <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><?}?>)</div>
<div class="section"> <a href="/billing">Биллинг</a> </div>
<div class="section"> <a href="/portfolio">Моё портфолио</a> </div>
<?
if($user['level']>=1){
?>
<div class="section"> <a href="/admin" class="links">Админ-панель</a> </div>
<?
}
?>
<div class="section"><a href="/exit">Выход</a> </div>
<?
include_once($_SERVER["DOCUMENT_ROOT"].'/style/foot.php');
?>