From e7537103feb14860d204d6c7c4712c0f6222ac2c Mon Sep 17 00:00:00 2001 From: Git Date: Wed, 12 Dec 2012 08:00:17 +0000 Subject: [PATCH] Empty commit --- sections/reports/ajax_add_notes.php | 2 +- sections/reports/ajax_claim_report.php | 4 ++-- sections/reports/ajax_unclaim_report.php | 20 +++++++++++++++++++ sections/reports/index.php | 3 +++ sections/reports/reports.php | 8 +++++--- sections/torrents/browse2.php | 2 ++ static/functions/reports.js | 25 +++++++++++++++++------- 7 files changed, 51 insertions(+), 13 deletions(-) create mode 100644 sections/reports/ajax_unclaim_report.php 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 @@ - + + Claimed by [Unclaim] + Claimed by - Claim + Claim    Toggle Notes @@ -231,7 +233,7 @@ - + )" name="submit" value="Resolve"/> diff --git a/sections/torrents/browse2.php b/sections/torrents/browse2.php index 98830895..6fd4e0da 100644 --- a/sections/torrents/browse2.php +++ b/sections/torrents/browse2.php @@ -846,6 +846,7 @@ function header_link($SortKey,$DefaultWay="desc") {

Make sure all names are spelled correctly, or try making your search less specific.

You might like (Beta): next_record()) { ?>

+ You are requesting page , but the search returned only pages.

+ Claim'; + } + }); +} + +function resolve(id, claimer) { + if (!claimer) { + if ($('#claimed_' + id).raw()) { + var answer = confirm("This is a claimed report, are you sure you want to resolve it?"); + if (answer) + return true; + else + return false; + } } return true; }