Файл: ferma/inc/uhead.php
Строк: 136
<?Error_Reporting (0);
if(isset($_SESSION['harvest']))
{
harvest($_SESSION['harvest']);
unset($_SESSION['harvest']);
}
if(isset($_SESSION['rating']))
{
ratingg($_SESSION['rating']);
unset($_SESSION['rating']);
}
if(isset($_SESSION['mon']))
{
mon($_SESSION['mon']);
unset($_SESSION['mon']);
}
if(isset($_SESSION['km']))
{
km($_SESSION['km']);
unset($_SESSION['km']);
}
if($ku['umoney']!=0)
{
money($ku['umoney']);
}
if(isset($_SESSION['no_rubies']))
{
no_rubies($_SESSION['no_rubies']);
unset($_SESSION['no_rubies']);
}
if(isset($_SESSION['no_money']))
{
no_money($_SESSION['no_money']);
unset($_SESSION['no_money']);
}
if($ku['polosa']==0)
{
$max = $level['rating'];
$tek = $kr;
$forl = ($tek/$max)*100;
}
echo "<div class='headers'><p align='left'><div class=bel><small><sub><a href='?levels=$ku[id]'style='color:#000000; text-decoration:none'> <img width='16' height='15' src='i/icons/experience.png' alt='o' title='Нажмите чтобы узнать дополнительную информацию о вашем уровне'<span><class='bel'><font-size:5.2em;>".number_format($ku[level])."</a></span></span><font color='black'><img width='16' height='16' src='i/icons/money1.png' alt='o' title='Монеты'><span>".number_format($ku[money])."</span></a><a href='?Vip=$ku[id]'style='color:#000000; text-decoration:none'><img width='16' height='16' src='i/icons/ok.png' alt='o' title='Очки престижа'><span>".number_format($ku[rubies])."</a></a></span>".($ku['dostup']==1?" <a href='?admin'><img width='16' height='16' src='i/radar.png' alt='o' title='Админ-панель'></a>":null)."";
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_mail` WHERE `id_user` = '$ku[id]' AND `read` = '0'"),0)!=0)
{
echo "<a href='?mail&new'> <img width='15' height='15' src='i/mail2.png' alt='0'><font color='black' size='2'>+<span>".mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_mail` WHERE `id_user` = '$ku[id]' AND `read` = '0'"),0)."</span></font></span></a>";
}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_gifts` WHERE `id_user` = '$ku[id]' AND `read` = '0'"),0)!=0)
{
echo " <a href='?presents=$ku[id]'><img width='15' height='15' src='i/icons/gift.png' alt='0'></a>";
}
if($ku['poh']==0)echo " <a href='?mail'><img width='15' height='15' src='i/mail2.png' alt='0'></a>";
if($ku['nas']==0)echo " <a href='?settings'><img width='15' height='15' src='i/i/s.png' alt='0'></a>";
if($ku['status']>0)echo " <a href='?moder'><img width='15' height='15' src='i/f.png' alt='0'></a>";
if($ku['adm']>0)echo " <a href='?moder'><img width='15' height='15' src='i/f.png' alt='0'></a>";
if($ku['mag']==0)echo " <a href='?shop'><img width='15' height='15' src='i/i/ma.png' alt='0'></a>";
if($ku['pa']==0)echo " <a href='?partner'><img width='15' height='15' src='i/i/fr.png' alt='0'></a>";
if($ku['te']==0)echo "<li><font size='1'>Перейдите <a href='?settings1'>сюда</a> для настройки значков на логотипе.</font></li>";
if($ku['po']==0)echo '<div style="padding-top:1px">';
if($ku['po']==0)echo '<div style="width:120px">';
if($ku['po']==0)echo '<div style="height:1px">';
if($ku['po']==0)echo '<div style="border:1px solid #7AB82C;border-radius:0px;height:4px;margin-top:1px;">
<div class="ex" style="width:'.$forl.'%;height:4px"/>';
if($ku['po']==0)echo "</font>";
if($ku['po']==0)echo "</div>";
if($ku['po']==0)echo "</div>";
if($ku['po']==0)echo "</div>";
if($ku['po']==0)echo "</div>";
if($ku['po']==0)echo "</ul></div>";
echo "</span></a></small></sub></p></font></div></div>";
if($ku['verh']==0)if (stristr($_SERVER['HTTP_USER_AGENT'],'windows') || stristr($_SERVER['HTTP_USER_AGENT'],'linux') ||
stristr($_SERVER['HTTP_USER_AGENT'],'macintosh') || stristr($_SERVER['HTTP_USER_AGENT'],'unix') ||
stristr($_SERVER['HTTP_USER_AGENT'],'macos') || stristr($_SERVER['HTTP_USER_AGENT'],'bsd'))
{
if($ku['verh']==0)echo '<font color="black" size="2"><b><marquee behavior="scroll" direction="left">Хотите хорошо провести время? идите в <a href="?chat">Чат</a> или <a href="?forum">Форум.</a>При покупке ОП медаль в подарок)(Мы совеменем будем делать игру лучше)"(Ели вы не хочете узнавать новости игры через бегущую строку то её) можно отключить <a href="?settings1">Здесь</a> "</marquee></b></font>';
}
else
{
if($ku['verh']==0)echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<span id="cont" оnclick="changeText();" ></span>
<script type="text/javascript">
function changeText()
{
if(cont.innerHTML == "Проверка")
{
cont.innerHTML = "Проверка1";
}
else
{
cont.innerHTML = "Проверка";
}
}
setInterval("changeText()",10000);
</script >
</body>
</html>
</SCRIPT>';
}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_collective_invite` WHERE `id_user` = '$ku[id]'"),0)!=0)
{
$invite=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective_invite` WHERE `id_user` = '$ku[id]'"));
$cti=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_collective` WHERE `id` = '$invite[id_collective]'"));
$who=mysql_fetch_array(mysql_query("SELECT * FROM `kolhoz_user` WHERE `id` = '$invite[id_who]'"));
if(isset($_GET['invite_collective']) && $_GET['invite_collective']=='yes')
{
mysql_query("DELETE FROM `kolhoz_collective_invite` WHERE `id` = '$invite[id]'");
mysql_query("INSERT INTO `kolhoz_collective_user` SET `id_user` = '$ku[id]', `id_collective` = '$cti[id]', `time` = '$time', `status` = '7'");
mysql_query("INSERT INTO `kolhoz_collective_history` SET `id_user` = '$ku[id]', `id_who` = '$who[id]', `id_collective` = '$cti[id]', `time` = '$time', `type` = 'in', `dei` = 'who'");
header("Location:?collective=$cti[id]");
}
elseif(isset($_GET['invite_collective']) && $_GET['invite_collective']=='no')
{
mysql_query("DELETE FROM `kolhoz_collective_invite` WHERE `id` = '$invite[id]'");
}
else
{
}
}
if(isset($_SESSION['msg']))
{
msg_game($_SESSION['msg']);
unset($_SESSION['msg']);
}
?>