Размер файла: 1.96Kb
<?php
// mod by Golem http://veplog.ru
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";
if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!="") {
if ($dostup==101 || $dostup==102 || $dostup==103){
##########################################################################
## Главная страница
##########################################################################
echo '<div class="tp">Список админов и модеров</div>';
foreach (glob(BASEDIR."local/profil/*.prof") as $filename) {
$array_allusers[] = basename($filename);
}
foreach($array_allusers as $value){
$tex = file_get_contents(BASEDIR."local/profil/$value");
$data = explode(":||:",$tex);
if($data[7]>=101 && $data[7]<=105){
$dat_user[]=$data[0];
$dat_status[]=$data[7];
}
}
asort($dat_status);
foreach($dat_status as $k=>$v){ $gg++;
echo ' '.$gg.'. <b><a href="../pages/anketa.php?uz='.$dat_user[$k].'&'.SID.'"> '.$dat_user[$k].' </a></b> ('.user_status($dat_status[$k]).') '.user_online($dat_user[$k]).'';
if ($dostup==101){
echo ' <a href="users.php?action=edit&users='.$dat_user[$k].'&'.SID.'">ред</a><br>';
}}
echo'<div class="btm">[<a href="index.php?'.SID.'">В админку</a>]<br>';
echo'[<a href="../index.php?'.SID.'">На главную</a>]</div>';
} else {header ("Location: ../index.php?isset=404&".SID);}
} else {header ("Location: ../index.php?isset=404&".SID);}
include_once"../themes/$config_themes/foot.php";
?>