|
<?php
/*
-----------------------------------------
Автор: -=КотЭ=-(-=MTV=-) и Shot(Robber)
Бесплатный WAP движок: Strongcms
Контакты: 0664452670(МТС) ибо ICQ(7296000)
Файл: cab.php
-------------------------------------------
*/
$title = 'Личный кабинет';
require_once ('../system/function.php');
require_once ('../system/header.php');
# закрываем от гостей
if(!$user['id']) exit(header('Location: '.$HOME));
echo '<div class="title">'.$title.'</div>';
echo '<div class="podmenu">';
echo 'Ваш ник: <font color="red">'.$user['login'].' </font>';
echo ' | Стронги: <span style="color: #DAA520">'.$user['money'].'</span></a>';
echo '</div>';
echo '<div class="menudiv"><a href="'.$HOME.'/user/red_ank.php" class="k_menu"><img src="/images/cab/red_ank.png" alt="*" /> Редактировать анкету</div></a>
<div class="menudiv"><a href="'.$HOME.'/user/settings.php" class="k_menu"><img src="/images/cab/set_us.png" alt="*" /> Личные настройки</div></a>
<div class="menudiv"><a href="'.$HOME.'/user/x-status.php" class="k_menu"><img src="/images/cab/x_stat.png" alt="*" /> X-статус</div></a>
<div class="menudiv"><a href="'.$HOME.'/user/color_nick.php" class="k_menu"><img src="/images/cab/l_col.png" alt="*" /> Цвет ника</div></a>
<div class="menudiv"><a href="'.$HOME.'/user/up_nick.php" class="k_menu"><img src="/images/cab/s_nick.png" alt="*" /> Сменить ник</div></a>
<div class="menudiv"><a href="'.$HOME.'/user/avatar.php" class="k_menu"><img src="/images/cab/ava.png" alt="*" /> Сменить аватарку</div></a>
<div class="menudiv"><a href="'.$HOME.'/user/updatepass.php" class="k_menu"><img src="/images/cab/s_pass.png" alt="*" /> Смена пароля</div></a>';
echo '<div class="menu" align="center"> <big>Личное</big></div>
<div class="menudiv"><a href="'.$HOME.'/mes" class="k_menu"><img src="/images/cab/mess.png" alt="*" /> Сообщения ('.mysql_result(mysql_query("SELECT COUNT(id) FROM `message` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0).') </div></a>
<div class="menudiv"><a href="'.$HOME.'/lenta" class="k_menu"><img src="/images/cab/lent.png" alt="*" /> Лента ('.mysql_result(mysql_query("SELECT COUNT(id) FROM `lenta` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0).') </div></a>';
if($user['level'] >= 1) {
$chat_a = mysql_result(mysql_query('select count(`id`) from `admin_chat` where `time` > "'.(time()-((60*60)*12)).'"'),0);
echo '<div class="menu" align="center"> <big>Не для всех</big></div> ';
echo '<div class="menudiv"><a href="'.$HOME.'/panel" class="k_menu"><img src="/images/cab/panel.png" alt="*" /><font color="red"><b> Админ панель</b></font></div></a>';
echo '<div class="menudiv"><a href="'.$HOME.'/admin_chat/" class="k_menu"><img src="/images/cab/panel.png" alt="*" /> Админ чат <font color="red"> ' . ($chat_a > 0 ? '+' . $chat_a. '' : '') . '</font></b></div></a>';
}
//-----Подключаем низ-----//
require_once ('../system/footer.php');
?>