Файл: DarkAge/bann.php
Строк: 40
<?
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
include_once("files/zag.php");
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
$u = explode(".",$login);
if(@file("data/moders/$log.dat")){
if(empty($prichina)){
$name=htmlspecialchars(stripslashes($name));
echo "<form action="bann.php?log=$log&pas=$pas&ip=$ip&name=$name" method="post"><small>Причина:</small><br/><input name="prichina" maxlength="999"/><br/>";
echo '<input type="submit" value="Банить"></form>';}else{
$ip=explode(".",$ip);
$ipn="$ip[0].$ip[1].$ip[2]";
$time=time();
$prichina=htmlspecialchars(stripslashes($prichina));
$prichina=str_replace("|","",$prichina);
$name=str_replace("|","",$name);
$text="$ipn||$time||$name||$prichina||Сообщение почты||";
$msg="Игрок $name забанен на 24 часа. Причина: $prichina.
$fp=fopen("data/ban.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$textrn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo"<small><a href="chat.php?log=$log&pas=$pas">$name забанен на 24 часа.</a></small><br/>";
echo"<small>- - -<br/>� <a href="main.php?log=$log&pas=$pas">Моё меню</a></small></p></card></wml>";
exit;}
}}else{echo"<small>Пароль или логин неверен!</small>";}
include_once"files/down.php";
?>