File size: 3.02Kb
<?php
#-----------------------------------------------------#
# ********* WAP-MOTORS ********* #
# Made by : VANTUZ #
# E-mail : [email protected] #
# Site : http://pizdec.ru #
# WAP-Site : http://visavi.net #
# ICQ : 36-44-66 #
# Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#
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 || $dostup==105){
##########################################################################
## Главная страница
##########################################################################
if(!isset($action)){
echo '<img src="../images/img/partners.gif" alt=""> <b>Список админов и модеров</b><br><br>';
$dir = opendir ("../local/profil");
while ($file = readdir ($dir)) {
if (ereg (".prof$", $file)) {
$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = file("../local/profil/$a[$i]");
$data = explode(":||:",$tex[0]);
if($data[7]>=101 && $data[7]<=105){
$a[$i]=str_replace(".prof","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[7];
}}
asort($dat_status);
foreach($dat_status as $k=>$v){
$gg++;
$statwho='<font color="red">[Off]</font>';
$sublines=file("../local/online.dat");
$subcount=count($sublines);
for ($b=0; $b<$subcount; $b++) {
$dt=explode("#",$sublines[$b]); if ($dat_user[$k]==$dt[2]) {
$statwho='<font color="#00FF00">[On]</font>';
}}
echo '<img src="../images/img/chat.gif" alt=""> '.$gg.'. <b><a href="../pages/anketa.php?uz='.$dat_user[$k].'&'.SID.'"> '.$dat_user[$k].' </a></b> ('.user_status($dat_status[$k]).') '.$statwho.'<br>';
if ($dostup==101){
echo '<img src="../images/img/edit.gif" alt=""> <a href="users.php?action=edit&users='.$dat_user[$k].'&'.SID.'">Изменить</a><hr>';
}}
}
echo'<br><img src="../images/img/panel.gif" alt=""> <a href="index.php?'.SID.'">В админку</a><br>';
echo'<img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a><br>';
} else {header ("Location: ../index.php?error&".SID);}
} else {header ("Location: ../index.php?error&".SID);}
include_once"../themes/$config_themes/foot.php";
?>