Просмотр файла moder_del.php

Размер файла: 2.09Kb
<?
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']){
//////////////////
$query =@mysql_query("delete from user where login='$user'");
$k =@mysql_query("delete from linkbase where activater='$user'");
@mysql_query("delete from pred where login='$user'");
if($query && $k){ print"&#x042E;&#x0437;&#x0435;&#x0440; $user &#x0443;&#x0441;&#x043F;&#x0435;&#x0448;&#x043D;&#x043E; &#x0443;&#x0434;&#x0430;&#x043B;&#x0435;&#x043D;!<br/><a href=\"moder_view.php\">&#x041D;&#x0430;&#x0437;&#x0430;&#x0434;</a><br/>";}else{echo"&#x041F;&#x0440;&#x043E;&#x0438;&#x0437;&#x043E;&#x0448;&#x043B;&#x0430; &#x043E;&#x0448;&#x0438;&#x0431;&#x043A;&#x0430; &#x0443;&#x0434;&#x0430;&#x043B;&#x0435;&#x043D;&#x0438;&#x044F;!<br/> &#x042E;&#x0437;&#x0435;&#x0440; $user &#x043D;&#x0435; &#x0443;&#x0434;&#x0430;&#x043B;&#x0435;&#x043D;!<br/><a href=\"moder_view.php\">&#x041D;&#x0430;&#x0437;&#x0430;&#x0434;</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\">&#x0412; &#x043F;&#x0430;&#x043D;&#x0435;&#x043B;&#x044C;</a><br/>";
echo "<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>"; exit;}
?>