2011-03-28 14:21:28 +00:00
|
|
|
<?
|
2013-05-05 08:00:31 +00:00
|
|
|
if (!check_perms('admin_reports')) {
|
2011-03-28 14:21:28 +00:00
|
|
|
error(403);
|
|
|
|
}
|
|
|
|
|
2013-05-05 08:00:31 +00:00
|
|
|
if (!is_number($_GET['id'])) {
|
2011-03-28 14:21:28 +00:00
|
|
|
error(0);
|
|
|
|
}
|
|
|
|
|
2013-06-04 08:00:34 +00:00
|
|
|
$DB->query("
|
|
|
|
SELECT Status
|
|
|
|
FROM reportsv2
|
|
|
|
WHERE ID=".$_GET['id']);
|
2011-03-28 14:21:28 +00:00
|
|
|
list($Status) = $DB->next_record();
|
2013-05-05 08:00:31 +00:00
|
|
|
if (isset($Status)) {
|
|
|
|
$DB->query("
|
|
|
|
UPDATE reportsv2
|
|
|
|
SET Status='New', ResolverID = 0
|
|
|
|
WHERE ID=".$_GET['id']);
|
2011-03-28 14:21:28 +00:00
|
|
|
}
|
|
|
|
?>
|