Файл: public_html/umenu.php
Строк: 196
<?
/*
Автор скрипта: TheSom
Сайт поддержки: http://lovmob.ru
Запрещено распространять скрипт в любом виде и под любым предлогом!
*/
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/start.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/compress.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/sess.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/home.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/settings.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/db_connect.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/ipua.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/fnc.php';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/user.php';
only_reg();
$set['title'] = 'Личный кабинет';
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/thead.php';
title();
aut();
if (isset($user))$ank['id']=$user['id'];
echo "<div class='gendasdf'>";
echo "<img src='/style/info/babos.png' alt='' class='icon'/> Баллов :<font color='black'>$user[balls]</font> <br />n";
echo "<img src='/style/icons/like.gif' alt='' class='icon'/> Рейтинг : <font color='black'>$user[rating]</font> <br />n";
echo "<img src='/style/icons/lider.gif' alt='' class='icon'/> Вип : <font color='black'>$user[status_vip]</font> <br />n";
echo "<img src='/style/info/money.png' alt='' class='icon'/> Монет: <font color='black'>$user[money]</font> <br />n";
echo "</div>n";
echo "<div class='gend' id='umenu_razd'>Основное :</div>";
echo "<div class='reklama' id='umenu'>";
echo "<img src='/style/icons/anketa.gif' alt='' /> <a href='/info.php'>Моя страничка</a><br />";
echo "<img src='/style/icons/fav.gif' alt='' /> <a href='/user/info/anketa.php'>Анкета</a> [<a href='user/info/edit.php'>ред.</a>]<br />";
$k_f = mysql_result(mysql_query("SELECT COUNT(id) FROM `frends_new` WHERE `to` = '$ank[id]' LIMIT 1"), 0);
$k_fr = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends` WHERE `user` = '$ank[id]' AND `i` = '1'"), 0);
$res = mysql_query("select `frend` from `frends` WHERE `user` = '$ank[id]' AND `i` = '1'");
echo '<img src="/style/icons/druzya.png" alt="*" /> ';
echo '<a href="/user/frends/?id=' . $ank['id'] . '">Друзья</a> (' . $k_fr . '</b>/';
$i = 0;
while ($k_fr = mysql_fetch_array($res))
{
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$k_fr[frend]' && `date_last` > '".(time()-600)."'"),0) != 0)
$i++;
}
echo "<span style='color:green'><a href='/user/frends/online.php?id=".$ank['id']."'>$i</a></span>)";
if ($k_f>0 && $ank['id'] == $user['id'])echo " <a href='/user/frends/new.php'><font color='red'>+$k_f</font></a>";
echo '<br />';
if ($ank['id']==$user['id'])echo "<img src='/style/icons/lider.gif' alt='*'> <a href='/info.php?id=$ank[id]&status'>Новый статус</a><br />";
echo "</div>";
echo "<div class='gend' id='umenu_razd'>Мои активы :</div>";
echo "<div class='reklama'>";
echo "<img src='/style/icons/uslugi.gif' alt='' /> <a href='/user/money/'>Мои услуги</a><br />";
$new_g=mysql_result(mysql_query("SELECT COUNT(*) FROM `my_guests` WHERE `id_ank` = '$user[id]'"),0);
echo "<img src='/style/icons/guests.gif' alt='*' /> <a href='/user/myguest/'>Мои гости</a> ($new_g)<br />";
echo "<img src='/style/icons/guest.png' alt='' class='icon' /> <a href=' /dei/index.php?id=$ank[id]'> Действия "; echo "</a>n";
include_once 'dei/count.php';
echo '<br />';
$k_p = mysql_result(mysql_query("SELECT COUNT(id) FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1'"),0);
echo "<img src='/style/icons/adm.gif' alt='*' /> ";
echo ' <a href="/user/gift/index.php?id=' . $ank['id'] . '"> Подарки </a> (' . $k_p . ')';
echo '<br />';
$count['garem'] = mysql_result(mysql_query("SELECT COUNT(*) FROM `garem` WHERE `thief_id` = '" . $ank['id'] . "'"),0);
echo '<img src="/style/info/garem.png" /> <a href="/plugins/garem/garem.php?id=' . $ank['id'] . '">Гарем</a> (' . $count['garem'] . ')<br />';
echo "<img src='/style/info/zagon.png' alt='' class='icon'/>n";
echo '<a href="/plugins/games/zagon/index.php"> Моя добыча </a>' . ($ank['pol'] == 0 ? '' : null) . '('. mysql_result(mysql_query("SELECT COUNT(*) FROM `zagon` WHERE `id_user` = '$ank[id]'"),0).')<br /> ';
echo "</div>";
echo "<div class='gend' id='umenu_razd'>Мои файлы :</div>";
echo "<div class='reklama'>";
$st = mysql_result(mysql_query("SELECT COUNT(*) FROM `status` WHERE `id_user` = '$ank[id]'"),0);
echo "<img src='/style/icons/like.gif' alt='*' /><a href='/user/status/index.php?id=" . $ank['id'] . "'>Мои статусы</a> (" . $st . ")<br />";
echo "<img src='/style/icons/foto.png' alt='*' /> ";
echo "<a href='/foto/$ank[id]/'>Фотографии</a> ";
echo "(" . mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$ank[id]'"),0) . ")<br />";
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` = '1'"), 0)==0)
{
mysql_query("INSERT INTO `user_files` (`id_user`, `name`, `osn`) values('$ank[id]', 'Файлы', '1')");
}
$dir_osn = mysql_fetch_assoc(mysql_query("SELECT * FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` = '1' LIMIT 1"));
echo "<img src='/style/icons/files.gif' alt='*' /> ";
echo "<a href='/user/personalfiles/$ank[id]/$dir_osn[id]/'>Файлы</a> ";
echo "(" . mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` > '1'"),0) . "/" . mysql_result(mysql_query("SELECT COUNT(*) FROM `obmennik_files` WHERE `id_user` = '$ank[id]'"),0) . ")<br />";
$k_music=mysql_result(mysql_query("SELECT COUNT(*) FROM `user_music` WHERE `id_user` = '$ank[id]'"),0);
echo "<img src='/style/icons/play.png' alt='*' width='16'/> ";
echo "<a href='/user/music/index.php?id=$ank[id]'>Музыка</a> ";
echo "(" . $k_music . ")";
echo '<br />';
$kol_dnev=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id_user` = '".$ank['id']."'"),0);
echo "<img src='/style/icons/zametki.gif' alt='*' /> ";
echo "<a href='/plugins/notes/user.php?id=$ank[id]'>Дневники</a> ($kol_dnev)<br />";
echo "</div>";
echo "<div class='gend' id='umenu_razd'>Мои Настройки :</div>";
echo "<div class='reklama'>";
echo "<img src='/style/icons/foto.png' alt='' /> <a href='/avatar.php'>Мой аватар</a><br />";
echo "<img src='/style/info/sp.png' alt='' /> <a href='/user/info/sp_para/edit.php'>Семейное положение</a><br />";
echo "<img src='/style/my_menu/set.png' alt='' /> <a href='/user/info/settings.php'>Общие настройки</a><br />";
echo "<img src='/style/my_menu/secure.png' alt='' /> <a href='/secure.php'>Сменить пароль</a><br />";
echo "<img src='/style/my_menu/rules.png' alt='' /> <a href='/rules.php'>Правила</a>";
echo "</div>";
echo '<div class="gend" id="umenu_razd">Прочее :</div>';
// Только для wap
if ($set['web'] == false)
{
echo '<div class="reklama" id="reklama">';
echo '<a href="/exit.php"><img src="/style/my_menu/zakl.png" /> <font color="#ff0000">Выход</font></a><br />';
echo '</div>';
}
require_once$_SERVER['DOCUMENT_ROOT'].'/sys/inc/tfoot.php';
exit;
?>