File size: 1.65Kb
<?php
session_name("SID");
session_start();
include_once "../theme/index.php";
include_once "../conf.php";
include_once "../config.php";
include_once "../template/login2.php";
if (!$_SESSION[uin]=="" && !md5($_SESSION[par])=="" && md5($_SESSION[par])==$provpar && $_SESSION[uin]==$provuin)
{
if($bola==555)
{
echo'<br><center><big>Список UIN-ов пользователей</big></center><br>';
if(empty($list)){$list="1";}
$dir=opendir("../users");
$n = "0";
while(($k=readdir($dir))!==false){
if ($k=='.'||$k=='..'||$k=='index.php'||$k=='.htaccess') continue;
$n++;
}
closedir($dir);
if ($num!==(int)$num){$foo = (int) $num;
$fo = ($foo + 1);
}
else
{
$fo=$num;
}
for ($i="1"; $i<=$fo; $i++)
if ($list == "")
{
$c="0";
}
else
{
$c=($col*($list-1));
}
$dir = opendir ("../users");
while ($file = readdir ($dir))
{
if (( $file != ".") && ($file != "..") && ($file != ".htaccess") && ($file != "index.php"))
{
$file= str_replace(".log","",$file);
$nickname= "$file";
$text = @file("../users/$nickname.log");
$udata = explode(":||:",$text[0]);
$nick = trim($udata[2]);
$name = trim($udata[3]);
$la = $la + 1;
if($list=="1"){$col=round(9999999+1);}
if($la>$c-1 and $la<$c+$col){
echo'<div class="b">UIN: <a href="anketa.php?uins='.$nickname.'">'.$nickname.' ('.$nick.', '.$name.')</a><br>
<a href="delete.php?uins='.$nickname.'&'.SID.'">Удалить!</a><br></div>';
}}}
echo'<br>Всего юзеров: '.$n.'<br>';
closedir ($dir);
}else{
header("Location: ../index.php?".SID);
}
}else{
header("Location: ../index.php?".SID);
}
include_once "../theme/foot.php";
?>