File size: 1.12Kb
<?php
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="/news/comm.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 `news_comment` WHERE `user` = '$user'");
if ($sql_delete) {
header("Location: /news/");
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;
}
?>