Вход Регистрация
Файл: istok.php
Строк: 29
<?
define
('PROTECTOR'1);

$headmod 'istok';//фикс. места

$textl='Хижина Лекаря';
include(
'files/path.php');
include(
$path.'files/db.php');
include(
$path.'files/auth.php');
include(
$path.'files/func.php');
going();
zasad();
ryd();
place_okr();
place_zamok();
place_tower();
include(
$path.'files/core.php');
include(
$path.'files/head.php');
include(
$path.'files/zag.php');

if(
$mestouser[x]!='999' or $mestouser[y]!='1001'){echo"Вы не находитесь на нужной локации..."; include('/files/down.php'); exit;}

echo 
"
<div class='battle_result'>
          Источник    </div>
          <div class='win'></div>
          <div class='clear'></div>"
;

$rand=rand(1000,9999);

if(
$udata[lvl]>10){
echo
'К источнику могут подходить только молодые воины до 10 уровня!';
include(
$path.'files/down.php');
exit;
}
if(
$udata[hp]>=$udata[hpall]){
echo
'Вы полностью здоровы!</div>';
include(
$path.'files/down.php');
exit;
}
if(empty(
$_SESSION[regen])){
$_SESSION[regen]=5;
echo
"<a href="istok.php?log=$log&amp;pas=$pas&amp;r=$rand">Лечиться</a> (+5)</div>";
}else{
$udata[hp]=$udata[hp]+$_SESSION[regen];
if(
$udata[hp]>$udata[hpall]){$udata[hp]=$udata[hpall];}
mysql_query("UPDATE users SET hp = '$udata[hp]' WHERE usr = '$log'");
$_SESSION[regen]++;
echo
"<a href="istok.php?log=$log&amp;pas=$pas&amp;r=$rand">Лечиться</a> (+$_SESSION[regen]) </div>";
}
////////////////////////

include($path.'files/down.php');
?>
Онлайн: 0
Реклама