View file modules/news/delete_comment.php
<?php /********************************** * @package: PerfCMS * * @year: 2012 * * @author: Artas * * @link: http://perfcms.pp.ua * **********************************/ $locate = 'in_news'; if($user['level'] < 5) { go('/'); } if(!empty($_GET['news_id'])) { $comments = new Comments('news', $_GET['news_id']); $comments->delete($_GET['post_id']); } else { go('/'); } ?>