Файл: public_html/user/info/wap.php
Строк: 413
<?
if (isset($user) && isset($_GET['status']))
{
if ($user['id'] == $ank['id'])
{
echo '<div class="main">Статус [512 символов]</div>';
echo '<form action="/info.php?id=' . $ank['id'] . '" method="post">';
echo "$tPanel<textarea type="text" style='' name="status" value=""/></textarea><br /> ";
echo "<input class="submit" style='' type="submit" value="Установить" />";
echo " <a href='/info.php?id=$ank[id]'>Отмена</a><br />";
echo "</form>";
include_once 'sys/inc/tfoot.php';
exit;
}
}
/*-----------------------------------------------------------*/
if ($ank['group_access']>1)echo "<div class='err'>$ank[group_name]</div>";
echo "<div class='gendasdf'>";
echo '<img src="/style/info/garem_k.gif" alt="*" /> ';
echo "<b>Персональный ид : $ank[id]</b><br /> n";
echo '<img src="/style/info/garem_k.gif" alt="*" /> ';
echo "Заходил(а)".vremja($ank['date_last'])."<br />n";
echo '<img src="/style/info/garem_k.gif" alt="*" /> ';
echo " Дата регистрации : ".vremja($ank['date_reg'])." <br />n";
echo "</div>";
echo "<div class='nav1'>";
echo group($ank['id']) . " $ank[nick] ";
echo medal($ank['id']) . " " . online($ank['id']) . " ";
if ((user_access('user_ban_set') || user_access('user_ban_set_h') || user_access('user_ban_unset')) && $ank['id'] != $user['id'])
echo "<a href='/adm_panel/ban.php?id=$ank[id]'><font color=red>[Бан]</font></a>";
echo "</div>";
// Аватар
echo "<div class='nav2'>";
echo avatar($ank['id'], true, 128, false);
echo "<br />";
if (isset($user) && isset($_GET['like']) && $user['id']!=$ank['id'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]' AND `id_user` = '$user[id]' LIMIT 1"),0)==0){
mysql_query("INSERT INTO `status_like` (`id_user`, `id_status`) values('$user[id]', '$status[id]')");
}
if ($status['id'] || $ank['id'] == $user['id'])
{
echo "<div class='st_1'></div>";
echo "<div class='st_2'>";
if ($status['id'])
{
echo output_text($status['msg']) . ' <font style="font-size:11px; color:gray;">' . vremja($status['time']) . '</font>';
if ($ank['id']==$user['id'])echo " [<a href='?id=$ank[id]&status'><img src='/style/icons/edit.gif' alt='*'> нов</a>]";
echo '<br />';
}
else if ($ank['id']==$user['id'])
{
echo "Ваш статус [<a href='?id=$ank[id]&status'><img src='/style/icons/edit.gif' alt='*'> ред</a>]";
}
echo "</div>";
// Если статус установлен
if ($status['id'])
{
echo " <a href='/user/status/komm.php?id=$status[id]'><img src='/style/icons/bbl4.png' alt=''/> " . mysql_result(mysql_query("SELECT COUNT(*) FROM `status_komm` WHERE `id_status` = '$status[id]'"),0) . " </a> ";
$l=mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]'"),0);if (isset($user) && $user['id']!=$ank['id'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]' AND `id_user` = '$user[id]' LIMIT 1"),0)==0)
{
echo " <a href='/info.php?id=$ank[id]&like'><img src='/style/icons/like.gif' alt='*'/> Класс!</a> • ";
$like = $l;
}
else if(isset($user) && $user['id']!=$ank['id'])
{
echo " <img src='/style/icons/like.gif' alt=''/> Вы и ";
$like = $l-1;
}
else
{
echo " <img src='/style/icons/like.gif' alt=''/> ";
$like = $l;
}
echo "<a href='/user/status/like.php?id=$status[id]'> $like чел. </a>";
}
$st = mysql_result(mysql_query("SELECT COUNT(*) FROM `status` WHERE `id_user` = '$ank[id]'"),0);
if ($st > 0)
{
echo "<br /> → <a href='/user/status/index.php?id=$ank[id]'>Все статусы</a> (" . $st . ")";
}
}
if ($user['id'] == $ank['id']){
echo "</div></center>";
echo "<div class='main_menu'>n";
/*===================Уведомления==================================*/
$k_notif = mysql_result(mysql_query("SELECT COUNT(`read`) FROM `notification` WHERE `id_user` = '$user[id]' AND `read` = '0'"), 0);
echo "<img src='/style/icons/notif.png' alt='*' /> ";
echo "<a href='/user/notification/index.php'><font color='red'>Уведомления</font></a> ";
echo "<font color="red">+$k_notif</font>";
echo "<br />";
echo "<img src='/style/icons/chat.gif' alt='*' /> ";
$new_g=mysql_result(mysql_query("SELECT COUNT(*) FROM `discussions` WHERE `id_user` = '$user[id]' AND `count` > '0'"),0);
echo "<a href='/user/discussions/index.php'><font color='red'>Обсуждения</font></a>";
echo "<font color="red"> +$new_g</font> ";
echo "<br />";
$k_l=mysql_result(mysql_query("SELECT COUNT(*) FROM `tape` WHERE `id_user` = '$user[id]' AND `read` = '0'"),0);
echo "<img src='/style/icons/lenta.gif' alt='*' /> <a href='/user/tape/'>".$color."Лента".$color2."</a>";
echo "<font color="red"> +$k_l</font>";
}
echo "</div>";
include_once H.'user/info/sp_para/my_sp.php';
echo "</div>";
$you = mysql_fetch_assoc(mysql_query("SELECT * FROM `garem` WHERE `user_id` = '" . $ank['id'] . "'"));
if (isset($you['id']))
{
$garem_us = get_user($you['thief_id']);
echo '<div class="nav1">';
echo '<img src="/style/info/garem_k.gif" /> <a href="/plugins/garem/garem.php?id=' . $you['thief_id'] . '">' . (isset($user) && $you['thief_id'] == $user['id'] ? ' У вас в гареме ' : 'В гареме ' . $garem_us['nick']) . '</a><br />';
}
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `garem` WHERE `user_id` = '" . $ank['id'] . "'"),0) == 0 && isset($user) && $user['id'] != $ank['id'] && $user['pol'] != $ank['pol']){
echo '<div class="nav1">';
echo '<img src="/style/info/garem_k.gif" alt="!"><a href="/plugins/garem/act.php?id=' . $ank['id'] . '&act=theft">Украсть в гарем</a></br>';
echo "</div>";
}
echo "</div>";
echo "<div class='gendasdf'>";
if ($ank['ank_name']!=NULL)echo " <img src='/style/info/garem_k.gif' alt='*' /> <b> Имя: </b> $ank[ank_name]<br />n";
if ($ank['pol']==1)
echo "<img src='/style/info/garem_k.gif' alt='*' /> <b> Пол: </b> Мужской </br>n";
else
echo "<img src='/style/info/garem_k.gif' alt='*' /><b> Пол: </b> Женский </br>n";
if ($ank['ank_city'] != NULL)echo " <img src='/style/info/garem_k.gif' alt='*' /> <b> Город: </b>$ank[ank_city]<br/>n";
echo "</div>";
echo "<div class='nav1'>";
echo "<img src='/style/icons/anketa.gif' alt='*' /> <a href='/user/info/anketa.php?id=$ank[id]'>Анкета</a> ";
if (isset($user) && $user['id']==$ank['id'])
{
echo "[<img src='/style/icons/edit.gif' alt='*' /> <a href='/user/info/edit.php'>ред</a>]";
}
echo "</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>";
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 "<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 />';
$forum=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `forum_zakl` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$people=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `mark_people` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$files=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `mark_files` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$foto=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `mark_foto` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$notes=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `mark_notes` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$zakladki = $people + $files + $foto + $notes + $forum;
echo "<img src='/style/icons/fav.gif' alt='*' /> ";
echo "<a href='/user/bookmark/index.php?id=$ank[id]'>Закладки</a> ($zakladki)<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 />';
if (isset($user)){
echo'<img src="/style/info/duel.png" alt="S" /><a href="/duel/index.php?act=myd"> Дуэли </a>('.mysql_result(mysql_query("SELECT COUNT(*) FROM `duel` WHERE `id_opponent`='$user[id]' OR `id_user`='$user[id]'"),0).')<br/>';
}
echo "<img src='/style/info/zagon.png' alt='' class='icon'/>n";
echo '<a href="/plugins/games/zagon/index.php?id=' . $ank['id'] . '"> Добыча </a>' . ($ank['pol'] == 0 ? '' : null) . '('. mysql_result(mysql_query("SELECT COUNT(*) FROM `zagon` WHERE `id_user` = '$ank[id]'"),0).')<br /> ';
echo "</div>";
echo "</div>";
if (isset($user) && $ank['id'] != $user['id']) {
echo "<div class='nav1'>";
echo " <a href="/mail.php?id=$ank[id]"><img src='/style/icons/pochta.gif' alt='*' /> Написать сообщение</a><br/>";
echo' <img src="/style/icons/icon_stranica.gif" alt="!"> <a href="/duel/index.php?act=to&id='.$ank['id'].'"> Вызвать на дуэль</a><br/>';
if ($frend_new == 0 && $frend == 0) {
echo "<a href='/user/frends/create.php?add=" . $ank['id'] . "'><img src='/style/icons/druzya.png' alt='*'/> Добавить в друзья</a><br/>";
} elseif ($frend_new == 1) {
echo "<a href='/user/frends/create.php?otm=$ank[id]'><img src='/style/icons/druzya.png' alt='*'/> Отклонить заявку</a><br/>";
} elseif ($frend == 2) {
echo "<a href='/user/frends/create.php?del=$ank[id]'><img src='/style/icons/druzya.png' alt='*'/> Удалить из друзей</a><br/>";
}
echo '<img src="/style/icons/fav.gif" alt="*" /> ';
if ( mysql_result(mysql_query("SELECT COUNT(*) FROM `mark_people` WHERE `id_user` = '" . $user['id'] . "' AND `id_people` = '" . $ank['id'] . "' LIMIT 1"),0) == 0)
echo '<a href="?id=' . $ank['id'] . '&fav=1"> Добавить в закладки </a><br />';
else
echo '<a href="?id=' . $ank['id'] . '&fav=0">Удалить из закладок</a><br />';
echo "<a href="/user/money/translate.php?id=$ank[id]"><img src='/style/icons/uslugi.gif' alt='*' /> Перевести монеток </a><br/>";
echo "<a href="/give_balls.php?id=$ank[id]"><img src='/style/icons/uslugi.gif' alt='*' /> Поделиться баллами </a><br/>";
echo "<img src='style/icons/chat.png' alt='' class='icon'/> <a href='/dei/index.php?id=$ank[id]'><b> Выполнить действие </b></a> <br>n";
echo "<a href="/user/gift/categories.php?id=$ank[id]"><img src='/style/icons/adm.gif' alt='*' /> Сделать подарок</a><br/>";
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `garem` WHERE `user_id` = '" . $ank['id'] . "'"),0) == 0 && isset($user) && $user['id'] != $ank['id'] && $user['pol'] != $ank['pol'])
echo '<img src="/style/info/garem_k.gif" alt="*" /><a href="/plugins/garem/act.php?id=' . $ank['id'] . '&act=theft"> Украсть к себе в гарем </a>';
}
echo "</div>";
echo "<div class='gendasdf'>";
echo "<img src='/style/info/babos.png'> Балов:</a> <span class='cnt'>$ank[balls]</span><br />n";
echo "<img src='/style/icons/like.gif'> Рейтинг:</a> <span class='cnt'>$ank[rating]</span><br />n";
$mail=mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `id_user` = '$ank[id]' OR `id_kont` = '$ank[id]'"),0);
echo "<img src='/style/icons/chat.png'> Репутация : </a> <span class='cnt'>$mail</span><br />n";
$k_them=mysql_result(mysql_query("SELECT COUNT(*) FROM `forum_p` WHERE `id_user` = '$ank[id]'"),0);
echo "<img src='/style/info/sp.png'> Сексуальность : </a> <span class='cnt'>$k_them</span><br />n";
$news_komm=mysql_result(mysql_query("SELECT COUNT(*) FROM `news_komm` WHERE `id_user` = '$ank[id]'"),0);
echo "<img src='/style/info/garem_k.gif' alt='' class='icon'/> Шикарность : $news_komm<br />n";
echo "<img src='/style/icons/lider.gif'> Вип : </a> <span class='cnt'>$ank[status_vip]</span><br />n";
$chat_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `chat_post` WHERE `id_user` = '$ank[id]'"),0);
echo "<img src='/style/info/vip_user.png' alt='' class='icon'/> Активность в чате :<span class='cnt'> $chat_post </span><br />n";
echo "<img src='/style/info/money.png'> Монет: </a> <span class='cnt'>$ank[money]</span><br />n";
echo "<img src='/style/info/vnimatelno.gif' alt='*' /> ";
echo ' Внимательность : ' . ($ank['pol'] == 0 ? '' : null) . ''. mysql_result(mysql_query("SELECT COUNT(*) FROM `zagon` WHERE `id_user` = '$ank[id]'"),0) .'<br />';
echo '<img src="/style/info/garem_k.gif" alt="*" /> ';
echo "<span class="ank_b "> Посл. посещение: </span> <span class="ank_d ">".vremja($ank['date_last'])." </span><br />n";
$guest=mysql_result(mysql_query("SELECT COUNT(*) FROM `guest` WHERE `id_user` = '$ank[id]'"),0);
echo "<img src='/style/my_menu/contakt.png' alt='' class='icon'/> Уровень преданности сайту: <span class='cnt'> $guest</span><br />n";
echo"<img src='/style/my_menu/contakt.png' alt='*' /> Побед в дуэлях: $ank[stat_win]<br/>";
echo"<img src='/style/icons/uslugi.gif' alt='*' />".($ank['pol'] == 1 ? " Получил" : "Получила") . " голосов в дуэлях : $ank[stat_golosmy]<br/>";
echo"<img src='/style/icons/uslugi.gif' alt='*' />".($ank['pol'] == 1 ? " Голосовал" : "Голосовала") . " в дуэлях : $ank[stat_golos]<br/>";
echo "<img src='/style/info/zagon.png' alt='' class='icon'/>n";
echo ' Поймано животных : </a>' . ($ank['pol'] == 0 ? '' : null) . ''. mysql_result(mysql_query("SELECT COUNT(*) FROM `zagon` WHERE `id_user` = '$ank[id]'"),0).'<br /> ';
echo "</div>";
?>