Gazelle/sections/reports/ajax_unclaim_report.php

21 lines
341 B
PHP
Raw Permalink Normal View History

2012-12-12 08:00:17 +00:00
<?php
2013-07-01 08:01:00 +00:00
if (!check_perms('site_moderate_forums') || empty($_POST['id']) || empty($_POST['remove'])) {
2012-12-12 08:00:17 +00:00
print
json_encode(
array(
'status' => 'failure'
)
);
die();
}
2013-07-01 08:01:00 +00:00
$ID = (int)$_POST['id'];
2012-12-12 08:00:17 +00:00
$DB->query("UPDATE reports SET ClaimerID = '0' WHERE ID = '$ID'");
print
json_encode(
array(
'status' => 'success',
)
);
die();