Файл: l2ps_v5/ok.php
Строк: 32
<?php
include_once("files/ini.php");
include_once("files/data.php");
$qi = mysql_query("SELECT * from `okrestnosti` where id='".$id."' and mob7<('".time()."'-'180') ");
if (mysql_affected_rows()==0)
{
include_once("files/zag.php");
echo"Такого монстра не существует!";
include_once"files/down.php";exit;
}
if($udata37==""){include_once("files/zag.php");echo'Вы находитесь не в окрестностях!';include_once'files/down.php';exit;}
$a = @mysql_query("select * from `okrestnosti` WHERE `id`='$id' ");
while($arr=mysql_fetch_array($a)){
$mob0=$arr['mob0'];
$mob2=$arr['mob2'];
$mob3=$arr['mob3'];
$mob5=$arr['mob5'];
$mob6=$arr['mob6'];
$mob7=$arr['mob7'];
$mob8=$arr['mob8'];
$mob9=$arr['mob9'];
$mob10=$arr['mob10'];
$mob11=$arr['mob11'];
$mob12=$arr['mob12'];
$id=$arr['id'];
$brow=htmlspecialchars(stripslashes(getenv('HTTP_USER_AGENT')));
$ip=htmlspecialchars(stripslashes($_SERVER['REMOTE_ADDR']));
$tmp = @mysql_query("SELECT * FROM `tmp_battle` WHERE `user`='$log' and `id_monstr`='$id' and `monstr_dead`='no' ");
if (mysql_affected_rows()==0)
{
mysql_query("INSERT INTO `tmp_battle` VALUES ('', '".$log."', 'no','".$mob0."','".$id."','no','0','".$ip."/".$brow."')");}
}
header ("Location: ataka.php?id=$id&startan=$startan");
include 'files/down.php';
?>