Файл: vk.com_vhllam/user/info/wap.php
Строк: 520
<?
echo "</div>";
close_str($ank['id']);
/*------------------------статус форма-----------------------*/
if (isset($user) && isset($_GET['status'])){
if ($user['id'] == $ank['id']){
echo '<div class="ot"><b>Статус [512 символов]</b>';
echo "<form action='/info.php?id=" . $ank['id'] . "' method="post">";
echo "$tPanel<textarea type="text" style='' name="status" value=""/></textarea><br /> n";
echo "<input class="submit" style='' type="submit" value="Установить" />n";
echo " <a href='/info.php?id=$ank[id]'>Отмена</a><br />n";
echo "</form></div>";
include_once 'sys/inc/tfoot.php';
exit;
}
}
/*-----------------------------------------------------------*/
################################################################################
if($ank['aa2'] > 29)
{
echo "<div class='gmenu'><font color='red'><b>";
echo $ank['pol'] == 1 ? "<img src='/style/medal/kor.png' alt='korona' class='icon' /> Король гаремов<br />" : "<img src='/style/medal/kor.png' alt='korona' class='icon' /> Королева гаремов<br />";
echo "</b></font></div>";
}
if($ank['aa3'] > 29)
{
echo "<div class='gmenu'><font color='red'><b>";
echo $ank['pol'] == 1 ? "<img src='/style/medal/kor.png' alt='korona' class='icon' /> Суперский парень<br />" : "<img src='/style/medal/kor.png' alt='korona' class='icon' /> Суперская девушка<br />";
echo "</b></font></div>";
}
###############################################################################
echo "<div class='strl'>";
if ($ank['group_access']>1)echo "<b><font color='red'><span class='status'>$ank[group_name]</span></font></b><br>n";
echo group($ank['id']) . "<span style='color:$ank[ncolor]'>$ank[nick]</span> ";
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>n";
echo "</div>";
echo "<div class='gmenu'>";
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'>Нов.</a>]";
echo '<br />';
}
else if ($ank['id']==$user['id'])
{
echo "Ваш статус [<a href='?id=$ank[id]&status'>Ред.</a>]";
}
echo "</div>n";
// Если статус установлен
if ($status['id'])
{
echo "[<a href='/user/status/komm.php?id=$status[id]'>комм. " . 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'])
{
$like = $l-1;
}
else
{
$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 "<a href='/user/status/index.php?id=$ank[id]'> Все статусы</a> [" . $st . "]n";
}
}
echo "</div>";
echo "<div class='mails'>";
avatar_ank($ank['id']);
echo "</div>";
/*
========================================
Настройки
========================================
*/
if (isset($user) && $ank['id']==$user['id']){
echo "<div class='menu'>";
echo "<img src='/style/icons/uslugi.gif' alt='*' /> <a href="/user/money/index.php">Сервисный центр</a><br /> n";
echo "<img src='/style/icons/settings.png' alt='*' /> <a href="/user/info/settings.php">Мои настройки</a> | <a href="/umenu.php">Кабинет</a>n";
echo "</div>";
}
/*
========================================
Сообщение
========================================
*/
if (isset($user) && $ank['id']!=$user['id']){
echo "<div class='kabinet'>";
echo " <a href="/mail.php?id=$ank[id]"><img src='/style/icons/dialog.png' alt='*' /> Отправить сообщение</a><br />n";
/*
========================================
В друзья
========================================
*/
if ($frend_new==0 && $frend==0){
echo "<img src='/style/icons/druzya.png' alt='*'/> <a href='/user/frends/create.php?add=".$ank['id']."'>Добавить в друзья</a><br />n";
}elseif ($frend_new==1){
echo "<img src='/style/icons/druzya.png' alt='*'/> <a href='/user/frends/create.php?otm=$ank[id]'>Отклонить заявку</a><br />n";
}elseif ($frend==2){
echo "<img src='/style/icons/druzya.png' alt='*'/> <a href='/user/frends/create.php?del=$ank[id]'>Удалить из друзей</a><br />n";
}
/*
========================================
В закладки
========================================
*/
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 "<img src='/style/icons/uslugi.gif' alt='*' /> <a href="/user/money/translate.php?id=$ank[id]">Перевести $sMonet[0]</a><br />n";
/*
========================================
Сделать подарок
========================================
*/
echo "<img src='/style/icons/present.gif' alt='*' /> <a href="/user/gift/categories.php?id=$ank[id]">Сделать подарок</a><br />n";
if($ank['aa1'] != $user['id'] && $ank['pol'] != $user['pol']) echo "<img src='/style/icons/garems.png' alt='' class='icon'/> <a href='garem.php?act=kraz&id=$ank[id]'>Украсть в гарем</a></br>";
if (isset($user) && $user['id']!=$ank['id'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `duel` WHERE `user` = '$ank[id]' AND `opponent` = '$ank[id]' AND `act`!='1'"), 0)==0){
echo "<img src='/style/icons/gun.png' alt='' class='icon'/> <a href="/duel/add.php?id=$ank[id]">Вызвать на дуэль</a></br>n";
}
}
if (isset($user) && $ank['id']!=$user['id']){
if (!isset($_GET['id_user']) && !isset($_GET['black']) && isset($user) && mysql_result(mysql_query("SELECT COUNT(*) FROM `black_list` WHERE `id_user` = '".$user['id']."' AND `id_black_user` = '".$ank['id']."' "), 0) == 0 && $ank['level']==0) {
echo "<img src='/style/icons/chs.png' alt='*' /> <a href='/info.php?id=$ank[id]&black'>Заблокировать</a><br />n";
} else if ($ank['level']==0) {
echo "<img src='/style/icons/ches_del.png' alt='*' /> <a href='/info.php?id=$ank[id]&out_black'>Разблокировать</a></div>n";
}
}
echo "</div>";
/*
========================================
Анкета
========================================
*/
echo "</div><div class='nav1'>";
echo "<img src='/style/icons/anketa.gif' alt='*' /> <a href='/user/info/anketa.php?id=$ank[id]'>Анкета</a> [<a href='/user/info/edit.php'>Ред.</a>] </br>";
if (isset($user) && $user['id']==$ank['id']){
}
$count = mysql_result(mysql_query("SELECT COUNT(*) FROM `l_guest` WHERE `id_user` = $ank[id] ",$db), 0);
echo "<img src='/style/icons/guest.png' alt='' /> <a href='/guest.php?id=$ank[id]'>Гостевая</a> [$count]</br>";
/*
========================================
Гости
========================================
*/
if (isset($user) && $user['id']==$ank['id']){
$new_g=mysql_result(mysql_query("SELECT COUNT(*) FROM `my_guests` WHERE `id_ank` = '$user[id]' AND `read`='1'"),0);
echo "<img src='/style/icons/guests.gif' alt='*' /> ";
if($new_g!=0){
echo "<a href='/user/myguest/index.php'>Гости <font color='red'>+$new_g</font></a> n";
}else{
echo "<a href='/user/myguest/index.php'>Гости</a> n";
}
echo ' | ';
$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'>Оценки <font color='red'>+$ocenky</font></a></br> n";
}else{
echo "<a href='/user/info/ocenky.php'>Оценки</a></br> n";
}
}
/*
========================================
Друзья
========================================
*/
$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></br>";
if (isset($user) && $user['id']==$ank['id']){
/*
========================================
Уведомления
========================================
*/
if (isset($user) && $user['id']==$ank['id']){
$k_notif = mysql_result(mysql_query("SELECT COUNT(`read`) FROM `notification` WHERE `id_user` = '$user[id]' AND `read` = '0'"), 0); // Уведомления
if($k_notif > 0)
{
echo "<br /><img src='/style/icons/news.png' alt='*' /> ";
echo "<a href='/user/notification/index.php'><font color='red'>Уведомления</font></a> n";
echo "<font color="red">[+$k_notif]</font> n";
}
}
/*
========================================
Обсуждения
========================================
*/
if (isset($user) && $user['id']==$ank['id']){
echo "</br><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);
if($new_g!=0)
{
echo "<a href='/user/discussions/index.php'><font color='red'>Обсуждения</font></a> n";
echo "<font color="red">[+$new_g]</font> n";
}else{
echo "<a href='/user/discussions/index.php'>Обсуждения</a> n";
}
echo "<br />";
}
/*
========================================
Лента
========================================
*/
if ($user['id']==$ank['id'])
{
$k_l=mysql_result(mysql_query("SELECT COUNT(*) FROM `tape` WHERE `id_user` = '$user[id]' AND `read` = '0'"),0);
if($k_l!=0)
{
$color = "<font color='red'>";
$color2 = "</font>";
}
else
{
$color = null;$color2 = null;
}
echo "<img src='/style/icons/lenta.gif' alt='*' /> <a href='/user/tape/'>".$color."Лента друзей".$color2."</a> n";
if($k_l!=0)echo "<font color="red">[+$k_l]</font>n";
echo "";
}
}
/*
========================================
Фото
========================================
*/
echo "</br><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 . "]</br>";
echo "<img src='/style/icons/garems.png' alt='' class='icon'/>n";
echo "<a href='/garem.php?act=garem&id=$ank[id]/'>Весь гарем</a> [$ank[aa2]]<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/present.gif" alt="*" /> <a href="/user/gift/index.php?id=' . $ank['id'] . '">Все подарки</a> [' . $k_p . ']';
echo '</br>';
/*
========================================
Дневники
========================================
*/
echo "<img src='/style/icons/dei.png' alt='' class='icon'/> <a href='/dei/index.php?id=$ank[id]'>Все действия";
echo "</a>n";
include_once 'dei/count.php';
echo "</br>n";
$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 />n";
/*
========================================
Закладки
========================================
*/
$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 />n";
/*
========================================
Отзывы
========================================
*/
echo '<img src="/games_xhata/icons/ch.gif" width="16" alt="*"> <a href="/games_xhata/zagon/index.php?id=' . $ank['id'] . '">Счет добычи</a>';
echo ' [' . mysql_result(mysql_query("SELECT COUNT(*) FROM `zagon` WHERE `id_user` = '$ank[id]'"),0) . ']<br />';
echo "<img src='/style/icons/who_rating.png' alt='*' /> <a href='/user/info/who_rating.php?id=$ank[id]'>Мои мнения</a>
[".mysql_result(mysql_query("SELECT COUNT(*) FROM `user_voice2` WHERE `id_kont` = '".$ank['id']."'"),0)."]n";
if ($user['id'] == $ank['id']) {
$kol_black=mysql_result(mysql_query("SELECT COUNT(*) FROM `black_list` WHERE `id_user` = '".$user['id']."'"),0);
echo "<br /><img src='/style/icons/ches.users.png' alt='*' /> ";
echo "<a href='/user/info/blacklist.php'>Черный список</a> [$kol_black]<br />n";
}
echo "</div>";
echo "<div class='kabinet'>";
#####################кланы###############
$us = mysql_fetch_array(mysql_query("SELECT * FROM `clan_user` WHERE `id_user` = '$ank[id]' LIMIT 1"));
$us2 = mysql_fetch_array(mysql_query("SELECT * FROM `clan_user` WHERE `id_user` = '$user[id]' LIMIT 1"));
$clan = mysql_fetch_array(mysql_query("SELECT * FROM `clan` WHERE `id` = '$us[id_clan]' LIMIT 1"));
if (mysql_result(mysql_query("SELECT COUNT(id) FROM `clan_user` where `id_user` = '$ank[id]' AND `activaty` = '0' LIMIT 1"),0)==1){
echo '<img src="/style/icons/clan.gif" alt="*" /> В клане: ';
if(is_file(H.'files/klanico/'.$clan['id'].'.jpg')){
echo '<img src="/files/klanico/'.$clan['id'].'.jpg" alt=""/>';
}
else
{
echo '<img src="/files/klan/0.png" width="12" height="12" alt=""/>';
}
echo "<a href='klan/klan.php?id=$clan[id]'> $clan[name]</a></br>";
$usid = mysql_fetch_array(mysql_query("SELECT * FROM `clan_user` WHERE `id` = '$us[id]' LIMIT 1"));
if (isset($us2) && $us2['id_clan']==$us['id_clan'])
{
}
}
#####################кланы###############
################################################################################
$timediff=mysql_result(mysql_query("SELECT `time` FROM `user` WHERE `id` = '$ank[id]' LIMIT 1"), 0);
$oneMinute=60;
$oneHour=60*60;
$hourfield=floor(($timediff)/$oneHour);
$minutefield=floor(($timediff-$hourfield*$oneHour)/$oneMinute);
$secondfield=floor(($timediff-$hourfield*$oneHour-$minutefield*$oneMinute));
$sHoursLeft=$hourfield;
$sHoursText = "часов";
$nHoursLeftLength = strlen($sHoursLeft);
$h_1=substr($sHoursLeft,-1,1);
if (substr($sHoursLeft,-2,1) != 1 && $nHoursLeftLength>1)
{
if ($h_1== 2 || $h_1== 3 || $h_1== 4)
{
$sHoursText = "часа";
}
elseif ($h_1== 1)
{
$sHoursText = "час";
}
}
if ($nHoursLeftLength==1)
{
if ($h_1== 2 || $h_1== 3 || $h_1== 4)
{
$sHoursText = "часа";
}
elseif ($h_1== 1)
{
$sHoursText = "час";
}
}
$sMinsLeft =$minutefield;
$sMinsText = "минут";
$nMinsLeftLength = strlen($sMinsLeft);
$m_1=substr($sMinsLeft,-1,1);
if ($nMinsLeftLength>1 && substr($sMinsLeft,-2,1) != 1)
{
if ($m_1== 2 || $m_1== 3 || $m_1== 4)
{
$sMinsText = "минуты";
}
else if ($m_1== 1)
{
$sMinsText = "минута";
}
}
if ($nMinsLeftLength==1)
{
if ($m_1== 2 || $m_1==3 || $m_1== 4)
{
$sMinsText = "минуты";
}
elseif ($m_1== "1")
{
$sMinsText = "минута";
}
}
$displaystring="".
$sHoursLeft." ".
$sHoursText." ".
$sMinsLeft." ".
$sMinsText." ";
if ($timediff<0) $displaystring='дата уже наступила';
##########
echo "<img src='/style/icons/clock.png' alt='*' /> Время на сайте: $displaystring<br />n";
echo city($ank['id'])."<br>n";
echo "<img src='/style/icons/garems.png' alt='' class='icon'/>";
if ($ank['pol']==1)
{
$a = '';
} else {
$a = 'a';
}
echo " Украден".$a." в гарем: <font color='green'>[<strong>".$ank['aa3']."</strong>]</font><font color='black'> раз.</font>";
echo "<br/>";
if(intval($ank['aa1']) != 0)
{
$cena = ((($ank['aa3']-1)*100)+250);
if(isset($_GET['garemout']))
{
if($user['balls'] < $cena)
echo "<font color='red'><b>Недостаточно баксов</b></font><br/>";
else
{
$etr = 1;
echo "<font color='red'><b>Вы выкупили себя из гарема.</b></font><br/>";
$msgno = ''.$user['nick'].' выкупил себя из вашего гарема';
mysql_query("INSERT INTO `jurnal` (`id_user`, `id_kont`, `msg`, `time`) values('0', '".$ank['aa1']."', '".$msgno."', '".$time."')");
mysql_query("UPDATE `user` SET `balls` = `balls`-$cena, `aa1` = '' WHERE `id` = '".$user['id']."';");
}
}
if(!$etr)
{
echo " <img src='/style/icons/garems.png' alt='' class='icon'/> ";
$anker = mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = '".$ank['aa1']."' LIMIT 1"));
echo "В гареме у <a href='info.php?id=".$ank['aa1']."'><strong>".$anker['nick']."</strong></a><br />";
if($ank['id'] == $user['id'])
{
echo " <img src='/style/icons/wmr.gif'> <a href='?id=$user[id]&garemout'>Выкупить себя</a> [$cena баксов]<br/>";
}
}
}
$pol = ($ank['pol']==1) ? '' : 'а';
//////////////////клан Пригласить
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_user` WHERE `id_user` = '$user[id]' LIMIT 1"),0)!=0 && mysql_result(mysql_query("SELECT COUNT(*) FROM `clan_user` WHERE `id_user` = '$ank[id]' LIMIT 1"),0)==0)echo "<img src='/style/icons/comment.png' alt='' class='icon'/><a href='/klan/prig.php?id=$ank[id]'> Пригласить в клан</a>";
////////////////
echo "</div>";
/*
========================================
Стена
========================================
*/
echo "<div class='admins'>";
echo "<img src='/style/icons/stena.gif' alt='*' /> ";
if (isset($user) && $user['wall']==0)
echo "<a href='/info.php?id=$ank[id]&wall=1'>Скрыть стенку</a>n";
elseif (isset($user))
echo "<a href='/info.php?id=$ank[id]&wall=0'>Стена сообщений</a>n";
else
echo "Стена";
echo "</div>";
if ($user['wall']==0){
include_once H.'user/stena/index.php';
}
//if(user_access('adm_mysql'))echo"<hr/>Текущий пасс: $ank[pass]<hr/>n";
/*
========================================
The End
========================================
*/
?>