Файл: wap-ads.ru/php/user.php
Строк: 1057
<?
/*
if($ank['garden_time']>$time)echo ",<a class='epic' href='?user=$ank[id]&workers'> Работники</a><span class='minor'>:";
if($ank['garden_time']>$time)echo"<img width='16' height='16' alt='' src='images/icons/gardener".$ank[gardener].".png'>";
if($ank['marfa_time']>$time)echo "<img width='16' height='16' alt='o' src='images/icons/marfa.png'>";
if($ank['daria_time']>$time)echo "<img width='16' height='16' alt='o' src='images/icons/daria.png'>";
if($ank['trofim_time']>$time)echo "<img width='16' height='16' alt='o' src='images/icons/trofim.png'>";
*/
if(isset($_GET['history']))include_once 'inc/history.php';
elseif(isset($_GET['bans']) && ($ank['id']==$ku['id'] || $ku['status']>0))include_once 'inc/bans.php';
elseif(isset($_GET['stena']))include_once 'inc/stena.php';
elseif(isset($_GET['forum_us']) && $ku['status']>0)include_once 'inc/forum_user.php';
elseif(isset($_GET['forum_them_us']) && $ku['status']>0)include_once 'inc/forum_them_us.php';
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_collective_user` WHERE `id_user` = '$ank[id]'"),0)!=0)
{
$uctu=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective_user` WHERE `id_user` = '$ank[id]'"));
$uct=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_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?'механизатор':'товаровёд');
}
if(isset($_GET['izg']) && ($ku['id']==1 || $ku['status']==3 || $ku['status']==1) && $ku['id']!=$ank['id'])
{
if(isset($_GET['ok']))
{
$banpr=intval($_POST['banpr']);
if($banpr==1)$banpri='Мат';
if($banpr==2)$banpri='Оскорбление игроков';
if($banpr==3)$banpri='Оффтоп';
if($banpr==4)$banpri='Флуд';
if($banpr==5)$banpri='Нарушение правил сайта';
if($banpr==6)$banpri='Реклама';
if($banpr==7)$banpri='По просьбе';
if($banpr==8)$banpri='Прилетело НЛО и забанило';
mysql_query("INSERT INTO `kolhoz_ban` SET `id_user` = '$ank[id]', `id_who` = '$ku[id]', `id_who2` = '$ku[id]', `msg` = '".my_esc($banpri)."', `izg` = '1', `izg2` = '1'");
header("Location:?user=$ank[id]");
exit;
}
echo "<div class='event'><h1>$au[nick]</h1></div>";
echo '<div class="content"><div class="block">';
echo "<form action='?user=".$ank['id']."&izg&ok' method='post'>";
echo "Причина:<br />n";
echo '<p><input name="banpr" type="radio" value="1"> Мат</p>
<p><input name="banpr" type="radio" value="2"> Оскорбление игроков</p>
<p><input name="banpr" type="radio" value="3"> Оффтоп</p>
<p><input name="banpr" type="radio" value="4"> Флуд</p>
<p><input name="banpr" type="radio" value="5"> Нарушение правил сайта</p>
<p><input name="banpr" type="radio" value="6"> Реклама</p>
<p><input name="banpr" type="radio" value="7"> По просьбе</p>
<p><input name="banpr" type="radio" value="8" checked> Прилетело НЛО и забанило</p>';
echo "<input type='submit' value='Забанить' />n";
echo "</form>n";
echo "</div>";
include_once 'inc/foot.php';
}
elseif(isset($_GET['ban']) && ($ku['id']==1 || $ku['status']>0) && $ku['id']!=$ank['id'])
{
if(isset($_GET['ok']))
{
$banpr=intval($_POST['banpr']);
if($banpr==1)$banpri='Мат';
if($banpr==2)$banpri='Оскорбление игроков';
if($banpr==3)$banpri='Оффтоп';
if($banpr==4)$banpri='Флуд';
if($banpr==5)$banpri='Нарушение правил сайта';
if($banpr==6)$banpri='Реклама';
if($banpr==7)$banpri='По просьбе';
if($banpr==8)$banpri='Прилетело НЛО и забанило';
$timeban=$time;
if ($_POST['time']=='min')$timeban+=intval($_POST['timec'])*60;
if ($_POST['time']=='chas')$timeban+=intval($_POST['timec'])*60*60;
if ($_POST['time']=='sut')$timeban+=intval($_POST['timec'])*60*60*24;
if ($_POST['time']=='mes')$timeban+=intval($_POST['timec'])*60*60*24*30;
if ($timeban<$time)err_game('Ошибка времени бана');
else
{
mysql_query("INSERT INTO `kolhoz_ban` SET `id_user` = '$ank[id]', `id_who` = '$ku[id]', `id_who2` = '$ku[id]', `msg` = '".my_esc($banpri)."', `izg` = '0', `time` = '$timeban', `izg2` = '0', `time2` = '$timeban'");
header("Location:?user=$ank[id]");
exit;
}
}
echo "<div class='event'><h1>$au[nick]</h1></div>";
echo '<div class="content"><div class="block">';
echo "<form action='?user=".$ank['id']."&ban&ok' method='post'>";
echo "Причина:<br />n";
echo '<p><input name="banpr" type="radio" value="1"> Мат</p>
<p><input name="banpr" type="radio" value="2"> Оскорбление игроков</p>
<p><input name="banpr" type="radio" value="3"> Оффтоп</p>
<p><input name="banpr" type="radio" value="4"> Флуд</p>
<p><input name="banpr" type="radio" value="5"> Нарушение правил сайта</p>
<p><input name="banpr" type="radio" value="6"> Реклама</p>
<p><input name="banpr" type="radio" value="7"> По просьбе</p>
<p><input name="banpr" type="radio" value="8" checked> Прилетело НЛО и забанило</p>';
echo "Время бана:<br />n";
echo "<input type='text' name='timec' title='Время бана' value='1' maxlength='11' size='3' />n";
echo "<select name="time">n";
echo "<option value='min'>Минуты</option>n";
echo "<option value='chas'>Часы</option>n";
echo "<option value='sut'>Сутки</option>n";
echo "<option value='mes'>Месяцы</option>n";
echo "</select><br />n";
echo "<input type='submit' value='Забанить' />n";
echo "</form>";
echo "</div>";
include_once 'inc/foot.php';
}
elseif(isset($_GET['inct']) && $mcu['status']<=3 && isset($mc) && !isset($uct) && $ank['level']>=10)
{
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_collective_invite` WHERE `id_user` = '$ank[id]'"),0)!=0)err_game("Этому фермеру уже выслано приглашение.");
elseif($mc['users']==$mc['users_max'])err_game("В колхозе нет свободных мест!");
elseif($ank['kolhoz_set']==1)err_game("Этот пользователь не желает принимать приглашения в колхоз.");
else
{
mysql_query("INSERT INTO `kolhoz_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(isset($_GET['status_ct']) && $mcu['status']<=3 && isset($mc) && $ank['id']!=$ku['id'] && $uctu['status']>$mcu['status'] && isset($uct) && $uct['id']==$mc['id'])
{
if($_GET['status_ct']!=NULL && ($_GET['status_ct']==0 || $_GET['status_ct']==1 && $mcu['status']==1 || $_GET['status_ct']==2 || $_GET['status_ct']==3 || $_GET['status_ct']==4 || $_GET['status_ct']==5 || $_GET['status_ct']==6 || $_GET['status_ct']==7))
{
$status_ct=intval($_GET['status_ct']);
if($status_ct>1 && $status_ct<=7 && $status_ct>$mcu['status'])
{
mysql_query("UPDATE `kolhoz_collective_user` SET `status` = '$status_ct' WHERE `id` = '$uctu[id]'");
if($status_ct<$uctu['status'])mysql_query("INSERT INTO `kolhoz_collective_history` SET `id_user` = '$ank[id]', `id_who` = '$ku[id]', `id_collective` = '$uct[id]', `time` = '$time', `type` = 'st_up', `dei` = 'who', `status` = '$status_ct'");
else mysql_query("INSERT INTO `kolhoz_collective_history` SET `id_user` = '$ank[id]', `id_who` = '$ku[id]', `id_collective` = '$uct[id]', `time` = '$time', `type` = 'st_down', `dei` = 'who', `status` = '$status_ct'");
header("Location:?user=$ank[id]");
}
elseif($status_ct==1 && $mcu['status']==1)
{
if(isset($_GET['ok']))
{
mysql_query("UPDATE `kolhoz_collective_user` SET `status` = '1' WHERE `id` = '$uctu[id]'");
mysql_query("UPDATE `kolhoz_collective_user` SET `status` = '2' WHERE `id` = '$mcu[id]'");
mysql_query("INSERT INTO `kolhoz_collective_history` SET `id_user` = '$ank[id]', `id_who` = '$ku[id]', `id_collective` = '$uct[id]', `time` = '$time', `type` = 'st_up', `dei` = 'who', `status` = '1'");
mysql_query("INSERT INTO `kolhoz_collective_history` SET `id_user` = '$ku[id]', `id_who` = '$ku[id]', `id_collective` = '$uct[id]', `time` = '$time', `type` = 'st_down', `dei` = 'who', `status` = '2'");
header("Location:?user=$ank[id]");
}
podtv("?user=$ank[id]&status_ct=1&ok","?user=$ank[id]&status_ct");
include_once 'inc/foot.php';
}
elseif($status_ct==0 && $mcu['status']<=3 && isset($mc))
{
if(isset($_GET['ok']))
{
mysql_query("DELETE FROM `kolhoz_collective_user` WHERE `id` = '$uctu[id]'");
mysql_query("INSERT INTO `kolhoz_collective_history` SET `id_user` = '$ank[id]', `id_who` = '$ku[id]', `id_collective` = '$uct[id]', `time` = '$time', `type` = 'out', `dei` = 'who'");
mysql_query("UPDATE `kolhoz_user` SET `time_shmel` = '0', `time_yastreb` = '0', `time_drakon` = '0' WHERE `id` = '$ank[id]'");
header("Location:?user=$ank[id]");
}
podtv("?user=$ank[id]&status_ct=0&ok","?user=$ank[id]&status_ct");
include_once 'inc/foot.php';
}
}
echo "<div class='event'><h1>$au[nick]</h1></div>";
echo '<div class="content"><div class="block">';
$array_status=array('председатель/' => '1', 'зампред/' => '2', 'агроном/' => '3', 'бригадир/хозяйка' => '4', 'староста/' => '5', 'механизатор/товаровёд' => '6', 'колхозник/колхозница' => '7', 'исключить/' => '0');
echo "<ul>";
foreach($array_status AS $key => $value)
{
$sname=explode('/',$key);
if($sname[1]==NULL)$sname[1]=$sname[0];
if($value==0)$img='cross';elseif($value==1)$img='crown';elseif($value==$uctu['status'])$img='arrow';elseif($value>$uctu['status'])$img='down';elseif($value<$uctu['status'])$img='up';
echo "<li><img src='images/icons/".$img.".png'> ";
echo ($value>$mcu['status'] && $mcu['status']!=$value || $mcu['status']==1 && $value==1 || $value==0?"<a href='?user=$ank[id]&status_ct=$value'>":null)."".($au['pol']==1?$sname[0]:$sname[1])."".($value>$mcu['status'] && $mcu['status']!=$value || $mcu['status']==1 && $value==1 || $value==0?"</a>":null)."</li>";
}
echo "</ul>";
echo "</div>";
include_once 'inc/foot.php';
}
if(isset($_GET['status']) && ($ku['status']==3 || $ku['dostup']!=0))
{
if($_GET['status']!=NULL && ($_GET['status']==0 || $_GET['status']==1 || $_GET['status']==2 || $_GET['status']==3))
{
mysql_query("UPDATE `kolhoz_user` SET `status` = '".intval($_GET['status'])."' WHERE `id` = '$ank[id]'");
header("Location:?user=$ank[id]");
}
echo "<div class='event'><h1>$au[nick]</h1></div>";
echo '<div class="content"><div class="block">';
echo "<li><img src='images/icons/".($ank['status']==3?"arrow.png":"up.png")."'> ".($ank['status']!=3?"<a href='?user=$ank[id]&status=3'>":null)."администратор".($ank['status']==3?"</a>":null)."</li>";
echo "<li><img src='images/icons/".($ank['status']==2?"arrow.png":"".($ank['status']>2?"down.png":"up.png")."")."'> ".($ank['status']!=2?"<a href='?user=$ank[id]&status=2'>":null)."модератор".($ank['status']==2?"</a>":null)."</li>";
echo "<li><img src='images/icons/".($ank['status']==1?"arrow.png":"".($ank['status']>1?"down.png":"up.png")."")."'> ".($ank['status']!=1?"<a href='?user=$ank[id]&status=1'>":null)."тех. поддержка".($ank['status']==1?"</a>":null)."</li>";
echo "<li><img src='images/icons/".($ank['status']==0?"arrow.png":"".($ank['status']>0?"down.png":"up.png")."")."'> ".($ank['status']!=0?"<a href='?user=$ank[id]&status=0'>":null)."игрок".($ank['status']!=0?"</a>":null)."</li>";
echo "</div>";
include_once 'inc/foot.php';
}
if(isset($_GET['tehnics']))
{
echo "<div class='event'><h1>Техника $ank[nick]</h1></div><div class='block'>";
if($ank['flowerbed']>0)echo "<li><img width='16' height='16' src='images/icons/flowerbed.png' alt='o'> <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' src='images/icons/dig.png' alt='o'> <a class='epic' href='?shop=cultivator'>Культиватор</a> <span class='minor'>(<span>$ank[cultivator]</span>)</span></li>";
if($ank['irregate']>0)echo "<li><img width='16' height='16' src='images/icons/water.png' alt='o'> <a class='epic' href='?shop=irregate'>Ороситель</a> <span class='minor'>(<span>$ank[irregate]</span>)</span></li>";
if($ank['seeder']>0)echo "<li><img width='16' height='16' src='images/icons/seat.png' alt='o'> <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' src='images/icons/harvest.png' alt='o'> <a class='epic' href='?shop=harvester'>Комбайн</a><span class='minor'>(<span>$ank[harvester]</span>)</span></li>";
if($ank['cultivator2']>0)echo "<li><img width='16' height='16' src='images/icons/ps.gif' alt='o'> <a class='epic' href='?shop=cultivator2'>Пыльщик</a> <span class='minor'>(<span>$ank[cultivator2]</span>)</span></li>";
if($ank['seeder2']>0)echo "<li><img width='16' height='16' src='images/icons/recipes.png' alt='o'> <a class='epic' href='?shop=seeder2'>Поставщик</a>
<span class='minor'>(<span>$ank[seeder2]</span>)</span></li>";
if($ank['harvester2']>0)echo "<li><img width='16' height='16' src='images/icons/harvest.png' alt='o'> <a class='epic' href='?shop=harvester2'>Сборщик</a><span class='minor'>(<span>$ank[harvester2]</span>)</span></li>";
if($ank['soiler']>0)echo "<li><img width='16' height='16' src='images/icons/soil.png' alt='o'> <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' src='images/icons/harvest.png' alt='o'> <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' src='images/icons/plate.png' alt='o'> <a class='epic' href='?shop=fooder'>Кормушка</a> <span class='minor'>(<span>$ank[fooder]</span>)</span></li>";
echo "</div>";
include_once "inc/foot.php";
}
if(isset($_GET['bonus']))
{
echo "<div class='event'><h1>Бонусы $ank[nick]</h1></div><div class='block'>";
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>";
echo "</div>";
include_once "inc/foot.php";
}
if(isset($_GET['verts']))
{
echo "<div class='event'><h1>Вертолёты $ank[nick]</h1></div><div class='block'>";
if($ank['time_shmel']>$time)echo "<li><img width='16' height='16' alt='o' src='images/icons/heli1n.png'> <a class='epic' href='?shop=helicopter&1'>Шмель</a><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'> <a class='epic' href='?shop=helicopter&2'>Ястреб</a><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'> <a class='epic' href='?shop=helicopter&3'>Дракон</a><span class='minor'> на <span>".time_left($ank['time_drakon']-$time)."</span></span></li>";
echo "</div>";
include_once "inc/foot.php";
}
if(isset($_GET['workers']))
{
echo "<div class='event'><h1>Работники $au[nick]</h1></div>";
echo '<div class="content"><div class="block">';
echo "<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&id=".$ank[gardener]."'>Садовник ".$name."</a><span class='minor'> на <span>".time_left($ank['garden_time']-$time)."</span></span></li>";
if($ank['marfa_time']>$time)echo "<li><img width='16' height='16' alt='o' src='images/icons/marfa.png'> <a class='epic' href='?shop=marfa&id=3'>Марфа</a><span class='minor'> на <span>".time_left($ank['marfa_time']-$time)."</span></span></li>";
if($ank['daria_time']>$time)echo "<li><img width='16' height='16' alt='o' src='images/icons/daria.png'> <a class='epic' href='?shop=daria&id=3'>Дарья</a><span class='minor'> на <span>".time_left($ank['daria_time']-$time)."</span></span></li>";
if($ank['trofim_time']>$time)echo "<li><img width='16' height='16' alt='o' src='images/icons/trofim.png'> <a class='epic' href='?shop=trofim&id=3'>Трофим</a><span class='minor'> на <span>".time_left($ank['trofim_time']-$time)."</span></span></li>";
echo "</ul>";
echo "</div></div>";
include_once 'inc/foot.php';
}
echo "<div class='event'><h1>$au[nick]</h1></div>";
echo '<div class="content"><div class="block">';
echo "<a class='epic' href='?user=$ank[id]&tehnics'>Техника</a><span class='minor'>:</span> <span class='title'><span>$ank[tehnika]</span>".($ank['time_drakon']>$time || $ank['time_yastreb']>$time || $ank['time_shmel']>$time?"<span class='minor'>, <a class='epic' href='?user=$ank[id]&verts'>Вертолёты</a>: ".($ank['time_shmel']>$time?"<img width='16' height='16' alt='o' src='images/icons/heli1n.png'>":null)."".($ank['time_yastreb']>$time?"<img width='16' height='16' alt='o' src='images/icons/heli2n.png'>":null)."".($ank['time_drakon']>$time?"<img width='16' height='16' alt='o' src='images/icons/heli3n.png'>":null)."</span>":null)."".($ank['hydropinics_time']>$time || $ank['scarecrow_time']>$time?"<span class='minor'>, <a class='epic' href='?user=$ank[id]&bonus'>Бонусы</a>: ".($ank['scarecrow_time']>$time?"<img width='16' height='16' src='images/icons/scarecrow.png' alt='o'>":null)."".($ank['hydropinics_time']>$time?"<img width='16' height='16' src='images/icons/hydropinics.png' alt='o'>$ank[hydropinics_type]%":null)."</span>":null)."".(isset($uct)?"<span class='minor'>, Колхоз: <a href='?collective=$uct[id]'><span>".hsc($uct['name'])."</span></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>":null)."</div><div class='block'>";
echo "<span class='minor'>".($ku['id']==$ank['id']?"<a href='?anketa'>":"<span>")."О себе".($ku['id']==$ank['id']?"</a>":"</span>").": <span>".($ank['name']==NULL?'-':hsc($ank['name']))."</span>, <span>".($ank['city']==NULL?'-':hsc($ank['city']))."</span>, <span>".($ank['date']==NULL?'-':hsc($ank['date']))."</span>, <span>".($ank['contacts']==NULL?'-':hsc($ank['contacts']))."</span></span></div><div class='block'>";
/*echo "<a href='?ava'>";
if (file_exists('images/avatars/'.$au['id'].'.png'))
{
echo "<div class='block'><img src='images/avatars/$au[id].png' alt='*'></div>";
}
else
{
echo " <tr>n";
echo " <td class='icon' rowspan='2'>n";
if($ank['seeder']>0) $im1 = 1;
if($ank['soiler']>0) $im2 = 1;
if($ank['irregate']>0) $im3 = 1;
if($ank['cultivator']>0) $im4 = 1;
if($ank['flowerbed']>0) $im5 = 1;
if($ank['hydropinics_time']>$time) $im6 = 1;
if($ank['harvester']>0) $im7 = 1;
if($ank['scarecrow_time']>$time) $im8 = 1;
if($ank['conveyor']>0) $im9 = 1;
if($ank['fooder']>0) $im10 = 1;
echo '<img src="images_line/images_location.php?im1='.$im1.'&im2='.$im2.'&im3='.$im3.'&im4='.$im4.'&im5='.$im5.'&im6='.$im6.'&im7='.$im7.'&im8='.$im8.'&im9='.$im9.'&im10='.$im10.'" alt="" />';
}
*/
echo " <tr>n";
echo " <td class='icon' rowspan='2'>n";
if($ank['seeder']>0) $im1 = 1;
if($ank['soiler']>0) $im2 = 1;
if($ank['irregate']>0) $im3 = 1;
if($ank['cultivator']>0) $im4 = 1;
if($ank['flowerbed']>0) $im5 = 1;
if($ank['hydropinics_time']>$time) $im6 = 1;
if($ank['harvester']>0) $im7 = 1;
if($ank['scarecrow_time']>$time) $im8 = 1;
if($ank['conveyor']>0) $im9 = 1;
if($ank['fooder']>0) $im10 = 1;
echo '<img src="images_line/images_location.php?im1='.$im1.'&im2='.$im2.'&im3='.$im3.'&im4='.$im4.'&im5='.$im5.'&im6='.$im6.'&im7='.$im7.'&im8='.$im8.'&im9='.$im9.'&im10='.$im10.'" alt="" />';
//avatar($ank['id']);
echo " </td>n";
echo " <td class='p_t'>n";
echo "n";
echo " </td>n";
echo " </tr>n";
if($ank['id']!=$ku['id'])
{
echo "<div class='ptm'>";
echo "<img width='16' height='16' src='images/icons/pencil.png' alt='o'> <a href='?mail&new_msg=$ank[id]'>Написать</a>";
echo "</div>";
echo "<div><img width='16' height='16' src='images/icons/gift_plus.png' alt='o'> <a href='?presents=$ank[id]&do'>Подарить</a></div>";
echo "<div><img width='16' height='16' src='images/icons/money.png' alt='o'> ".($ank['rating']<$ku['rating']?"<a href='?perevod=$ank[id]'>":null)."Перевести".($ank['rating']<$ku['rating']?"</a>":null)."</div>";
echo "<img width='16' height='16' src='images/wall.png' alt='o'> <a href='?user=$ank[id]&stena'>Стена</a>";
}
///////////////////////////////////////////// Конец сокращения техники
if(isset($uct))
{
echo "<ul class='minor pt'>n
<li>Опыт в колхозе: <span><img width='16' height='16' src='images/icons/experience.png' alt='o'><span class='title'>".rating($uctu['rating'])."</span> <span class='minor'>(<span>$uctu[rating]</span>)</span></span></li>n
<li>Опыт за неделю: <span><img width='16' height='16' src='images/icons/experience.png' alt='o'> <span class='title'>".rating($uctu['rating_week'])."</span> <span class='minor'>(<span>$uctu[rating_week]</span>)</span></span></li>n
<li>Вклад рубинов: <span><img width='16' height='16' src='images/icons/ruby.png' alt='o'> <span class='title'>$uctu[rubies]</span></span></li>n
<li>Вклад монет: <span><img width='16' height='16' src='images/icons/money.png' alt='o'> <span class='title'>$uctu[money]</span></span></li>n
</ul>n";
}
echo "<ul class='pt'><li class='minor'>Роль: ".($ank['status']==0 && $ku['status']==3?"Игрок":"<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>")." ".(($ku['status']==3 || $ku['dostup']!=0)?"<a href='?user=$ank[id]&status'>(изменить)</a>":null)."</li></ul>";
$ban=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_ban` WHERE `id_user` = '$ank[id]' AND (`time` > '$time' OR `izg` = '1') ORDER BY `id` DESC LIMIT 1"));
$us_ban=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '$ban[id_who]'"));
if($ban['id'])
{
echo "<ul class='pt'>
<div>
<li class='major'><span>".($ban['izg']==1?'Изгнание':"Обет Молчания до ".vremja($ban['time']))."</span>, выдал".($us_ban['pol']==0?'':null)." <span>";
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>";
}
echo "<ul class='minor pt'><li>Опыт личный: <span><img width='16' height='16' src='images/icons/experience.png' alt='o'><span class='title'>".rating($ank['rating'])."</span> <span class='minor'>(<span>$ank[rating]</span>)</span></span></li>";
echo "<li>Уровень: <span class='title'>$ank[level]</span></li>";
echo "<li>Игровое время: <span class='title'>".time_left($ank['time'])."</span></li>";
$seq=mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '$ank[id]'");
$usq = mysql_fetch_assoc($seq);
echo "<li>Посл. посещение: <span class='title'>".vremja($usq['date_last'])."</span></li>";
if($ank['para']) echo '<li>Состоит в браке с '; if($ank['para'])echo "".on_k($ank['para']).""; if($ank['para'])echo '<span> <a class="" href="?user='.$ank['para'].'"><span>'.nc($ank['para']).'</span></a></li>';
$t=time()-600;
echo "<li>Статус: ";
echo "".on_k($ank['id'])."";
echo " <span>".($au['date_last']<=$t?"<font color='red'>Оффлайн</font>":"<font color='green'>Онлайн</font>".stats($ank['id'])."")."</span></li>";
$usq=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id` = '$ank[id]'"));
if($ku['status'] == 3) echo 'Монет: '.$ank['money'].'<br/>';
if($ku['status'] == 3) echo 'Рубинов: '.$ank['rubies'].'<br/>';
echo 'Лопат: '.$ank['lopata'].'<br/>';
echo "<li>Дата регистрации: <span>".vremja($ank['time_start'])."</span> (id:<span>$ank[id]</span>)</li>";
if($ank['expdouble']=='Mon')$day='понедельник';
if($ank['expdouble']=='Tue')$day='вторник';
if($ank['expdouble']=='Wed')$day='среда';
if($ank['expdouble']=='Thu')$day='четверг';
if($ank['expdouble']=='Fri')$day='пятница';
if($ank['expdouble']=='Sat')$day='суббота';
if($ank['expdouble']=='Sun')$day='воскресенье';
echo "<li>Двойной опыт: <span class='title'>$day</span></li>";
echo "</ul>";
echo "<ul class='pt'>";
if(isset($mc) && $mcu['status']<=3 && isset($mc) && !isset($uct))echo "<li><img width='16' height='16' src='images/icons/guild.png' alt='o'> ".($ank['level']>=10?"<a href='?user=$ank[id]&inct'>":"<span>")."Пригласить в колхоз".($ank['level']>=10?"</a>":"</span> <span class='minor'></span>")."</li>";
if($ku['dostup']==1)echo "<li><img alt='' width='16' height='16' src='images/icons/forum_edit.png'> <a href='?admin=users&edit=$ank[id]'>Редактировать игрока</a><div>".($ku['dostup']==1?"<img width='16' height='16' src='images/icons/cross.png' alt='o'> <a href='?admin=users&del=$ank[id]&ok'>Удалить</a>":null)."</div></li>";
echo "<li><span><img width='16' height='16' src='images/icons/work_log.png' alt='o'> <a href='?user=$ank[id]&history'>Трудовая книжка</a></li>";
echo "<li></span><img width='16' height='16' src='images/icons/rating.png' alt='o'> <a href='?dostig=$ank[id]'>Достижения</a> <span class='title'>(<span>$ank[dostig]</span>)</span></li>";
if($ank['id']!=$ku['id'])
{
echo "<li></li>";
echo "<li><img alt='' width='16' height='16' src='images/icons/plants.png'> <a href='?uf=$ank[id]'>Грядки</a></li>";
if($ank['level']>=10)echo "<li><img alt='' width='16' height='16' src='images/icons/animal.png'> <a href='?upf=$ank[id]'>Загоны</a></li>";
if($ank['level']>=1)echo "<li><img alt='' width='16' height='16' src='images/icons/recipes.png'> <a href='?uc=$ank[id]'>Погреб</a></li>";
}
echo "<li><img width='16' height='16' src='images/icons/chat.png' alt='o'> <a href='?communication=$ank[id]'>Общение</a></li>";
//////////////////////////
if($ank['id']==$ku['id'])
{
echo "<li><img width='16' height='16' src='images/icons/book.png' alt='o'> <a href='?user=$ank[id]&journal'>Журнал</a></li>";
}
echo '<li><img width="16" height="16" src="/images/icons/abilities.png" alt="o"/> <span class="minor">Способности:</span> <span class="title">
<span class="title">
<img width="16" height="16" src="/images/icons/sword.png" alt="Мощн" title="Мощн"/> <span class="title">'.$ank['arena1'].'</span>
</span><span>
<img width="16" height="16" src="/images/icons/heart.png" alt="Жив" title="Жив"/> <span class="title">'.$ank['arena2'].' </span>
</span><span>
<img width="16" height="16" src="/images/icons/shield.png" alt="Защита" title="Защита"/> <span class="title">'.$ank['arena3'].'</span>
</span>
</span></li>';
include 'inc/zags/index.php';
if($ank['id']==$ku['id'])
{
echo "<div><img width='16' height='16' src='images/icons/settings.png' alt='o'> <a href='?settings'>Настройки</a></div>";
echo "<div><img src='/images/icons/autologin.png'> <a href='http://$_SERVER[HTTP_HOST]/?autologin=$ku[autologin]'>Автологин</a></div>";
echo "<div><img width='16' height='16' src='images/icons/chang_nick11.png' alt='o'> <a href='?change_nickname'>Сменить ник</a></div>";
}
/*
if(isset($_GET['chat_off']) && $ku['status']>0 && ($ank['status']!=3 || $ku['dostup']>0))
{
if($ku['status']==1)$status='Сотрудник Тех. поддержки';elseif($ku['status']==2)$status='Модератор';elseif($ku['status']==3)$status='Администратор';
$mail='Здравствуйте! '.$status.' '.$ku['nick'].' '.($ank['chat_off']==1?'разрешил':'запретил').' вам обменивать посты чата.'.($ank['chat_off']==1?' В следующий раз не нарушайте.':' Если хотите узнать причину, пишите в Тех. поддержку.').' Приятной игры!';
mysql_query("INSERT INTO `kolhoz_mail` (`id_user`,`id_kont`,`msg`,`time`,`type`,`read`)VALUES('$ank[id]','0','$mail','$time','to','0')");
mysql_query("UPDATE kolhoz_user SET chat_off = '".($ank['chat_off']==1?"0":"1")."' WHERE id = '$ank[id]'");
header("Location:?user=$ank[id]");
}
if($ku['status']>0 && ($ank['status']!=3 || $ku['dostup']>0))
{
echo "</div><div class='block'>Админ панель:</div><div class='block'>Постов у игрока: $ank[chatpost]</div><div class='block'>- <a href='?user=$ank[id]&chat_off'>".($ank['chat_off']==1?"Разрешить":"Запретить")." обмен постов</a><br>- <a href='?user=$ank[id]&post_null'>Удалить посты чата</a><br></div><div class='block'>";
}
*/
//if($ku['status']>0)echo "<div><a href='?user=$ank[id]&journal'>Журнал</a></div>";
if($ku['status']>0)
{
echo "<br><h3>Админ-меню</h3>";
if(($ku['id']==1 || $ku['status']>0) && $ku['id']!=$ank['id'])echo "<div><img src='/images/icons/ban.png'> <a href='?user=$ank[id]&ban'>Выдать Обет молчания</a></div>";
if(($ku['id']==1 || $ku['status']==1 || $ku['status']==3) && $ku['id']!=$ank['id'])echo "<div> <img src='/images/icons/block.png'> <a href='?user=$ank[id]&izg'>Выдать Изгнание</a></div>";
if($ku['status']>0)echo "<div><img src='images/icons/arrow.png'> <a href='?user=$ank[id]&bans'>Список нарушений</a> <span class='title'>(".mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_ban` WHERE `id_user` = '$ank[id]'"),0).")</span></div>";
echo "<li><img width='16' height='16' src='images/icons/forum.png' alt='*' title='*'> <a href='?user=$ank[id]&forum_user'>Темы на форуме</a> <span class='title'>(".mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_forum` WHERE `id_user` = '$ank[id]' AND `type` = 'tema'"),0).")</span></li>";
echo "<li><img width='16' height='16' src='images/icons/forum.png' alt='*' title='*'> <a href='?user=$ank[id]&forum_them_us'>Сообщения на форуме</a> <span class='title'>(".mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_forum` WHERE `id_user` = '$ank[id]' AND `type` = 'komm'"),0).")</span></li>";
}
echo "</ul>";
echo "<div></div><div></div></div>";
include_once 'inc/foot.php';
?>