2011-03-28 14:21:28 +00:00
|
|
|
<?
|
|
|
|
/*
|
2013-02-22 08:00:24 +00:00
|
|
|
* This page simply assings a report to the person clicking on
|
2013-03-05 08:00:26 +00:00
|
|
|
* the Claim / Claim all button.
|
2013-02-22 08:00:24 +00:00
|
|
|
*/
|
2013-05-04 08:00:48 +00:00
|
|
|
if (!check_perms('admin_reports')) {
|
|
|
|
//error(403);
|
|
|
|
echo '403';
|
|
|
|
die();
|
2011-03-28 14:21:28 +00:00
|
|
|
}
|
|
|
|
|
2013-05-04 08:00:48 +00:00
|
|
|
if (!is_number($_GET['id'])) {
|
|
|
|
die();
|
2011-03-28 14:21:28 +00:00
|
|
|
}
|
2013-09-15 08:00:53 +00:00
|
|
|
|
|
|
|
$DB->query("
|
|
|
|
UPDATE reportsv2
|
|
|
|
SET Status = 'InProgress',
|
|
|
|
ResolverID = " . $LoggedUser['ID'] . "
|
|
|
|
WHERE ID = " . $_GET['id']);
|
|
|
|
|
2013-05-04 08:00:48 +00:00
|
|
|
if ($DB->affected_rows() == 0) {
|
2011-03-28 14:21:28 +00:00
|
|
|
echo '0';
|
|
|
|
} else {
|
|
|
|
echo '1';
|
|
|
|
}
|