Файл: l2ps_v5/files/zagreg.php
Строк: 77
<?php
include_once"banzz/banzz.php";
include_once"files/ini.php";
include_once"files/data.php";
include_once"files/gzip.php";
include_once"files/zagindex.php";
//include_once"files/l2pirates_Antihack.php";
//echo'<div class = "up" ></div><div class = "body" ><script src="sneg.js"></script><left><br/>';
//echo"<left>";
include_once"files/themes.php";
$sql_inj = array("'", ";", "/**/", "/UNION/", "/SELECT/", "AS ", "EVAL","<?",'"',"$",'..');
foreach($sql_inj as $res)
{
if(stristr($_SERVER['QUERY_STRING'], $res)) die("SQL-inj....");
}
function _performEscape($s, $isIdent=false)
{
if (!$isIdent) {
return "'" . mysql_real_escape_string($s, $this->link) . "'";
} else {
return "`" . str_replace('`', 'ІІІ', $s) . "`";
}
}
include_once"files/opiti.php";
if($udata37==TWI){
$kkk=time()-86400;
if($udata52<=$kkk){
mysql_query("UPDATE `users` SET `udata37`='' WHERE `udata0`='$log'");
}
}
//Перевод секунд в минуты, часы, дни. Добавил 20.03.10
function sec2day($sec=NULL)
{
$days = floor($sec/86400);
$hours = floor(($sec/3600)-$days*24);
$minuts = floor(($sec-$hours*3600-$days*86400)/60);
$seconds = $sec-($minuts*60+$hours*3600+$days*86400);
if ($days!=0)$days = $days.' дн. ';
else $days = NULL;
if ($hours!=0)$hours = $hours.' ч. ';
else $hours = NULL;
if ($minuts!=0)$minuts = $minuts.' мин. ';
else $minuts = NULL;
$sectoday = $days.''.$hours.''.$minuts.''.$seconds.' сек.';
return $sectoday;
}
if($udata34=="0"){
echo "<u><a href="uslugi.php">$log</a></u> $udata9 Уровень<br>";
$cp = round(100/($udata43/$udata42));
$hp = round(100/($udata17/$udata16));
$mp = round(100/($udata30/$udata29));
echo'<div style="width:auto;margin-top:1px;">
<div style="height:20px;background:#4F4F4F;">
<div style="height:20px;padding-left:10px;float:left;font-size:11px;color:#DCD9DC;">CP '.$udata42.'/'.$udata43.'</div>
<div style="height:20px;'.$cp.'%;background:url(l2pic/logo/cp.png);"></div>
</div></div><div style="width:auto;margin-top:1px;">
<div style="height:20px;background:#4F4F4F;">
<div style="height:20px;padding-left:10px;float:left;font-size:11px;color:#DCD9DC;">HP '.$udata16.'/'.$udata17.'</div>
<div style="height:20px;width:'.$hp.'%;background:url(l2pic/logo/hp.png);"></div>
</div></div><div style="width:auto;margin-top:1px;">
<div style="height:20px;background:#4F4F4F;">
<div style="height:20px;padding-left:10px;float:left;font-size:11px;color:#DCD9DC;">MP '.$udata29.'/'.$udata30.'</div>
<div style="height:20px;width:'.$mp.'%;background:url(l2pic/logo/mp.png);"></div>
</div></div><div style="width:auto;margin-top:1px;">
<div style="height:22px;background:#4F4F4F;">
<div style="height:20px;padding-left:10px;float:left;font-size:11px;color:#DCD9DC;">EXP '.$exp.'%</div>
<div style="height:20px;width:'.$exp.'%;background:url(l2pic/logo/exp.png);"></div>
</div></div><hr>
';
}else{
}
///////////////////// Закрытие ИГРЫ //////////////////////////
$switch = @file("local/game/switch.dat");
$swi = explode("||", $switch[0]);
$switchdetail = $swi[0];
$switchdate = $swi[1];
$u = explode(".",$login);
if ($switch!==false && $log!=="Bopo6eu" && $log!=="TheEvil") {
echo "<b>Игра временно закрыта</b><br />";
echo'Причина: '.$switchdetail.'<br />Дата закрытия: '.$switchdate.'<br/><a href="exit.php">выход</a><br />';
include_once "files/down.php";
exit;}
?>