Файл: gamele.ru/includes/locations/out.php
Строк: 62
<?php
$totems = array("0"=>array("00:00","01:59"),"1"=>array("02:00","03:59"),"2"=>array("04:00","05:59"),"3"=>array("06:00","07:59"),"4"=>array("08:00","09:59"),"5"=>array("10:00","11:59"),"6"=>array("12:00","13:59"),"7"=>array("14:00","15:59"),"8"=>array("16:00","17:59"),"9"=>array("18:00","19:59"),"10"=>array("20:00","21:59"),"11"=>array("22:00","23:59"));
$IsNap = 0;
if(date("H:i")>=$totems[$pers['thotem']][0] and date("H:i")<=$totems[$pers['thotem']][1]){
$IsNap = 1;
}
echo'<HTML>
<HEAD>
<META Http-Equiv="Content-Type" Content="text/html; charset=windows-1251">
<META Http-Equiv="Cache-Control" Content="No-Cache">
<META Http-Equiv="Pragma" Content="No-Cache">
<META Http-Equiv="Expires" Content="0">
<LINK href="/css/main.css" rel="STYLESHEET" type="text/css">
<LINK href="/css/frame.css" rel="STYLESHEET" type="text/css">
<LINK href="/css/stl.css" rel="STYLESHEET" type="text/css">
<!--[if lt IE 7]>
<LINK href="/css/iepng.css" rel="STYLESHEET" type="text/css">
<![endif]-->
<SCRIPT src="/js/signs.js"></SCRIPT>
<SCRIPT src="/js/hpmp.js"></SCRIPT>
<SCRIPT src="/js/t_v01.js"></SCRIPT>
<SCRIPT src="/js/map.js"></SCRIPT>
<SCRIPT src="/js/ajax.js"></SCRIPT>
<SCRIPT src="/js/quest.js"></SCRIPT>
<SCRIPT src="/js/nl_tooltip.js"></SCRIPT>
</HEAD>
<BODY>
<SCRIPT language="JavaScript">
var inshp = ['.InsHP().'];
var mapbt = [';
list($pers['x'], $pers['y']) = explode('_', $pers['pos']);
$pers['umen'] = (($pers['umen'])?$pers['umen']:'||||||||||||||||||||||||||||||||||||');
$um = explode("|",$pers['umen']);
foreach($um as $key=>$val){
$umt[$key] = (($val)?$val:0);
}
$WaitTime = (30-(intval($umt[26]/6.6)));
$is_cord=mysql_fetch_array(mysql_query("SELECT * FROM `nature` WHERE `x` = '".$pers['x']."' and `y` = '".$pers['y']."'"));
echo ($is_cord['quest']?'["que","Квесты","'.vCode().'",[]],':'').'["inf","Ваш персонаж","'.vCode().'",[]],["inv","Инвентарь","'.vCode().'",[]]'.($is_cord['dep']!=64?',["dep","Войти","'.vCode().'",[]]':'').($is_cord['clan_id']==$pers['clan_id']?',["dep","Войти в Замок","'.vCode().'",[]]':'').($is_cord['build']?',["bld","Строения","'.vCode().'",[]]':'').($IsNap?',["fig","Напасть","'.vCode().'",[]]':'').($is_cord['wood']?',["wood","Деревья","'.vCode().'",[]]':'').($is_cord['ogl']?',["ogl","Оглядется","'.vCode().'",[]]':'').($is_cord['fis']?',["fis","Рыбалка","'.vCode().'",[]]':'').($is_cord['dri']?',["dri","Пить","'.vCode().'",[]]':'').(accesses($pers['id'],'out')?',["editor","Редактор","'.vCode().'",[]]':'').'];
var build = ["'.$pers['login'].'",'.$pers['level'].','.$pers['sklon'].',"'.(($pers['clan_gif'] != 'chaos.gif')?$pers['clan_gif']:'none').'","'.(($pers['clan_gif'] != 'chaos.gif')?$pers['clan']:'').'","'.(($pers['clan_gif'] != 'chaos.gif')?$pers['clan_d']:'').'",0,"main","Природа","m_'.$pers['pos'].'",1,0,"'.($pers["wait2"]-time()).'",""];
var map = [['.$pers['x'].','.$pers['y'].','.$WaitTime.',"';
if(date("H")<7 or date("H")>20){
echo'night';
}else{
echo'day';
}
echo'",[';
if($pers['wait']>time()){
$from=explode("_",$_SESSION['nature_from']);
echo'0,'.time().','.($pers['wait']-$WaitTime).','.$pers['wait'].','.$from['0'].','.$from['1'];
}
echo'],""],[';
$query_nature = mysql_query("SELECT `x`,`y` FROM `nature` WHERE `x`>='".($pers['x']-1)."' and `x`<='".($pers['x']+1)."' and `y`>='".($pers['y']-1)."' and `y`<='".($pers['y']+1)."'");
$pnature = '';
while($nature = mysql_fetch_array($query_nature)){
if($pers['x']!=$nature['x'] or $pers['y']!=$nature['y']){
$pnature .= '['.$nature['x'].','.$nature['y'].',"'.vCode().'"],';
}
}
echo substr($pnature,0,strlen($pnature)-1);
echo']];
view_map();
</SCRIPT>
</BODY>
</HTML>';
?>