Файл: chat/delpost.php
Строк: 10
<?php
define('ROOT','../');
define('GCMS',true);
require_once (ROOT.'system/power.php');
if ($aut == true and $id != false) {
$sql = $db -> query("SELECT `yaid`,`room` FROM `chat_post` WHERE `id` = '".$id."' LIMIT 1");
if ($sql -> num_rows > 0) {
$ass = $sql -> fetch_assoc();
if ($ya['level']>=3) {
$db -> query("DELETE FROM `chat_post` WHERE `id` = '".$id."' LIMIT 1");
header('location: room'.$ass['room']);
} else header('location: room'.$ass['room']);
} else header('location: room'.$ass['room'].'');
} else header('location: room'.$ass['room'].'');
?>