Файл: inc/system/foot.php
Строк: 131
<?
define('TIME', time());
$ixp =mysql_fetch_array(mysql_query("SELECT * FROM `exp` WHERE `id` = '1'"));
if(isset($exp3))echo"<div class ='block'><center><img src='/img/icons/new/dostig.png' alt='0' n=''/> тройной опыт на ".time_left($ixp['time']-$time)." </center></div>";
if($ku['expdouble']==date("D"))echo"<div class ='block'><center><img src='/img/icons/new/dostig.png' alt='0' n=''/> двойной опыт </center></div>";
echo"</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>";
echo "<table style='width:100%;'><tr>";
echo'<td style="25%">
<a class="menu-foot" href="menu">
<center>Главная</center></a>
</td></div> ';
echo'<td style="25%">
<a class="menu-foot" href="/user/'.$ku['id'].'">
<center>Профиль</center></a>
</td></div> ';
if($mc['id']>0)
echo'<td style="25%">
<a class="menu-foot" href="/kolhoz/'.$mc['id'].'">
<center>Колхоз</center></a>
</td> ';
if($mc['id']<1)
echo'<td style="25%">
<a class="menu-foot" href="/RatingKolhoz/">
<center>Колхоз</center></a>
</td></div>';
echo "</tr></table>";
echo'</div></div></div></div></div>';
$max = $level['rating'];
$tek = $kr;
$forl = ($tek/$max)*100;
$lol=$level['rating']-$kr;
$x = $kr / $level['rating'] * 100;
$xs = ceil($x);
echo '
<div class="gray_container"><div class="f-progress-exp">
<span class="f-progress-exp-text">
<span>'.rating($tek).'</span>/<span>'.rating($level['rating']).'</span> опыта
</span>
<div class="level"></div>
<span class="level left">'.$ku['level'].'</span><div class="f-progress-exp-fill" ></div></div><div class="f center bigger">
<div class="lblue">';
echo"Вы вошли как $ku[nick]<br />";
echo'</div>';
echo '<span class="lgray">
<a href="help/">Помощь</a> |
<a href="/online"><span>Онлайн('.mysql_result(mysql_query("SELECT COUNT(*) FROM `kolhoz_user` WHERE `date_last` > '".(time()-3600)."'"), 0).')</span></a> | <a href="/settings">Настройки</a><br/>';
echo '<a href="/support">Поддержка</a> |
</span>
<span class="lgray">
<a href="/out">Выйти</a>
</span>
</div></div>';
echo"<div class='div5'><div style='text-align:center;'>";
echo" ".($ku['status']==3?"<a href='/AdminPanel'>Админка</a>":null)."".($ku['status']>0?" | <a href='/ModerationPhoto'>Модерация фото</a> ".(mysql_result(mysql_query("SELECT COUNT(*) FROM `user_avatar` WHERE `check` = '0'"),0)!=0?" (".mysql_result(mysql_query("SELECT COUNT(*) FROM `user_avatar` WHERE `check` = '0'"),0).")":null)."</a>":null)."".($ku['status']==1 || $ku['status']==3?"| <a href='/TicketSupport'>Тикеты</a> ".(mysql_result(mysql_query("SELECT COUNT(*) FROM `me_tikets` WHERE `read` < '1'"),0)!=0?" (".mysql_result(mysql_query("SELECT COUNT(*) FROM `me_tikets` WHERE `read` < '1'"),0).")":null)."":null)." ".($ku['status']>0?" | <a href='/AdminComplaint'>Жалобы</a> ".(mysql_result(mysql_query("SELECT COUNT(*) FROM `complaint` WHERE `check` = '0'"),0)!=0?" (".mysql_result(mysql_query("SELECT COUNT(*) FROM `complaint` WHERE `check` = '0'"),0).")":null)."</a>":null)."<br>";
echo '</div>';
echo'<div style="text-align:center;" class="small">';
echo "Онлайн игра <span class='epic'>Милая Ферма</span><div> </span>";
$date = date("d $m");
$today[1] = date("H:i:s");
echo(" $date $today[1]");
echo "<div></div><div style='text-align:center;'><div></span>";
echo "</div>";
echo '<center><script type="text/javascript" src="http://mobtop.ru/c/108696.js"></script><noscript><a href="http://mobtop.ru/in/108696"><img src="http://mobtop.ru/108696.gif" alt="MobTop.Ru - рейтинг мобильных сайтов"/></a></noscript>
<br /> <!--LiveInternet counter--><script type="text/javascript">new Image().src = "//counter.yadro.ru/hit?r" + escape(document.referrer) + ((typeof(screen)=="undefined")?"" : ";s"+screen.width+"*"+screen.height+"*" + (screen.colorDepth?screen.colorDepth:screen.pixelDepth)) + ";u"+escape(document.URL) + ";" +Math.random();</script>
<!--/LiveInternet-->
<!--LiveInternet logo--><a href="//www.liveinternet.ru/click" target="_blank"><img src="//counter.yadro.ru/logo?26.6" border="0" width="88" height="15" alt="" title="LiveInternet: показано число посетителей за сегодня"/></a><!--/LiveInternet--></center>';
if(isset($mc))
{
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/collective/next_level_collective.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/collective/station_act.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/inc/collective/count_cash.php';
}
$count=$ku['flowerbed']+$ku['cultivator']+$ku['irregate']+$ku['soiler']+$ku['conveyor']+$ku['seeder']+$ku['fooder']+$ku['fishfooder']+$ku['autocrane']+$ku['incubator']+$ku['iseeder']+$ku['plug']+$ku['harvester'];
mysql_query("UPDATE `kolhoz_user` SET `tehnika` = '$count' WHERE `id` = '$ku[id]'");
if($ku['time_start']==0 || $ku['time_start']==NULL)mysql_query("UPDATE `kolhoz_user` SET `time_start` = '$time' WHERE `id` = '$ku[id]'");
mysql_query("UPDATE `kolhoz_user` SET `count_cp` = '0' WHERE `time_cp` < '$time'");
mysql_query("UPDATE `kolhoz_collective_user` SET `rubies` = '0' WHERE `rubies` = ''");
exit;
?>