mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 19:06:27 +00:00
21 lines
338 B
PHP
21 lines
338 B
PHP
<?php
|
|
|
|
if (!check_perms('site_moderate_forums') || empty($_GET['id']) || empty($_GET['remove'])) {
|
|
print
|
|
json_encode(
|
|
array(
|
|
'status' => 'failure'
|
|
)
|
|
);
|
|
die();
|
|
}
|
|
$ID = (int)$_GET['id'];
|
|
$DB->query("UPDATE reports SET ClaimerID = '0' WHERE ID = '$ID'");
|
|
print
|
|
json_encode(
|
|
array(
|
|
'status' => 'success',
|
|
)
|
|
);
|
|
die();
|