Просмотр файла table/unban.php

Размер файла: 1.02Kb
<?
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">'; 
$q=mysql_query("DELETE FROM `bans` WHERE `id`='".(int)$_GET["id"]."' LIMIT 1;"); if($q) { echo 'Юзер успешно разбанен!<br><a href="guest.php">Далее</a><br>';} else { echo '<font color="red">Ошибка запроса!</font><br>'; } 
?>