diff --git a/sections/reports/ajax_add_notes.php b/sections/reports/ajax_add_notes.php index 9ac228d6..4c90e755 100644 --- a/sections/reports/ajax_add_notes.php +++ b/sections/reports/ajax_add_notes.php @@ -22,4 +22,4 @@ 'status' => 'success' ) ); -exit(); +die(); diff --git a/sections/reports/ajax_claim_report.php b/sections/reports/ajax_claim_report.php index 5f01ba42..806bfc0e 100644 --- a/sections/reports/ajax_claim_report.php +++ b/sections/reports/ajax_claim_report.php @@ -20,7 +20,7 @@ 'status' => 'dupe' ) ); - exit(); + die(); } else { $UserID = $LoggedUser['ID']; $DB->query("UPDATE reports SET ClaimerID = '$UserID' WHERE ID = '$ID'"); @@ -31,5 +31,5 @@ 'username' => $LoggedUser['Username'] ) ); - exit(); + die(); } \ No newline at end of file diff --git a/sections/reports/ajax_unclaim_report.php b/sections/reports/ajax_unclaim_report.php new file mode 100644 index 00000000..32c717b5 --- /dev/null +++ b/sections/reports/ajax_unclaim_report.php @@ -0,0 +1,20 @@ + 'failure' + ) + ); + die(); +} +$ID = (int)$_GET['id']; +$DB->query("UPDATE reports SET ClaimerID = '0' WHERE ID = '$ID'"); +print + json_encode( + array( + 'status' => 'success', + ) + ); +die(); diff --git a/sections/reports/index.php b/sections/reports/index.php index d03f0cc9..73a1e161 100644 --- a/sections/reports/index.php +++ b/sections/reports/index.php @@ -30,6 +30,9 @@ case 'claim': include(SERVER_ROOT.'/sections/reports/ajax_claim_report.php'); break; + case 'unclaim': + include(SERVER_ROOT.'/sections/reports/ajax_unclaim_report.php'); + break; default: include(SERVER_ROOT.'/sections/reports/reports.php'); break; diff --git a/sections/reports/reports.php b/sections/reports/reports.php index 030e4b50..192be74d 100644 --- a/sections/reports/reports.php +++ b/sections/reports/reports.php @@ -209,10 +209,12 @@
Make sure all names are spelled correctly, or try making your search less specific.
You might like (Beta): while (list($Tag)=$DB->next_record()) { ?>=$Tag?> } ?>
+ View::show_footer();die(); } @@ -859,6 +860,7 @@ function header_link($SortKey,$DefaultWay="desc") {You are requesting page =$Page?>, but the search returned only =$LastPage?> pages.