Просмотр файла click_club/moder_ban_list.php

Размер файла: 2.07Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);
extract($HTTP_SESSION_VARS);
include "inc/conf_db.php";
include"inc/conf.php";
include"inc/head.php";
//////////////////
session_name("ID");
session_start();
/////////////////
$login=$_SESSION['login'];
$password=$_SESSION['password'];
//////////////////
$q = mysql_query("select * from `user` where  login='$login';");
$data = mysql_fetch_array($q);
if(($_SESSION['login'])==$moder OR $moder2  && !$_SESSION['login']=="" && !($_SESSION['password'])=="" &&  ($_SESSION['password'])==$data['pass']){
//////////////////
echo"<p align=\"left\">";
//////////////////
$result = mysql_query("SELECT * FROM `user` ");
$number = MYSQL_NUMROWS($result);
//////////////////
if($number==0){echo"&#x041D;&#x0435;&#x0442; &#x0437;&#x0430;&#x0440;&#x0435;&#x0433;&#x0438;&#x0441;&#x0442;&#x0440;&#x0438;&#x0440;&#x043E;&#x0432;&#x0430;&#x043D;&#x043D;&#x044B;&#x0445; &#x043F;&#x043E;&#x043B;&#x044C;&#x0437;&#x043E;&#x0432;&#x0430;&#x0442;&#x0435;&#x043B;&#x0435;&#x0439;.";}
if($number > 0){
while ($row = mysql_fetch_array($result)) {
$z=@mysql_query("select * from  `ban` where name='$row[login]'");
$zu=mysql_num_rows($z);
if($zu>0){
$aip = mysql_fetch_array($z);
/////////////////
echo"$row[login]($aip[ip])<a href=\"moder_unban.php?user=$row[login]\">[UNBAN]</a><br/>";
}} }else{
echo"Бан-лист пуст!";}
echo"</p>";
//////////////////
include"inc/foot.php"; exit;
}else{
echo"&#x0421;&#x0442;&#x0440;&#x0430;&#x043D;&#x0438;&#x0446;&#x0430; &#x043D;&#x0435; &#x0441;&#x0443;&#x0449;&#x0435;&#x0441;&#x0442;&#x0432;&#x0443;&#x0435;&#x0442;, &#x0438;&#x043B;&#x0438; &#x0431;&#x044B;&#x043B;&#x0430; &#x0443;&#x0434;&#x0430;&#x043B;&#x0435;&#x043D;&#x0430;!<br/><a href=\"panel.php\">&#x0412; &#x043F;&#x0430;&#x043D;&#x0435;&#x043B;&#x044C;</a><br/>";
include"inc/foot.php"; exit;}
?>