Просмотр файла modules/news/delete_comment.php

Размер файла: 422B
<?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', abs(intval($_GET['news_id'])));
$comments->delete(abs(intval($_GET['post_id'])));
} else { go('/'); }
?>