View file darkworld/users.php

File size: 2.82Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
header("Content-type:text/vnd.wap.wml");
include_once("files/antixak.php");
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=\"LINEAGE II\">";
echo "<p align=\"left\">";

$dir = opendir ("data/reg"); 
echo "<b><small>&#x421;&#x43F;&#x438;&#x441;&#x43E;&#x43A; &#x43F;&#x43E;&#x43B;&#x44C;&#x437;&#x43E;&#x432;&#x430;&#x442;&#x435;&#x43B;&#x435;&#x439;</small></b><br/><br/>";

////////////////////////////////////////////////////////

$col="10";
$mmm=$col;

//////////////////////////////////////////////////////////////////////////////////////
if(empty($go)){$go="1";}
$dir=opendir("data/reg"); 
$n = "0";
while(($k=readdir($dir))!==false){ 
if ($k=='.'||$k=='..') continue; 
$n++;

}
closedir($dir);
////////////////////
$num=($n/$col); 
if ($num!==(int)$num){$foo = (int) $num;

$fo = ($foo + 1);}   else  {$fo=$num;}

for ($i="1"; $i<=$fo; $i++) 

if ($go == "") {$c="0";}   else     {$c=($col*($go-1));}
///////////////////////


 $dir = opendir ("data/reg"); 
   while ($file = readdir ($dir)) 
 {
    if (( $file != ".") && ($file != ".."))
    { $file= str_replace(".dat","",$file);

$file2= "$file";
   


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

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


    $la = $la + 1;
if($go=="1"){$col=round($mmm+1);}
if($la>$c-1 and $la<$c+$col){


if ($mode == "1"){$ee = strtr($e1,$tran);}else{$ee = $e1;}
$laa = $la + 1; 
echo "<small>$file [&#x423;&#x440;&#x43E;&#x432;&#x435;&#x43D;&#x44C; - $hp]</small><br/>";
 }}
}
closedir ($dir);

  if ($go == "") {$c="0";}   else{$c=($col*($go-1));}
$lis = $go + 1;
$lis1 = $go - 1;
echo"<br/>";
if ($lis1 < "1") {} else{print "<small><a href=\"users.php?go=$lis1\">&#x41D;&#x430;&#x437;&#x430;&#x434;</a> | </small>";}
	        
	        
if ($lis == "$i")  {} else { print "<small><a href=\"users.php?go=$lis\">&#x412;&#x43F;&#x435;&#x440;&#x435;&#x434;</a></small>";}

echo"<small><br/><br/>&#x41F;&#x435;&#x440;&#x435;&#x439;&#x442;&#x438; &#x43A;: </small><input name=\"go\"/> <small>&#x441;&#x442;&#x440;&#x430;&#x43D;&#x438;&#x446;&#x435;.</small><br/>";

echo"<small><anchor>&#x41F;&#x435;&#x440;&#x435;&#x439;&#x442;&#x438;
<go href=\"users.php?$random\" method=\"get\">
<postfield name=\"go\" value=\"$(go)\"/>
</go>
</anchor></small><br/>";

echo"<small>&#x412;&#x441;&#x435;&#x433;&#x43E; &#x438;&#x433;&#x440;&#x43E;&#x43A;&#x43E;&#x432;: $n.</small>";

  
////////////////////////////////////
require_once"files/down.php";
////////////////////////////////////

?>