Files
ops-Gazelle/sections/comments/take_delete.php
T
2016-12-19 22:55:12 -05:00

15 lines
248 B
PHP

<?
authorize();
// Quick SQL injection check
if (!$_GET['postid'] || !is_number($_GET['postid'])) {
error(0);
}
// Make sure they are moderators
if (!check_perms('site_moderate_forums')) {
error(403);
}
Comments::delete((int)$_GET['postid']);