Файл: setk/user/info/wap.php
Строк: 757
<?
/*
=======================================
Dcms-Social
Автор: Искатель
---------------------------------------
Этот скрипт распостроняется по лицензии
движка Dcms-Social.
При использовании указывать ссылку на
оф. сайт http://dcms-social.ru
---------------------------------------
Контакты
ICQ: 587863132
http://dcms-social.ru
=======================================
*/
echo "<div class='act'>";
echo "<a class='act_active2'>Профиль</a>";
echo'<a class="act_noactive2" href="/activ.php?id='.$ank['id'].'">Активность</a>';
echo"</div>";
echo "<div class='hide'>";
echo group($ank['id']) . " ";
echo "".vip($ank['id'])."";
echo user::nick($ank['id'], 1, 1, 1) . ' <br />';
echo "</div>";
echo "<div class='st_2'>";
if ($ank['hello']!=NULL)
{echo " $ank[hello]";}
else
{echo "Приветствие: Не заполнено";}
if ($ank['id']==$user['id']){
echo " <span class='color' style='float: right;'><a href='/hello.php'>
<img src='/iconc/edit_info.png' alt='Редактировать' title='Редактировать'></a><br /></span>";
}
echo "</div>";
/*------------------------статус форма-----------------------*/
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;
}
}
/*-----------------------------------------------------------*/
?><div class='hide1'><div style='position:relative;display:inline-block;'><?
echo "<table
style='width:100%;'><td width='6%'>";
include_once(H.'user/cover/inc/profileCover'.($webbrowser ? 'Pc' : 'Mobile').'.php');
$zn=mysql_fetch_array(mysql_query("SELECT * FROM `zna4ki_pok` WHERE `id_user` = '$ank[id]' AND `time` > '$time' LIMIT 1"));
if ($zn['time'] >= $time)echo "<img style='position:absolute;bottom: 70px; right: 55%;' src='/user/zna4ki/zna/$zn[id_zn].png'>";
?></div><br /><?
echo "<div class='bzx'>";
if ($ank['official']==1)echo "<img src='/style/1.png'>";
// Авторитет
echo '<div style="color: #4e4e4e"><img src="/style/avtoritet/a8.png" alt="*" />Авторитет [' . $ank['avtoritet'] . '] <a href="/user/avtoritet.php?id=' . $ank['id'] . '"><img src="/style/avtoritet/icon_13.png" alt="*" /></a> </div>';
if ($ank['avtoritet'] > 0)
echo '<div>' . star($ank['avtoritet']) . '</div>';
echo group($ank['id']) . " ";
echo 'Звания : ';
if($ank['balls']>=0 && $ank['balls']<=0)echo "Однодневка<img src='/style/rank/100.gif' alt='' class='icon'</a><br >";
if($ank['balls']>=1 && $ank['balls']<=150)echo "Новичок<img src='/style/rank/250.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=151 && $ank['balls']<=300)echo "Недавний<img src='/style/rank/400.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=301 && $ank['balls']<=500)echo "Приспособился <img src='/style/rank/600.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=501 && $ank['balls']<=700)echo "Часто заходит <img src='/style/rank/750.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=701 && $ank['balls']<=1000)echo "Активен <img src='/style/rank/900.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=1001 && $ank['balls']<=1250)echo "Опытный <img src='/style/rank/1000.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=1251 && $ank['balls']<=2000)echo "Свой человек<img src='/style/rank/1249.png' alt='' class='icon'</a><br />";
if($ank['balls']>=2001 && $ank['balls']<=3000)echo "Освоился <img src='/style/rank/1449.png' alt='' class='icon'</a><br />";
if($ank['balls']>=3001 && $ank['balls']<=4500)echo "Развивает сайт<img src='/style/rank/1749.png' alt='' class='icon'</a><br />";
if($ank['balls']>=4501 && $ank['balls']<=5500)echo "Нашел смысл жизни<img src='/style/rank/1999.png' alt='' class='icon'</a><br/>";
if($ank['balls']>=5501 && $ank['balls']<=7000)echo "Почетный юзер<img src='/style/rank/2249.png' alt='' class='icon'</a><br />";
if($ank['balls']>=7001 && $ank['balls']<=8000)echo "Монстр общения <img src='/style/rank/2499.png' alt='' class='icon'</a><br />";
if($ank['balls']>=8001 && $ank['balls']<=9500)echo "Авторитет сайта <img src='/style/rank/2749.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=9501 && $ank['balls']<=11000)echo "Играет на всём что с
кнопками <img src='/style/rank/2999.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=10001 && $ank['balls']<=1300)echo "Всегда OnLine<img src='/style/rank/3249.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=14501 && $ank['balls']<=16000)echo " Высоко забрался <img src='/style/rank/4999.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=16001&& $ank['balls']<=17500)echo "Маньячит по сайту<img src='/style/rank/7499.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=17501 && $ank['balls']<=18500)echo "Стремлюсь к славе <img src='/style/rank/9999.gif' alt='' class='icon'</a><br />";
if($ank['balls']>=18501 && $ank['balls']<=21000)echo "Добивается своего<img src='/style/rank/1.png' alt='' class='icon'</a><br />";
if($ank['balls']>=21001 && $ank['balls']<=24000)echo " Гуру сайта<img src='/style/rank/2.png' alt='' class='icon'</a><br />";
if($ank['balls']>=24001 && $ank['balls']<=26000)echo " Элита сайта <img src='/style/rank/3.png 'alt='' class='icon'</a><br />";
if($ank['balls']>=26001 && $ank['balls']<=28000)echo "Гордость сайта <img src='/style/rank/4.png' alt='' class='icon'</a><br />";
if($ank['balls']>=28001 && $ank['balls']<=30000)echo "Знаменитость <img src='/style/rank/5.png' alt='' class='icon'</a><br />";
if($ank['balls']>=30001 && $ank['balls']<=32000)echo "Наш человек<img src='/style/rank/6.png' alt='' class='icon'</a><br />";
if($ank['balls']>=32001 && $ank['balls']<=34000)echo " Патриот сайта<img src='/style/rank/7.png' alt='' class='icon'</a><br />";
if($ank['balls']>=34001&& $ank['balls']<=36000)echo " Легенда сайта <img src='/style/rank/8.png' alt='' class='icon'</a><br />";
if($ank['balls']>=36001 && $ank['balls']<=39000)echo "Я здесь живу <img src='/style/rank/9.png' alt='' class='icon'</a><br />";
if($ank['balls']>=39001 && $ank['balls']<=42000)echo "Без сайта никуда <img src='/style/rank/10.png' alt='' class='icon'</a><br />";
if($ank['balls']>=42001 && $ank['balls']<=45000)echo " Старожил<img src='/style/rank/11.png' alt='' class='icon'</a><br />";
if($ank['balls']>=45001 && $ank['balls']<=50000)echo " VIP<img src='/style/rank/12.png' alt='' class='icon'</a><br />";
if($ank['balls']>=50001 && $ank['balls']<=60000)echo " Старичок сайта <img src='/style/rank/13.png' alt='' class='icon'</a><br />";
if($ank['balls']>=60001 && $ank['balls']<=69999)echo "С сайтом навсегда<img src='/style/rank/14.png' alt='' class='icon'</a><br />";
if($ank['balls']>=70000)echo "Ветеран <img src='/style/rank/hs.png' alt='' class='icon'</a><br />";
include_once H.'user/info/sp_para/my_sp.php';
echo "<div class=''>";
if ($ank['rating']>=5 && $ank['rating']<=10){echo "<img src='/rating/1.png' alt='*'/>";
}else
if ($ank['rating']>=11 && $ank['rating']<=15){echo "<img src='/rating/2.png' alt='*'/>";
}else
if ($ank['rating']>=16 && $ank['rating']<=20){echo "<img src='/rating/3.png' alt='*'/>";
}else
if ($ank['rating']>=21 && $ank['rating']<=25){echo "<img src='/rating/4.png' alt='*'/>";
}else
if ($ank['rating']>=26 && $ank['rating']<=30){echo "<img src='/rating/5.png' alt='*'/>";
}else
if ($ank['rating']>=31 && $ank['rating']<=35){echo "<img src='/rating/6.png' alt='*'/>";
}else
if ($ank['rating']>=36 && $ank['rating']<=40){echo "<img src='/rating/7.png' alt='*'/>";
}else
if ($ank['rating']>=41 && $ank['rating']<=45){echo "<img src='/rating/8.png' alt='*'/>";
}else
if ($ank['rating']>=46 && $ank['rating']<=50){echo "<img src='/rating/9.png' alt='*'/>";
}else
if ($ank['rating']>=51 && $ank['rating']<=55){echo "<img src='/rating/10.png' alt='*'/>";
}else
if ($ank['rating']>=56 && $ank['rating']<=60){echo "<img src='/rating/11.png' alt='*'/>";
}else
if ($ank['rating']>=61 && $ank['rating']<=65){echo "<img src='/rating/12.png' alt='*'/>";
}else
if ($ank['rating']>=66 && $ank['rating']<=70){echo "<img src='/rating/13.png' alt='*'/>";
}else
if ($ank['rating']>=71 && $ank['rating']<=75){echo "<img src='/rating/14.png' alt='*'/>";
}else
if ($ank['rating']>=76 && $ank['rating']<=80){echo "<img src='/rating/15.png' alt='*'/>";
}else
if ($ank['rating']>=81 && $ank['rating']<=85){echo "<img src='/rating/16.png' alt='*'/>";
}else
if ($ank['rating']>=86 && $ank['rating']<=90){echo "<img src='/rating/17.png' alt='*'/>";
}else
if ($ank['rating']>=91 && $ank['rating']<=95){echo "<img src='/rating/18.png' alt='*'/>";
}else
if ($ank['rating']>=96 && $ank['rating']<=105){echo "<img src='/rating/19.png' alt='*'/>";
}else
if ($ank['rating']>=106 && $ank['rating']<=110){echo "<img src='/rating/20.png' alt='*'/>";
}else
if ($ank['rating']>=111 && $ank['rating']<=115){echo "<img src='/rating/21.png' alt='*'/>";
}else
if ($ank['rating']>=116 && $ank['rating']<=120){echo "<img src='/rating/22.png' alt='*'/>";
}else
if ($ank['rating']>=121 && $ank['rating']<=125){echo "<img src='/rating/23.png' alt='*'/>";
}else
if ($ank['rating']>=126 && $ank['rating']<=130){echo "<img src='/rating/24.png' alt='*'/>";
}else
if ($ank['rating']>=131 && $ank['rating']<=135){echo "<img src='/rating/25.png' alt='*'/>";
}else
if ($ank['rating']>=136 && $ank['rating']<=140){echo "<img src='/rating/26.png' alt='*'/>";
}else
if ($ank['rating']>=141 && $ank['rating']<=145){echo "<img src='/rating/27.png' alt='*'/>";
}else
if ($ank['rating']>=146 && $ank['rating']<=150){echo "<img src='/rating/28.png' alt='*'/>";
}else
if ($ank['rating']>=151 && $ank['rating']<=155){echo "<img src='/rating/29.png' alt='*'/>";
}else
if ($ank['rating']>=156 && $ank['rating']<=160){echo "<img src='/rating/30.png' alt='*'/>";
}else
if ($ank['rating']>=161 && $ank['rating']<=165){echo "<img src='/rating/31.png' alt='*'/>";
}else
if ($ank['rating']>=166 && $ank['rating']<=170){echo "<img src='/rating/32.png' alt='*'/>";
}else
if ($ank['rating']>=171 && $ank['rating']<=175){echo "<img src='/rating/33.png' alt='*'/>";
}else
if ($ank['rating']>=176 && $ank['rating']<=180){echo "<img src='/rating/34.png' alt='*'/>";
}else
if ($ank['rating']>=181 && $ank['rating']<=185){echo "<img src='/rating/35.png' alt='*'/>";
}else
if ($ank['rating']>=186 && $ank['rating']<=190){echo "<img src='/rating/36.png' alt='*'/>";
}else
if ($ank['rating']>=191 && $ank['rating']<=195){echo "<img src='/rating/37.png' alt='*'/>";
}else
if ($ank['rating']>=196 && $ank['rating']<=200){echo "<img src='/rating/38.png' alt='*'/>";
}else
if ($ank['rating']>=201 && $ank['rating']<=205){echo "<img src='/rating/39.png' alt='*'/>";
}else
if ($ank['rating']>=206 && $ank['rating']<=210){echo "<img src='/rating/40.png' alt='*'/>";
}else
if ($ank['rating']>=211 && $ank['rating']<=99999){echo "<img src='/rating/41.png' alt='*'/>";
}
echo "</div>n";
echo "<div class=' '>";
echo "<img src='/style/icons/monet.png' alt='' class='icon'/>n";
echo '<b>Состояние:</b> ';
if($ank['money']>=0 && $ank['money']<=50)echo "Бомж";
if($ank['money']>=51 && $ank['money']<=1000)echo "Бедняк<img src='/rank/750.gif' alt='' class='icon'</a>";
if($ank['money']>=1001 && $ank['money']<=5000)echo "Зажиточный<img src='/rank/2249.png' alt='' class='icon'</a>";
if($ank['money']>=5001 && $ank['money']<=15000)echo "Состоятельный<img src='/rank/2749.gif' alt='' class='icon'</a>";
if($ank['money']>=15001 && $ank['money']<=50000)echo "Купец<img src='/rank/2999.gif' alt='' class='icon'</a>";
if($ank['money']>=50001 && $ank['money']<=1000000)echo "Баярин<img src='/rank/3249.gif' alt='' class='icon'</a>";
if($ank['money']>=1000001 && $ank['money']<=500000000)echo "Миллионер<img src='/rank/4999.gif' alt='' class='icon'</a>";
if($ank['money']>=500000001 && $ank['money']<=1000000000)echo "Мульти миллианер<img src='/rank/7499.gif' alt='' class='icon'</a>";
if($ank['money']>=1000000001 && $ank['money']<=2000000000)echo "Миллиардер<img src='/rank/9999.gif' alt='' class='icon'</a>";
if($ank['money']>=2000000001 && $ank['money']<=3000000000)echo "Мульти миллиардер<img src='/rank/10000.png' alt='' class='icon'</a>";
echo "<a href='/user/usmonet.php'>[?]</a>";
echo "</div>n";
echo "</div>";
echo "</span>";
echo "</td></table>";
?></div><br /><?
echo "</div>";
/*
========================================
Подарки
========================================
*/
$k_p = mysql_result(mysql_query("SELECT COUNT(id) FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1'"), 0);
$width = ($webbrowser == 'web' ? '45' : '30'); // Размер подарков при выводе в браузер
if ($k_p > 0) {
$q = mysql_query("SELECT id,id_gift,status FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1' ORDER BY `id` DESC LIMIT 5");
echo '<div class="na1">';
while ($post = mysql_fetch_assoc($q)) {
$gift = mysql_fetch_assoc(mysql_query("SELECT id FROM `gift_list` WHERE `id` = '$post[id_gift]' LIMIT 1"));
echo '<a href="/user/gift/gift.php?id=' . $post['id'] . '"><img src="/sys/gift/' . $gift['id'] . '.png" style="max-width:' . $width . 'px;" alt="Подарок" /></a> ';
}
echo '</div>';
echo '<div class="na2">';
echo "<img src='/style/icons/iconc/gifts.png' alt='*' /> ";
echo ' <a href="/user/gift/index.php?id=' . $ank['id'] . '">Все подарки</a> ';
echo "<span class='count'>" . $k_p . "</span></a>";
echo '</div>';
}
/*
========================================
Анкета
========================================
*/
echo "<div class='na1'>";
echo "<img src='/style/icons/iconc/profile.png' 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 "</div>";
/*
========================================
Гости
========================================
*/
if (isset($user) && $user['id'] == $ank['id']) {
echo '<div class="na2">';
$new_g = mysql_result(mysql_query("SELECT COUNT(*) FROM `my_guests` WHERE `id_ank` = '$user[id]' AND `read`='1'"), 0);
if ($new_g != 0) {
echo "<a href='/user/myguest/index.php'><img src='/style/icons/iconc/guests.png' alt='*' /> <font color='red'>Гости <span class='count'>+$new_g</span></a>";
} else {
echo "<a href='/user/myguest/index.php'><img src='/style/icons/iconc/guests.png' alt='*' /> Гости</a>";
}
echo '</div>';
/*
========================================
Оценки
========================================
*/
echo '<div class="na1">';
$ocenky = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_rating` WHERE `avtor` = '$ank[id]' AND `read`='1'"), 0);
if ($ocenky != 0) {
echo "<a href='/user/info/ocenky.php'><img src='/style/icons/6.png' alt='*' width='17' ' /> <font color='red'>Оценки <span class='count'>+$ocenky</span></a>";
} else {
echo "<a href='/user/info/ocenky.php'><img src='/style/icons/6.png' alt='*' width='17' /> Оценки</a> ";
}
echo "</div>";
}
/*
========================================
Друзья
========================================
*/
echo "<div class='na2'>";
$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 ' <a class="" href="/user/frends/?id=' . $ank['id'] . '"> <img class="middle" src="/style/icons/iconc/druzya.png" alt="*" /> Друзья <span class="left_count">' . $k_fr . '</span>';
$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 class='right_count'>$i</a></span></a>";
if (isset($user) && $user['id'] == $ank['id'])
{
}
if (isset($user) && $user['id']==$ank['id']){
}
echo "</div>";
include_once H.'plugins/user_garem/garem.php';
/*
========================================
Дневники
========================================
*/
echo "<div class='na2'>";
$kol_dnev=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id_user` = '".$ank['id']."'"),0);
echo "<a href='/plugins/notes/user.php?id=$ank[id]'><img class='middle' src='/style/icons/iconc/diary.png' alt='*' /> Дневники <span class='count'>$kol_dnev</span></a>";
echo "</div>";
/*
========================================
Закладки
========================================
*/
echo "<div class='na1'>";
$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 "<a href='/user/bookmark/index.php?id=$ank[id]'><img class='middle' src='/style/icons/iconc/diary1.png' alt='*' /> Закладки <span class='count'>$zakladki</span></a>";
echo "</div>";
/*
========================================
Фото
========================================
*/
echo "<div class='na2'>";
echo "<a href='/foto/$ank[id]/'><img class='middle' src='/style/icons/iconc/photo.png' alt='*' /> фото ";
echo "<span class='count'>" . mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$ank[id]'"),0) . "</span></a>";
echo "</div>";
/*
========================================
Файлы
========================================
*/
echo "<div class='na1'>";
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 "<a href='/user/personalfiles/$ank[id]/$dir_osn[id]/'><img class='middle' src='/style/icons/iconc/obmen.gif' alt='*' /> Файлы ";
echo "<span class='left_count'>" . mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` > '1'"),0) . "</span><span class='right_count'>" . mysql_result(mysql_query("SELECT COUNT(*) FROM `obmennik_files` WHERE `id_user` = '$ank[id]'"),0) . "</span></a>";
echo "</div>";
/*
========================================
Музыка
========================================
*/
echo "<div class='na2'>";
$k_music=mysql_result(mysql_query("SELECT COUNT(*) FROM `user_music` WHERE `id_user` = '$ank[id]'"),0);
echo "<a href='/user/music/index.php?id=$ank[id]'><img class='middle' src='/style/icons/iconc/play.gif' alt='*' width='17'/> Музыка ";
echo "<span class='count'>" . $k_music . "</span></a>";
echo "</div>";
/*
========================================
Сообщение
========================================
*/
if (isset($user) && $ank['id']!=$user['id']){
echo"<div class='na1'></br>";
echo "<table style='width:100%' cellspacing='7' cellpadding='140'><tr>";
echo "<a class='user_mail' href='/mail.php?id=$ank[id]' title='Отправить сообщение'></a></td> ";/// Сообщения
/*
========================================
Закладки
========================================
*/
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 class="user_zakl" href="?id=' . $ank['id'] . '&fav=1" title="Добавить в закладки"></a></td> ';/// Добавить в закладки
else
echo '<a class="user_del_zakl" href="?id=' . $ank['id'] . '&fav=0" title="Удалить из закладок"></a> ';/// Удалить из закладок
/*
========================================
Подарки
========================================
*/
echo "<a class='user_gift' href='/user/gift/categories.php?id=$ank[id]&do' title='Подарить подарок'></a></td> "; /// Подарки
/*
========================================
Друзья
========================================
*/
if ($frend_new==0 && $frend==0){
echo "<a class='user_friends' href='/user/frends/create.php?add=".$ank['id']."' title='Добавить в друзья'></a></td> "; ///Друзья
}elseif ($frend==2){
echo "<a class='user_del_zakl' href='/user/frends/create.php?del=$ank[id]' title='Удалить из друзей'></a></td> "; /// удаления из друзей
}
/*
========================================
Монеты
========================================
*/
echo "<a class='user_money' href='/user/money/translate.php?id=$ank[id]' title='Передать Алмазы'></a></td>"; ///монеты
echo '</tr></table></div>';
}
if (isset($user) && $ank['id']==$user['id']){
/*
========================================
групы .. игры
========================================
*/
echo "<div class='na2'>";
$k_p = mysql_result(query("SELECT COUNT(*) FROM `apps`", $db), 0);
$k_n = mysql_result(query("SELECT COUNT(*) FROM `apps` WHERE `time` > '" . $ftime . "'", $db), 0);
echo "<img src='/iconc/MAIN_MENU/game.png' alt='*' /> <a href="/plugins/apps/">Все игры </a>";
echo '<span class="count">'.mysql_result(mysql_query("SELECT COUNT(*) FROM `apps`"),0).'</span>';
echo "</div>";
}
/*
========================================
Настройки
========================================
*/
if (isset($user) && $ank['id']==$user['id']){
echo "<div class='na1'>";
echo "<img src='/style/icons/iconc/settings.png' alt='*' /> <a href="/settings/">Мои настройки</a> | <a href="/umenu.php">Меню</a><br /> ";
echo "</div>";
echo "<div class='na2'>";
echo "<img src='/style/icons/iconc/services.png' alt='*' /> <a href="/user/money/index.php">Дополнительные услуги</a><br /> ";
echo "</div>";
}
/*
========================================
История входов
========================================
*/
if (isset($user) && $ank['id']==$user['id']){
echo "<div class='na1'>";
echo "<a class='' href='/my_aut.php'><img class='middle' src='/style/icons/clock.png' alt='*' /> История входов </a>";
echo "</div>";
}
/*
========================================
поздравления с днем рождения
========================================
*/
$currD=date("d", time());
$currm=date("m", time());
$k_birsday=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `ank_d_r` = '$currD' and `ank_m_r` = '$currm'",$db), 0);
if ($k_birsday > 0)
{
echo "<div class='nav1'>";
echo'<img src="/style/icons/ic_a7.gif" alt="" /> <a href="/list_bday.php"> поздравления с днем рождения </a> ('.$k_birsday.')<br/>';
echo "</div>n";
}
/*
========================================
Стена
========================================
*/
define('SYS',1);
include_once 'user/info/rating.php';
/*
========================================
The End
========================================
*/
?>