Файл: public_html/klan/chat/delpost.php
Строк: 41
<?
include_once '../../sys/inc/start.php';
include_once '../../sys/inc/compress.php';
include_once '../../sys/inc/sess.php';
include_once '../../sys/inc/home.php';
include_once '../../sys/inc/settings.php';
include_once '../../sys/inc/db_connect.php';
include_once '../../sys/inc/ipua.php';
include_once '../../sys/inc/fnc.php';
include_once '../../sys/inc/user.php';
$id = intval($_GET['id']);
$us = mysql_fetch_array(mysql_query("SELECT * FROM `clan_user` WHERE `id_user` = '$user[id]' AND `id_clan` = '$id' LIMIT 1"));
if($us['level']>=1){
mysql_query("DELETE FROM `clan_chat` WHERE `id` = '".intval($_GET['del'])."' AND `id_clan` = '$id' LIMIT 1");
header("Location: /klan/chat/index.php?".SID);
}
?>