Файл: gamele.ru/func/main.php
Строк: 40
<?
/*[WoA-IT] ExpLo1T ICQ 321769*/
session_start ();
//error_reporting(0);
//$v=time()+microtime();
require_once "func/connect.php";
require_once "func/sql_func.php";
db_open();
$player=player();
if($player[mov]==1){$user['pos']=3;$secur='';db_query('UPDATE user SET mov=DEFAULT WHERE id='.AP.$player['id'].AP.' LIMIT 1;');}
if(!ereg($HTTP_HOST ,getenv ('HTTP_REFERER' )) or $user[login]=='' or $UID!=$player['pcid'] or $UID!=$user['uin'] ){echo "<script>top.location = 'error.php';</script>";}
if(isset($get) and in_array($vcode,$secur)){$user['pos']=$get;}
if(isset($get_id) and in_array($vcode,$secur)){include "inc/get_id.php";}
if(isset($go) and in_array($vcode,$secur)){change_get($go);}
if(isset($post_id) and in_array($vcode,$secur)){include "inc/post_id.php";}
$player=player();
$plst=explode("|",$player[st]);
$plstt=allparam($player);
$secur='';
if($player['battle']!=0 and $player['fight']!=0){require "inc/battle.php"; exit;}
if(isset($useaction)){require "inc/$useaction.php"; exit;}
if($player['battle']!=0 or $player[wait]>time())$user[pos]=3;
NatureBotAttack();
include "inc/hedder.php";
if($user['pos']<2){$inc="mpers.php";}
if($user['pos']>1){$inc=$ret[3]."/".pl_loc($player['loc']);}
include "inc/$inc";
//echo (time()+microtime())-$v;
/*[WoA-IT] ExpLo1T ICQ 321769*/
?>
</BODY>
</HTML>