Файл: vfermu.ru/sys/other/user.php
Строк: 764
<?php
error_reporting(E_ALL);
ini_set('display_errors',false);
if(isset($_GET['klud']))
{
echo "<div class='block'><div class='block'>";
echo "<center>";
if($ank['ur_dom']==0)echo '<li><img src="/images/houses/1.jpg"/></li>';
if($ank['ur_dom']==1)echo '<li><img src="/images/houses/2.jpg"/></li>';
if($ank['ur_dom']==2)echo '<li><img src="/images/houses/3.jpg"/></li>';
if($ank['ur_dom']==3)echo '<li><img src="/images/houses/4.jpg"/></li>';
if($ank['ur_dom']==4)echo '<li><img src="/images/houses/5.jpg"/></li>';
if($ank['ur_dom']==5)echo '<li><img src="/images/houses/6.jpg"/></li>';
if($ank['ur_dom']==6)echo '<li><img src="/images/houses/7.jpg"/></li>';
if($ank['ur_dom']==7)echo '<li><img src="/images/houses/8.jpg"/></li>';
echo "</center></div>";
$qs=mysql_query("SELECT * FROM `farm_house_komnata` WHERE `id_user` = '$ank[id]'");
while($post=mysql_fetch_array($qs))
{
$palma=mysql_fetch_array(mysql_query("SELECT * FROM `farm_house_komnata_vid` WHERE `id` = '$post[id_komnata]'"));
if($ku['ur_dom']>=$palma['level'])
{
if($post['status']==1)
{
echo "<div class='block'>";
echo '<li><img src="/images/house/komnata/'.$post['id_komnata'].'.jpg"/>';
if($post['atrebut_1']>0)
{
echo '<span><img class="" width="48" height="48" alt="o" title="" src="/images/house/'.$post['atrebut_1'].'.png"/></span>';
}
if($post['atrebut_2']>0)
{
echo '<span><img class="" width="48" height="48" alt="o" title="" src="/images/house/'.$post['atrebut_2'].'.png"/></span>';
}
if($post['atrebut_3']>0)
{
echo '<span><img class="" width="48" height="48" alt="o" title="" src="/images/house/'.$post['atrebut_3'].'.png"/></span>';
}
if($post['atrebut_4']>0)
{
echo '<span><img class="" width="48" height="48" alt="o" title="" src="/images/house/'.$post['atrebut_4'].'.png"/></span>';
}
if($post['atrebut_5']>0)
{
echo '<span><img class="" width="48" height="48" alt="o" title="" src="/images/house/'.$post['atrebut_5'].'.png"/></span>';
}
if($post['atrebut_6']>0)
{
echo '<span><img class="" width="48" height="48" alt="o" title="" src="/images/house/'.$post['atrebut_6'].'.png"/></span>';
}
echo ' <div><font color="#CD661D">'.$palma['name'].'</font>';
}
}
echo '</li></div>';
}
echo "<div class='block'>";
echo '<li>
<img src="/images/icons/house.png" alt="o" title="" width="16" height="16"/>
<a href="/user-'.$ank['id'].'/">В профиль</a>
</li>';
echo "</div>";
echo "</div>";
echo "</div>";
include"sys/other/foot.php";
}
if($ank['gardener']==1)$name='Молчан';
if($ank['gardener']==2)$name='Казимир';
if($ank['gardener']==3)$name='Ярило';
if(isset($_GET['workers']))
{
echo '<div class="content"><div class="block"><ul>';
if($ank['garden_time']>$time)echo"<li><img width='16' height='16' alt='' src='images/icons/gardener".$ank["gardener"].".png'> <a class='epic' href='?shop=gardener".$ank["gardener"]."'>Садовник ".$name."</a><span class='minor'> на <span>".time_left($ank['garden_time']-$time)."</span></span></li>";
if($ank['hydropinics_time']>$time)echo "<li><img width='16' height='16' src='images/icons/hydropinics.png' alt='o'> <a class='epic' href='/?shop=hydropinics'>Гидропоника</a><span class='minor'> $ank[hydropinics_type]% на <span>".time_left($ank['hydropinics_time']-$time)."</span></span></li>";
if($ank['scarecrow_time']>$time)echo "<li><img width='16' height='16' src='images/icons/scarecrow.png' alt='o'> <a class='epic' href='/?shop=scarecrow'>Пугало</a><span class='minor'> на <span>".time_left($ank['scarecrow_time']-$time)."</span></span></li>";
if($ank['vetriak_time']>$time)echo "<li><img width='16' height='16' src='images/vetriak.png' alt='o'> <a class='epic' href='?shop=vetriak'>Ветряк</a><span class='minor'> на <span>".time_left($ank['vetriak_time']-$time)."</span></span></li>";
if($ank['time_shmel']>$time)echo "<li><img width='16' height='16' alt='o' src='images/icons/heli1n.png'> <divs class='epic'>Шмель</divs><span class='minor'> на <span>".time_left($ank['time_shmel']-$time)."</span></span></li>";
if($ank['time_yastreb']>$time)echo "<li><img width='16' height='16' alt='o' src='images/icons/heli2n.png'> <divs class='epic'>Ястреб</divs><span class='minor'> на <span>".time_left($ank['time_yastreb']-$time)."</span></span></li>";
if($ank['time_drakon']>$time)echo "<li><img width='16' height='16' alt='o' src='images/icons/heli3n.png'> <divs class='epic'>Дракон</divs><span class='minor'> на <span>".time_left($ank['time_drakon']-$time)."</span></span></li>";
if($ank['trofim_time']>$time)echo "<li><img width='16' height='16' alt='' src='images/icons/fisherman.png'> <a class='epic' href='/shop-worker/id-2'>Работник Трофим</a><span class='minor'> на <span>".time_left($ank['trofim_time']-$time)."</span></span></li>";
if($ank['darja_time']>$time)echo "<li><img width='16' height='16' alt='' src='images/icons/cook.png'> <a class='epic' href='/shop-worker/id-1'>Работник Дарья</a><span class='minor'> на <span>".time_left($ank['darja_time']-$time)."</span></span></li>";
if($ank['semen_time']>$time)echo'<li><img width="16" height="16" src="/images/icons/changer.png" alt="*"/><span></span><span> Семён</span><span class="minor"> на <span>'.time_left($ank['semen_time']-time()).'</span></span><li/></div>';
echo "</div>";
include "sys/other/foot.php";
}
if(isset($_GET['tehnika']))
{
echo '<div class="content"><div class="block"><ul>';
if($ank['tehnika']==0)echo "Пусто ...";
if($ank['flowerbed']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/flowerbedGold.png"/> <a class="epic" href="shop-flowerbed">Клумба</a> <span class="minor">(<span>'.$ank['flowerbed'].'</span>)</span> </li>';
if($ank['cultivator']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/digGold.png"/> <a class="epic" href="shop-cultivator">Культиватор</a> <span class="minor">(<span>'.$ank['cultivator'].'</span>)</span> </li>';
if($ank['seeder']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/seatGold.png"/> <a class="epic" href="shop-seeder">Сеялка</a> <span class="minor">(<span>'.$ank['seeder'].'</span>)</span> </li>';
if($ank['harvester']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/harvestGold.png"/> <a class="epic" href="shop-harvester">Комбайн</a> <span class="minor">(<span>'.$ank['harvester'].'</span>)</span> </li>';
if($ank['irregate']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/waterGold.png"/> <a class="epic" href="shop-irregate">Ороситель</a> <span class="minor">(<span>'.$ank['irregate'].'</span>)</span> </li>';
if($ank['soiler']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/soilGold.png"/> <a class="epic" href="shop-soiler">Удобритель</a> <span class="minor">(<span>'.$ank['soiler'].'</span>)</span> </li>';
if($ank['conveyor']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/petHarvestGold.png"/> <a class="epic" href="shop-conveyor">Конвейер</a> <span class="minor">(<span>'.$ank['conveyor'].'</span>)</span> </li>';
if($ank['fooder']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/plateGold.png"/> <a class="epic" href="shop-fooder">Кормушка</a> <span class="minor">(<span>'.$ank['fooder'].'</span>)</span> </li>';
if($ank['fishfooder']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/fishfooderGold.png"/> <a class="epic" href="shop-fishfooder">Автокормушка</a> <span class="minor">(<span>'.$ank['fishfooder'].'</span>)</span> </li>';
if($ank['autocrane']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/avtopogruzGold.png"/> <a class="epic" href="shop-autocrane">Автопогрузчик</a> <span class="minor">(<span>'.$ank['autocrane'].'</span>)</span> </li>';
if($ank['incubator']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/inkubatorGold.png"/> <a class="epic" href="shop-incubator">Инкубатор</a> <span class="minor">(<span>'.$ank['incubator'].'</span>)</span> </li>';
if($ank['cooker']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/cookerGold.png"/> <a class="epic" href="shop-cooker">Скороварка</a> <span class="minor">(<span>'.$ank['cooker'].'</span>)</span> </li>';
if($ank['shelfstand']>0)echo '<li><img width="16" height="16" alt="o" src="/images/icons/gold/shelfStandGold.png"/> <a class="epic" href="shop-shelfstand">Стелаж</a> <span class="minor">(<span>'.$ank['shelfstand'].'</span>)</span> </li>';
echo "</div>";
include "sys/other/foot.php";
}
if(isset($_GET['history']))include "sys/other/history.php";
elseif(isset($_GET['bans']) && ($ank['id']==$ku['id'] || $ku['status']>0))include_once 'sys/other/bans.php';
include "sys/other/ban_fnc.php";
if(isset($_GET['inct']) && $mcu['status']<=3 && isset($mc) && !isset($uct) && $ank['level']>=10)
{
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_collective_invite` WHERE `id_user` = '$ank[id]'"),0)!=0)err_game("Этому фермеру уже выслано приглашение.");
elseif($mc['users']==$mc['users_max'])err_game("В колхозе нет свободных мест!");
elseif($ank['privat_invite']==1)err_game("Игрок запретил отсылать приглашения!");
else{
mysql_query("INSERT INTO `farm_collective_invite` SET `id_user` = '$ank[id]', `id_collective` = '$mc[id]', `id_who` = '$ku[id]', `time` = '$time'");
echo "<div class='feedback'><ul class='feedbackPanel'><li class='feedbackPanelINFO'><span class='feedbackPanelINFO'>Приглашение выслано.</span></li></ul></div>";
}
}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `farm_collective_user` WHERE `id_user` = '$ank[id]'"),0)!=0)
{
$uctu=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective_user` WHERE `id_user` = '$ank[id]'"));
$uct=mysql_fetch_array(mysql_query("SELECT * FROM `farm_collective` WHERE `id` = '$uctu[id_collective]'"));
if($au['pol']==1)$uctu['status_name']='колхозник';else $uctu['status_name']='колхозница';
if($uctu['status']==1)$uctu['status_name']='председатель';
elseif($uctu['status']==2)$uctu['status_name']='зампред';
elseif($uctu['status']==3)$uctu['status_name']='агроном';
elseif($uctu['status']==4)$uctu['status_name']=($au['pol']==1?'бригадир':'хозяйка');
elseif($uctu['status']==5)$uctu['status_name']='староста';
elseif($uctu['status']==6)$uctu['status_name']=($au['pol']==1?'механизатор':'товаровёд');
}
include "sys/other/status_ct.php";
if($ank['id']!=$ku['id'])
{
}
echo '<div class="block minor">
<span class="nobr"></span>';
echo "<div>$ank[nick], $ank[level] уровень</div>";
if(isset($uct))
{
echo "<li><span class='nobr'>Колхоз: <a href='/collective-$uct[id]'>$uct[name]</a> (".($mcu['status']<=3 && isset($mc) && $ank['id']!=$ku['id'] && $uctu['status']>$mcu['status'] && $uct['id']==$mc['id']?"<a href='/?user=$ank[id]&status_ct'>":null)."<span><span>$uctu[status_name]</span></span>".($mcu['status']<=3 && isset($mc) && $ank['id']!=$ku['id'] && $uctu['status']>$mcu['status'] && $uct['id']==$mc['id']?"</a>":null).")</span></li>";
}
if($au['ava']=='0')
{
echo "<li class='ptm'></li>";
echo'<hr size="2" color="#114411"/><img height="150" width="600" title="красота" alt="красота" src="http://www.coollady.ru/puc/5/001/CL-16_1.jpg"/><hr size="2" color="#114411"/>';
}
if($au['ava']=='1')
{
echo "<li class='ptm'></li>";
echo "<li><img src='img.php?ava&id=$ank[id]' alt='*' style='border-radius: 6px;'></a>";
}
echo '<li class="pt">';
if($ank['level']>=10)
{
if($ank['id']==$ku['id'])
{
echo'<li><img width="16" height="16" src="/images/icons/house.png" alt="o"/> <a href="/house">Мой дом</a>';
echo '
<span><img height="16" width="16" title="красота" alt="красота" src="/images/icons/beauty.png"/> <span class="title">'.$ank['beauty'].'</span></span>
<span><img height="16" width="16" title="удобство" alt="удобство" src="/images/icons/conv.png"/> <span class="title">'.$ank['conv'].'</span></span>
<span><img height="16" width="16" title="статус" alt="статус" src="/images/icons/status.png"/> <span class="title">'.$ank['statuss'].'</span></span></li>
';
echo '</li>';
}
}
if($ebal>0)
{
if($ank['level']>=10)
{
if($ank['id']!=$ku['id'])
{
echo'<li><img width="16" height="16" src="/images/icons/house.png" alt="o"/> <a href="/user-'.$ank['id'].'/klud">В дом</a>';
echo '
<span><img height="16" width="16" title="красота" alt="красота" src="/images/icons/beauty.png"/> <span class="title">'.$ank['beauty'].'</span></span>
<span><img height="16" width="16" title="удобство" alt="удобство" src="/images/icons/conv.png"/> <span class="title">'.$ank['conv'].'</span></span>
<span><img height="16" width="16" title="статус" alt="статус" src="/images/icons/status.png"/> <span class="title">'.$ank['statuss'].'</span></span></li>
';
echo '</li>';
}
}
}
echo "<li><img alt='' width='16' height='16' src='images/album1.png'> <a href='?gallery&id_user=$ank[id]'>Альбом</a></li>";
if($ank['id']!=$ku['id'])echo "<img width='16' height='16' src='images/icons/pencil.png' alt='o'> <a href='/mail/new_msg-$ank[id]'>Написать</a>";
if($ank['id']==$ku['id'])echo"<li><img width='16' height='16' src='images/icons/search.png' alt=''> <a href='/ava'>".(!isset($ku['ava'])?"Сменить":"Сменить")." Фото</a></li>";
$mypets=mysql_fetch_array(mysql_query("SELECT * FROM `pets_by_RUS` WHERE `id_USER` = '".$ank['id']."'"));
if($mypets['pol']==0){$pol='Мужской'; }
if($mypets['pol']==1){$pol='Женский'; }
if(isset($_GET['petss']))
{
if($mypets['pets']>0)
{
echo "<div class='block'><li class='minor'>Питомец:<img width='55' height='55' alt='' src='http://nashdom2.keo.su/imgezzy/pet_by_rus/".$mypets['pets'].".png'>$pets</li> <li class='minor'>Пол: ".$pol."</li>";
echo "<li class='minor'>Уровень питомца:<font color=yellow> ".$mypets['level_pet']."</font></li>";
echo "<li class='minor'>Имя питомца:<font color=red> ".$mypets['name_pet']."</font></li>";
echo '</div>';
}
else
{
echo'<div class="block">У данного игрока нет супер-питомца</div>';
}
}
$ban=mysql_fetch_array(mysql_query("SELECT * FROM `farm_ban` WHERE `id_user` = '$ank[id]' AND `inlock` IS NULL AND (`time` > '$time' OR (`izg` = '1' AND `time`='0')) ORDER BY `id` DESC LIMIT 1"));
$us_ban=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '$ban[id_who]'"));
if(isset($ban['id']))
{
if($ban['izg']==1)$vidban='Изгнание';
elseif($ban['izg']==0)$vidban='Обет Молчания до '.vremja($ban['time']).'';
elseif($ban['izg']==2)$vidban='Бан в чате до '.vremja($ban['time']).'';
elseif($ban['izg']==3)$vidban='Бан на форуме до '.vremja($ban['time']).'';
echo "<ul class='pt'>
<div>
<li class='major'><span>$vidban</span>, выдал".($us_ban['pol']==0?'a':null)." <span>";
if($ban['msg']=='Нарушение правил сайта'){$ban['msg']='Нарушение [url=/?rules]правил сайта[/url]';}
echo on_k($us_ban['id']);
echo "<a href='/?user=$us_ban[id]'>".nc($us_ban['id'])."</a></span><span>, (".output_text($ban['msg']).")</span></li></div></ul>";
}
if($ank['status']>0 || $ank['status']==0 && $ku['status']==3)echo "<ul class='pt'><li class='minor'>Роль: ".($ank['status']==0?"Игрок":"<span
class='nick".($ank['status']==1?"Supporter":null)."".($ank['status']==2?"Moderator":null)."".($ank['status']==3?"Admin":null)."'>".($ank['status']==1?"Тех.поддержка":null)."".($ank['status']==2?"Модератор":null)."".($ank['status']==3?"Администратор":null)."</span>")."</li></ul><ul class='pt'>";
echo "<ul class='pt'>";
if($ank['medalii'] == 0){
echo "<li class='minor'><img width='16' height='16' alt='' src='http://township.mobi/Content/img/Rewards/3.png'> Награждений нету :( ";
}
elseif($ank['medalii'] == 1){
echo "<li class='minor'><img width='16' height='16' alt='' src='http://township.mobi/Content/img/Rewards/3.png'> Награждения <a href='/?forum=593'><img width='15' height='15' alt='' src='/images/doma/1medel.png'></a>";
}
elseif($ank['medalii'] == 2){
echo "<li class='minor'><img width='16' height='16' alt='' src='http://township.mobi/Content/img/Rewards/3.png'> Награждения <a href='/?forum=593'><img width='15' height='15' alt='' src='/images/doma/1medel.png'> <img width='15' height='15' alt='' src='/images/doma/2medel.png'></a>";
}
elseif($ank['medalii'] == 3){
echo "<li class='minor'><img width='16' height='16' alt='' src='http://township.mobi/Content/img/Rewards/3.png'> Награждения <a href='/?forum=593'><img width='15' height='15' alt='' src='/images/doma/1medel.png'><img width='15' height='15' alt='' src='/images/doma/2medel.png'><img width='15' height='15' alt='' src='/images/doma/3medel.png'></a>";
}
elseif($ank['medalii'] == 4){
echo "<li class='minor'><img width='16' height='16' alt='' src='http://township.mobi/Content/img/Rewards/3.png'> Награждения <a href='/?forum=593'><img width='15' height='15' alt='' src='/images/doma/1medel.png'><img width='15' height='15' alt='' src='/images/doma/2medel.png'><img width='15' height='15' alt='' src='/images/doma/3medel.png'><img width='15' height='15' alt='' src='/images/doma/4medel.png'></a>";
}
echo '<li>
<img width="16" height="16" src="http://township.mobi/Content/img/Rewards/3.png" alt="o"/>
<span class="minor">Достижения</a> <span><a href="dostig-'.$ank['id'].'">'.$ank['dostig'].' из 100</a></span></span>
</li>';
if(isset($uct))
{
$time3600=0;
$q=mysql_query("SELECT * FROM `farm_rating_mouser` WHERE `id_user` = '$ank[id]'");
while($post=mysql_fetch_array($q))
{
$time3600=$post['ratings']+$time3600;
}
echo "<ul class='minor'><li><img width='16' height='16' src='http://township.mobi/Content/img/exp.png' alt='o'/> Oпыт в колхозе: <span> <span class='title'>(".rating($uctu['rating']).")</span> </span></span></li>n
";
}
echo '<li>
<img width="16" height="16" src="http://township.mobi/Content/img/Misc/19_%D0%BA%D0%B8%D0%BE%D1%81%D0%BA.png" alt="o"/>
<span class="minor">Доход за сегодня</a> <span>(<img width="14" height="14" src="/images/icons/money.png" alt="o"/> '.$ank['doxood'].')</a></span></span>
</li>';
echo "<ul class='minor'><li><img width='16' height='16' src='http://township.mobi/Content/img/exp.png' alt='o'/> Опыт личный: <img width='16' height='16' src='/images/icons/experience.png' alt='o'/> <span><span class='title'>".rating($ank['rating'])."</span> </span></span></li>";
echo "<li>";
//echo "<li>Рейтинг в казино: <span class='title'>$ank[r_kazino]</span></li>";
$olius=$ank['ok_nursery']/50;
if($olius>0)
{
echo "<img width='16' height='16' src='http://township.mobi/Content/img/exp.png' alt='o'/> Бонус от питомника: ";
echo round($olius);
echo "% опыта</li>";
}
$tim=$time-$t;
echo "<li><img width='16' height='16' src='http://township.mobi/Content/img/factorylvl2.png' alt='o'/> Игровое время: <span class='title'>".hours($ank['time'])."</span></li>";
echo "<li><img width='16' height='16' src='http://township.mobi/Content/img/i32_1.png' alt='o'/> Статус: ".on_k($ank['id'])."";
echo " <span>".($au['date_last']<=$tim?"Оффлайн":"Онлайн")."</span>";
if($ank['date_last']<=$tim)
{
echo "<li><img width='16' height='16' src='http://township.mobi/Content/img/i32_1.png' alt='o'/> Последний вход: ".vremja($au['date_last'])."";
echo "</li>";
}
echo "<li><img width='16' height='16' src='http://township.mobi/Content/img/i32_1.png' alt='o'/> Дата регистрации: <span>".vremja($ank['time_start'])."</span> (id:<span>$ank[id]</span>)</li>";echo "</li>";
if($ank['type_reg'] == vkontakte){
echo "<li class='minor'><img width='16' height='16' src='http://dhsh2.mo.muzkult.ru/img/upload/827/image_image_328946.png' alt='o'/> Регистрация через vkontakte ";
}
if($ank['type_reg'] == odnoklassniki){
echo "<li class='minor'><img width='16' height='16' src='http://livesecurity.com.ua/wp-content/uploads/2015/01/jujuju014.png' alt='o'/> Регистрация через odnoklassniki ";
}
if($ank['expdouble']=='Mon')$days='понедельник';
if($ank['expdouble']=='Tue')$days='вторник';
if($ank['expdouble']=='Wed')$days='среда';
if($ank['expdouble']=='Thu')$days='четверг';
if($ank['expdouble']=='Fri')$days='пятница';
if($ank['expdouble']=='Sat')$days='суббота';
if($ank['expdouble']=='Sun')$days='воскресенье';
echo "<li><img width='16' height='16' src='http://township.mobi/Content/img/factorylvl2.png' alt='o'/> Двойной опыт: <span class='title'>$days</span></li>";
if(!empty($ank['brak'])){
$usk=mysql_fetch_array(mysql_query("SELECT * FROM `farm_user` WHERE `id` = '$ank[brak]' LIMIT 1"));
echo"<img width='16' height='16' src='http://eneja.com/sites/default/files/imagecache/resize_img_article/zhenih-i-nevesta.jpg' alt='o'/> Состоит в браке с ";
echo' '.on_k($usk['id']).'';
echo'<a class="" href="/user/'.$usk['id'].'"> <span>'.nc($usk['id']).'</span></a>';
}
if($ank['medalii'] == 4){
echo "<li class='minor'><img width='16' height='16' alt='' src='http://www.facebookuygulamasi.com/images/header2/iconlar/buyuk/arama-motoru-optimizasyonu.png'><a href='/support'> Тех поддержка (помощь)</a> ";
}
if($ank['medalii'] == 2){
echo "<li class='minor'><img width='16' height='16' alt='' src='http://www.facebookuygulamasi.com/images/header2/iconlar/buyuk/arama-motoru-optimizasyonu.png'><a href='/support'> Тех поддержка (помощь)</a> ";
}
echo "<ul class='pt'>";
echo "<li class='minor'><img width='16' height='16' alt='' src='http://township.mobi/Content/img/Pets/dog1_r.png'> Питомцы:<img width='35' height='35' alt='' src='/images/pitms/".$mypets['pets'].".png'>$pets</li></li>";
if($ank['id']==$ku['id'])echo '<li><a href="/red_user">О себе:</a> ';
else echo 'О себе:';
echo " <span>".($ank['sebe']==NULL?'-':hsc($ank['sebe']))."</span></span></li>";
echo '<li class="pt">';
if($ank['id']==$ku['id'])
{
ECHO '<li><img width="16" height="16" src="/images/icons/forum_mark.png" alt="o"/> <a href="/zadanie">Задания</a></li>';
}
if($ank['level']>=10)
{
echo '<li><img width="16" height="16" src="/images/icons/collections_no_background.png" alt="o"/> <a href="/collections-'.$ank['id'].'">Коллекции</a></li>';
}
echo'<li><img width="16" height="16" src="/images/icons/house.png" alt="o"/> <a href="/user-'.$ank['id'].'/klud">Смотреть дом</a>';
echo '<li><img width="16" height="16" src="/images/icons/work_log.png" alt="o"/> <a href="user-'.$ank['id'].'/history">Трудовая книжка</a></li>';
echo "<li><img width='16' height='16' src='images/icons/chat.png' alt='*'> <a href='/communication-$ank[id]'>Общение</a></li>";
if($ank['id']==$ku['id'])echo'<li><img width="16" height="16" src="images/icons/recipe_book.png" alt="*"/> <a href="/settings">Мои настройки</a></li>';
if($ank['id']==$ku['id'])echo'<li><img width="16" height="16" src="images/icons/recipe_book.png" alt="*"/> <a href="?outlogin='.$ku['mdp'].'">Выйти с игры</a></li>';
echo "</li>";
$cutsss=$t+$time;
if(isset($mc) && $mcu['status']<=3 && isset($mc) && !isset($uct))
{
echo '<li><img alt="" width="16" height="16" src="images/icons/guild.png"> <a href="/user-'.$ank['id'].'/inct">Пригласить в <span>колхоз</span></a></li>';
}
if($ank['id']!=1 && $ku['status']>0)echo '<li><img width="16" height="16" src="/images/icons/security-low.png" alt="o"/> <a href="/user-'.$ank['id'].'/bans">Список нарушений</a></li>';
if($ank['id']!=1 && $ku['status']==3)echo "<img width='16' height='16' src='images/icons/pencil.png' alt='o'> <a href='/admin-user/edit-$ank[id]'>Редактировать</a><div>";
if($ku['id']==1){echo "<img width='16' height='16' src='images/icons/pencil.png' alt='o'> <a href='/mail_user/user_id-$ank[id]'>Личка игрока</a><div>";}
if($ku['id']==120){echo "<img width='16' height='16' src='images/icons/pencil.png' alt='o'> <a href='/mail_user/user_id-$ank[id]'>Личка игрока</a><div>";}
if($ank['id']==$ku['id'])
{
echo "</br><div><a href='?timeLSauth'>История входов</a></div>";
}
if($ku['status']>0){
echo "Возможные мульты:<br/>";
$qi = mysql_query("SELECT * FROM `farm_user` WHERE `ip` = '$ank[ip]' AND `nick`<>'$ank[nick]' ORDER by `level` DESC LIMIT 5");
while($row=mysql_fetch_array($qi))
{
echo "<a href='?user=$row[id]'>$row[nick]</a><br/>";
}
}
if($ku['ramka_open']=1)
{
echo"</div></div></div></div></div>";
}
if($ank['id']==$ku['id'])echo "<title>Мой профиль</title>";
echo "<title>$ank[nick], $ank[level] ур.</title>";
include "sys/other/foot.php";
?>