Вход Регистрация
Файл: DarkAge/elitgame.php
Строк: 37
<?
Error_Reporting
(E_ALL & ~E_NOTICE);
include_once(
"files/antixak.php");
include_once(
"files/zag.php");
$log htmlspecialchars(stripslashes($log));
$pas htmlspecialchars(stripslashes($pas));
/////////////////////////////////////////////////////
$text = @file("data/reg/$log.dat"); 
if (
$text!=""){
$udata explode(":||:",$text[0]);
$login=trim($udata[0]);
$password=trim($udata[1]);}
////////////////////////////////////////////////////////
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
#################################################
#################################################
echo'<div id="menu6">';
echo
'<b>Администрация</b><br />';
echo
'</div>';
$filea=@file("data/admin.dat");
$totala=count($filea);
for(
$i=0$i<$totala$i++){
$dataa=explode("|",$filea[$i]);
echo
'&bull;&nbsp;<a href="search.php?log='.$log.'&amp;pas='.$pas.'&amp;nick='.$dataa[0].'&amp;go=go">'.$dataa[0].'</a>';
if(!@
file("data/other/$dataa[0].dat")){
echo
' <font color="red">Off</font><br />';}else{
$text = @file("data/other/$dataa[0].dat");
$data explode("||",$text[0]);
$time=time()-150;
if(
$data[0]>=$time){
echo
' <font color="lime">On</font><br />';}else{
echo
' <font color="red">Off</font><br />';
}}
}
#################################################
#################################################
echo'<div id="menu6">';
echo
'<b>Модерация</b><br /></div>';
$dir opendir ("data/mod"); 
while (
$file readdir ($dir)) 
{
if (( 
$file != ".") and ($file != ".."))
{
$id=str_replace(".dat","",$file);
$text = @file("data/mod/$file"); 
$data explode("||",$text[0]);
if ((
$file!=="SHiFT.GM.dat") && ($file!=="WanteD.GM.dat")){
echo
'&bull;&nbsp;<a href="search.php?log='.$log.'&amp;pas='.$pas.'&amp;nick='.$id.'&amp;go=go">'.$id.'</a>';
if(!@
file("data/other/$id.dat")){
echo
' <font color="red">Off</font><br />';}else{
$text = @file("data/other/$id.dat");
$data explode("||",$text[0]);
$time=time()-150;
if(
$data[0]>=$time){
echo
' <font color="lime">On</font><br />';}else{
echo
' <font color="red">Off</font><br />';
}}
}}}
}else{echo
"Пароль или логин неверен!";}
include_once
"files/down.php";
?>
Онлайн: 1
Реклама