Файл: besedka/del.user.php
Строк: 52
<?php
error_reporting(0);
session_name('PHP');
session_start();
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';
If (!isset($_GET['log'])) define("anybody","true");
include '../header/enter.inc.php';
include '../ban.php';
If ($_USER['admin']){
$user = ''.mysql_escape_string($_POST['user']).'';
if (empty($user)) {
echo '<div class="downsw"><b>'.$user.'Удаление всех сообщения юзера</b></div>
<form action="del.user.php" method="POST">
<input name="user" type="text" value="">
<input type="hidden" name="empty" value="1" />
<input type="submit" class="form" value="Да" />
</form>
'; include "../header/end.inc.php";
break;
} else {
;
$sql_delete = @mysql_query("DELETE FROM `".prefix."chat` WHERE `user` = '$user'");
if ($sql_delete) {
header("Location: /besedka/");
exit;
} else {
echo ' <div class="menuindex">
Произошла ошибка!
</div>';
include "../header/end.inc.php";
break;
}
}
} else {
echo '<div class="menuindex">Как же достали эти хакеры!</div>';
include "../header/end.inc.php";
break;
}
?>