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-05-05 08:00:31 +00:00
|
|
|
$DB->query("
|
|
|
|
UPDATE reportsv2
|
|
|
|
SET Status='New'
|
|
|
|
WHERE ID=".$_GET['id']."
|
|
|
|
AND Status <> 'Resolved'");
|
|
|
|
if ($DB->affected_rows() > 0) {
|
2011-03-28 14:21:28 +00:00
|
|
|
//Win
|
|
|
|
} else {
|
2013-05-05 08:00:31 +00:00
|
|
|
echo 'You just tried to grab a resolved or non-existent report!';
|
2011-03-28 14:21:28 +00:00
|
|
|
}
|
|
|
|
?>
|