Размер файла: 1.84Kb
<?
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 ($_SESSION['login'])==$moder2 OR ($_SESSION['login'])==$moder3 OR ($_SESSION['login'])==$moder4 && !$_SESSION['login']=="" && !($_SESSION['password'])=="" && ($_SESSION['password'])==$data['pass']) {
$b = mysql_query("select * from `narush` where name='$user';");
$po=mysql_num_rows($b);
if($po>0){
$row = mysql_fetch_array($b);
@mysql_query("insert into `ban` values(0,'$user','$row[link]','$row[ip]');");
echo"$user с ip-адресом $row[ip] успешно добавлен в бан-лист!<br/><a href=\"moder.php\">Назад</a><br/>";
} else {
echo"Ошибка бана! Не определен ip этого юзера!<br/><a href=\"moder.php\">Назад</a><br/>"; }
////////////////////////////
echo "<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>"; exit;
} else {
echo"<b>ИДИ НА ХУЙ!</b><br/><a href=\"panel.php\">В панель</a><br/>";
echo "<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>"; exit;}
?>