<?php
defined('_IN_JOHNCMS') or die('Error: restricted access');
if ($rights >= 6) {
if (isset($_GET['id'])){
if (mysql_query("DELETE FROM `qchat` WHERE `id` = '" . $_GET['id'] . "'")) header('location:index.php');
}else{
echo functions::display_error('Не выбран пост');
require('../incfiles/end.php');
exit;
}
}else{ header('location:index.php');}