<?php
$locate = 'in_news';
$com = $db->query("SELECT * FROM `news_comms` WHERE `id` = '".intval($_GET['post_id'])."'")->fetch();
if(!empty($_GET['news_id'])) {
if($com['user_id'] == $user['id'] or $user['level'] >=5) {
$comments = new Comments('news', abs(intval($_GET['news_id'])));
$comments->delete(abs(intval($_GET['post_id'])));
} else { go('/'); }
} else { go('/'); }
?>