<?php
session_name('im');
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';
include '../header/enter.inc.php';
include '../ban.php';
If ($_USER['admin']){
$del = intval($_POST['del']);
if (!empty($del)) {
//yдaляeм
mysql_query("DELETE FROM `".prefix."chat`") or die ('error') ;
mysql_query("OPTIMIZE TABLE `".prefix."chat`") or die ('error') ;
mysql_query("INSERT into `cclub_system_chat` VALUES ('','Система','<b>".$_USER['login']."</b>, Очистил беседку.','".time()."') ");
echo '<div class="menuindexom">Bce cooбщeния yдaлeны!</div>';
include '../header/end.inc.php';
break;
}else{
echo '<div class="downsw"><b>Очистить беседку ?</b></div>
<form action="alldel.php" method="POST">
<input type="hidden" name="del" value="1" />
<input type="submit" class="form" value="Да" /> <a href="/besedka/"><input type="button" class="form" value="Нет" /></a>
</form>';
include "../header/end.inc.php";
break;
}
}else{
echo '<div class="menuindex">Как же достали эти хакеры!</div>';
include "../header/end.inc.php";
break;
}
?>