Файл: public_html/modules/admin/news_comment_delete.php
Строк: 16
<?PHP
include_once($_SERVER["DOCUMENT_ROOT"]."/style/head.php");
echo'<title>Удаление комментария</title>';
if(!isset($admin)){header('Location: /');}
if(!isset($_GET['id'])){header('Localhost: /');}
$id = num($_GET['id']);
$news = mysql_fetch_array(mysql_query("SELECT * FROM `news_comment` WHERE `id` = '$id'"));
mysql_query("DELETE FROM `news_comment` WHERE `id` = '$id'");
header('Location: /KommNews/'.$news['id_news'].'/');
include_once($_SERVER["DOCUMENT_ROOT"]."/style/foot.php");
?>