Размер файла: 2.1Kb
<?
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 && !$_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"Юзер $user успешно удален!<br/><a href=\"moder_view.php\">Назад</a><br/>";}else{echo"Произошла ошибка удаления!<br/> Юзер $user не удален!<br/><a href=\"moder_view.php\">Назад</a><br/>";}
//////////////////
include"inc/foot.php"; exit;
}else{
echo"Страница не существует, или была удалена!<br/><a href=\"panel.php\">В панель</a><br/>";
include"inc/foot.php"; exit;}
?>