<?PHP require '../System/core.php'; $config['title'] = 'Удаление комментария'; require '../System/header.php'; if(!isset($user)){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'"); if (file_exists(H.'Cache/index.cache')) { unlink(H.'Cache/index.cache'); } header('Location: /NewsKomment/'.$news['id_news'].'/'); require '../System/footer.php'; ?>