|
<?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'");
$new_guests = $db->super_query("SELECT COUNT(*) as count FROM `my_guests` WHERE `us` = '".$user['id']."' AND `read` = '0'");
echo '<div class="title">'.$title.'</div>';
echo '<div class="news">';
echo 'Ваш ник: <font color="red">'.$user['login'].' </font>';
echo ' | Стронги: <span style="color: #DAA520">'.$user['money'].'</span></a>';
echo '</div>';
echo '<a href="'.HOME.'/user_'.$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.'/my_guests" class="menudiv"><img src="/images/onl/man_on.png" alt="*" /> Мои гости '.($new_guests['count'] > 0 ? '<span class="counts_right"><b>+'.$new_guests['count'].'</b></span>' : '').'</a>
<a href="'.HOME.'/exit.php" class="menudiv"><img src="/images/cab/s_pass.png" alt="*" /> Выход</a>
';
if ($user['level'] >= 1)
{
$chat_a = $db->super_query('select count(id) as count from `admin_chat` where `time` > "'.(TIME - ((60 * 60) * 12)).'"');
echo '<div class="menu" align="center"> <big>Не для всех</big></div> ';
echo '<a href="'.HOME.'/panel" class="menudiv"><img src="/images/cab/panel.png" alt="*" /><font color="red"><b> Админ панель</b></font></a>';
echo '<a href="'.HOME.'/admin_chat/" class="menudiv"><img src="/images/cab/panel.png" alt="*" /> Админ чат '.($chat_a['count'] > 0 ? '<span class="counts_right"><b>+'.$chat_a['count'].'</b></span>' : '').'</b></a>';
}
require_once ('../system/footer.php');
?>