Размер файла: 1.21Kb
<?
list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
include '../moduls/ini.php';
session_name ('SID') ;
session_start() ;
include '../moduls/fun.php';
include '../moduls/connect.php';
include '../moduls/header.php';
//------------------------------------------------------------------------------------------
$error = 0;
if(empty($_SESSION['autorise'])) $error = 1;
if($_SESSION['autorise']!= $setup['password']) $error = 1;
if(empty($_SESSION['ipu'])) $error = 1;
if($_SESSION['ipu']!=clean($ip)) $error = 1;
if($error==1) die($setup['hackmess']);
//------------------------------------------------------------------------------------------
//
require_once "config.php";
echo '<link rel="stylesheet" type="text/css" href="../style.css">';
if(empty($act)) { echo '<div class="title">Вы уверены?</div><br>';
echo '<a href="alldel.php?act=alldel&">Да</a> | <a href="guest.php">Нет</a><br>';
include_once "foot.php"; } if($act=="alldel") {
$q=mysql_query("TRUNCATE TABLE `guest`;"); if($q) { echo 'Гостевая успешно очищена!<br><a href="guest.php">Далее</a><br>'; } else { echo "<font color=\"red\">Ошибка запроса!</font><br>"; } } ?>