View file besedka/del.chat.php

File size: 1Kb
<?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 (!$_enter || !$_USER['admin']){
echo 'Хакер это опять ты?';

break;
}
If (!isset($_GET['del'])){
echo '<div class="menuindexom"><font color="red">Вы действительно хотите очистить чат?</font></div>

<div class="menuindexom"><a href="/besedka">[нeт]</a> | <a href="'.$_zapros.'mode=admin&amp;del=del">[дa]</a></div>';
include "../header/end.inc.php";

break;
}
//yдaляeм
$result=mysql_query("DELETE FROM `".prefix."chat`");
If (!$result){
echo 'Oшибкa зaпpoca к бд...';
break;
}
echo '<div class="menuindexom">Чат успешно очищен..!</div>';
echo'<div class="menuindexom">&#187; <a href="/besedka">Беседка</a></div>';
include "../header/end.inc.php";
break;

?>