Gazelle/sections/reportsv2/ajax_giveback_report.php

22 lines
332 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
2013-05-05 08:00:31 +00:00
if (!check_perms('admin_reports')) {
2013-10-10 08:01:46 +00:00
die('403');
2011-03-28 14:21:28 +00:00
}
2013-05-05 08:00:31 +00:00
if (!is_number($_GET['id'])) {
2013-10-10 08:01:46 +00:00
die();
2011-03-28 14:21:28 +00:00
}
2013-06-04 08:00:34 +00:00
$DB->query("
SELECT Status
FROM reportsv2
2013-07-17 08:00:52 +00:00
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
2013-07-17 08:00:52 +00:00
SET Status = 'New', ResolverID = 0
WHERE ID = ".$_GET['id']);
2011-03-28 14:21:28 +00:00
}
?>