Файл: users.php
Строк: 41
<?php
include 'mysql.php';
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
include 'include/ini.php';
$_title = 'Linewap2';
include 'include/sesi.php';
include 'include/header.php';
if (isset($user)) {
$dir = opendir ("MySql/base123/reg");
echo "<b><small>Список пользователей</small></b><br/><br/>";
////////////////////////////////////////////////////////
$col="10";
$mmm=$col;
//////////////////////////////////////////////////////////////////////////////////////
if(empty($go)){$go="1";}
$dir=opendir("MySql/base123/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 ("MySql/base123/reg");
while ($file = readdir ($dir))
{
if (( $file != ".") && ($file != ".."))
{ $file= str_replace(".dat","",$file);
$file2= "$file";
$text = @file("MySql/base123/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 [Уровень - $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&$sd">Назад</a> | </small>";}
if ($lis == "$i") {} else { print "<small><a href="users.php?go=$lis&$sd">Вперед</a></small>";}
echo "<form action="users.php?$random&$sd" method="get">";
echo "<small><br/><br/>Перейти к: </small><input name="go"/> <small>странице.</small><br/>";
echo '<input type="submit" value="Перейти" /></form>';
echo"<small>Всего игроков: $n.</small>";
}else{echo"Пароль или логин неверен";}
////////////////////////////////////
require_once"include/down.php";
////////////////////////////////////
?>