mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
15 lines
248 B
PHP
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']);
|