|
<?php
/*
#Бесплатный WAP движок StrongCMS
#Официальный сайт поддержки: http://strongcms.ru
*/
$title = 'Личный кабинет';
require ('../system/core.php');
require ('../system/head.php');
# закрываем от гостей
login();
$mes = $db->super_query("SELECT COUNT(id) as count FROM `message` WHERE `komy` = '".$user['id']."' and `readlen` = '0'");
$len = $db->super_query("SELECT COUNT(id) as count FROM `lenta` WHERE `komy` = '".$user['id']."' and `readlen` = '0'");
echo '<div class="title">'.$title.'</div>';
echo '<a href="'.HOME.'/id'.$user['id'].'" class="menudiv"><img src="/images/onl/man_on.png" alt="*" /> Моя анкета</a>
<a href="'.HOME.'/user/red_ank.php" class="menudiv"><img src="/images/cab/red_ank.png" alt="*" /> Редактировать анкету</a>
<a href="'.HOME.'/user/settings.php" class="menudiv"><img src="/images/cab/set_us.png" alt="*" /> Личные настройки</a>
<a href="'.HOME.'/user/x-status.php" class="menudiv"><img src="/images/cab/x_stat.png" alt="*" /> X-статус</a>
<a href="'.HOME.'/user/color_nick.php" class="menudiv"><img src="/images/cab/l_col.png" alt="*" /> Цвет ника</a>
<a href="'.HOME.'/user/up_nick.php" class="menudiv"><img src="/images/cab/s_nick.png" alt="*" /> Сменить ник</a>
<a href="'.HOME.'/user/avatar.php" class="menudiv"><img src="/images/cab/ava.png" alt="*" /> Сменить аватарку</a>
<a href="'.HOME.'/user/updatepass.php" class="menudiv"><img src="/images/cab/s_pass.png" alt="*" /> Смена пароля</a>';
echo '<div class="menu" align="center"> <big>Личное</big></div>
<a href="'.HOME.'/mes" class="menudiv"><img src="/images/cab/mess.png" alt="*" /> Сообщения <span class="counts_right"><b>'.$mes['count'].'</b></span> </a>
<a href="'.HOME.'/lenta" class="menudiv"><img src="/images/cab/lent.png" alt="*" /> Лента <span class="counts_right"><b>'.$len['count'].'</b></span> </a>
<a href="'.HOME.'/exit.php" class="menudiv"><img src="/images/cab/s_pass.png" alt="*" /> Выход</a>';
require_once ('../system/footer.php');
?>