Файл: amanag/zhaloby.php
Строк: 86
<?php
session_name('im');
session_start();
$_CONF['title']='Админка';
include '../header/config.inc.php';
include '../header/function.inc.php';
include '../header/header.inc.php';
include '../header/connect.inc.php';
include '../header/click-club.class.php';
include '../header/enter.inc.php';
include '../header/hellfish.inc.php';
include '../ban.php';
If (!isset($_GET['mode']) || !ereg("^[a-z0-9_-]{1,15}$",$_GET['mode'])) $mode=false; else $mode=$_GET['mode'];
switch ($mode){
case false:
default:
If (!$_enter || !$_USER['admin']){
echo '<div class="menuindexom">Blocked access attempt</div>';
break;}
echo'<div class="menuindexom">*<a href="'.$_zapros.'mode=user">Жалобы на пользователей</a></div>';
echo'<div class="menuindexom">*<a href="'.$_zapros.'mode=url">Жалобы на площадки</a></div>';
break;
case 'url':
If (!$_enter || !$_USER['admin']){
echo '<div class="menuindexom">Blocked access attempt</div>';
break;}
echo '<div class="downsw"><b>Жалобы на площадки</b></div>';
$se = mysql_query("SELECT * FROM `".prefix."url_ban`");
$segod = mysql_num_rows($se);
if (!$segod>=1){
echo'<div class="menuindexom">BlackList Пуст</div>';
include "../header/end.inc.php";
exit;
}
while ($seg=mysql_fetch_array($se)){
$id = $seg['url_id'];
$time = $seg['date'];
$who = $seg['who'];
// Сверяем
$url = mysql_result( mysql_query('SELECT `url` FROM `'.prefix.'url` WHERE `id` = "'.$id.'"'), 0);
// Удаляем всё после слеша
$url = explode('/', $url);
$url = $url[0];
echo '<div class="menuindex">
ID: <b>'.$id.'</b><br/>
WHO: <b>'.$who.'</b><br/>
URL: <a href="/redir.php'.$_zapros.'url=http://'.$url.'"><b>'.$url.'</b></a><br/>
TIME: <b>'.date("G:i:s",$time).'</b><br/>
</div>';
}
echo'<div class="downsw"><a href="'.$_zapros.'mode=del_url"><small><font color="#339900"><b>Очистить BlackList</b></font></small></a></div>';
echo'<div class="menuindexom">Всего: '.$segod.' </div>';
break;
/////////////////////////////////////////////
case 'user':
If (!$_enter || !$_USER['admin']){
echo '<div class="menuindexom">Blocked access attempt</div>';
break;}
echo '<div class="downsw"><b>Жалобы на пользователей</b></div>';
$se = mysql_query("SELECT * FROM `".prefix."user_ban`");
$segod = mysql_num_rows($se);
if (!$segod>=1){
echo'<div class="menuindexom">BlackList Пуст</div>';
include "../header/end.inc.php";
exit;
}
while ($seg=mysql_fetch_array($se)){
$who = $seg['who'];
$to = $seg['to'];
$time = $seg['date'];
// Сверяем
$wso = mysql_result( mysql_query('SELECT `login` FROM `'.prefix.'users` WHERE `id` = "'.$who.'"'), 0);
$tos = mysql_result( mysql_query('SELECT `login` FROM `'.prefix.'users` WHERE `id` = "'.$to.'"'), 0);
echo '<div class="menuindex">
WHO: <b>'.$wso.'</b><br/>
TO: <b>'.$tos.'</b><br/>
TIME: <b>'.date("G:i:s",$time).'</b><br/>
</div>';
}
echo'<div class="downsw"><a href="'.$_zapros.'mode=del_user"><small><font color="#339900"><b>Очистить BlackList</b></font></small></a></div>';
echo'<div class="menuindexom">Всего: '.$segod.' </div>';
break;
/////////////////////////////////////////////////////
case 'del_url':
If (!$_enter || !$_USER['admin']){
echo '<div class="menuindexom">Blocked access attempt</div>';
break;}
echo '<div class="downsw"><b>Очистить BlackList URL</b></div>';
break;
case 'del_user':
If (!$_enter || !$_USER['admin']){
echo '<div class="menuindexom">Blocked access attempt</div>';
break;}
echo '<div class="downsw"><b>Очистить BlackList USER</b></div>';
break;
}
include '../header/end.inc.php';
?>