Просмотр файла darkworld/vesh.php

Размер файла: 2.25Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include_once("files/antixak.php");
header("Content-type:text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">";
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>";
echo "<card id=\"index\" title=\"&#x41F;&#x435;&#x440;&#x441;&#x43E;&#x43D;&#x430;&#x436;\">";
echo "<p align=\"left\">";

$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)!=="") {
include_once"files/up.php";
 $dir = opendir ("data/vesh"); 
   while ($file = readdir ($dir)) 
 {
    if (( $file != ".") && ($file != ".."))
    { $file= str_replace(".dat","",$file);

$file2= "$file";
   
$text = @file("data/vesh/$file2.dat"); 

$udat = explode(":||:",$text[0]);
$hp=trim($udat[0]);

$file2=str_replace("HP","&#x411;&#x443;&#x442;&#x44B;&#x43B;&#x435;&#x43A; &#x441; &#x432;&#x43E;&#x441;&#x441;&#x442;&#x430;&#x43D;&#x43E;&#x432;&#x43B;&#x435;&#x43D;&#x438;&#x435;&#x43C; HP", $file2);
$file2=str_replace("soski","&#x423;&#x432;&#x435;&#x43B;&#x438;&#x447;&#x435;&#x43D;&#x438;&#x435; &#x430;&#x442;&#x430;&#x43A;&#x438; &#x432; &#x434;&#x432;&#x430; &#x440;&#x430;&#x437;&#x430;", $file2);
$file2=str_replace("MP","&#x411;&#x443;&#x442;&#x44B;&#x43B;&#x435;&#x43A; &#x441; &#x432;&#x43E;&#x441;&#x441;&#x442;&#x430;&#x43D;&#x43E;&#x432;&#x43B;&#x435;&#x43D;&#x438;&#x435;&#x43C; MP", $file2);


echo "<small><a href=\"byvesh.php?log=$log&amp;pas=$pas&amp;vesh=$file&amp;gorod=$gorod&amp;tip=vesh\">$file2</a> [$udat[1] &#x430;&#x434;&#x435;&#x43D;]</small><br/>";
 }
}
closedir ($dir);






}else{echo"<small>&#x41F;&#x430;&#x440;&#x43E;&#x43B;&#x44C; &#x438;&#x43B;&#x438; &#x43B;&#x43E;&#x433;&#x438;&#x43D; &#x43D;&#x435;&#x432;&#x435;&#x440;&#x435;&#x43D;!</small>";}

include_once"files/down.php";
?>