From 873044dae6b26fc8a29b61c9c2da635ea2566133 Mon Sep 17 00:00:00 2001 From: "What.CD" Date: Thu, 2 Jun 2011 08:00:04 +0000 Subject: [PATCH] Wiping sandbox changle edit tag Include link to request in unfill PMs --- sections/requests/takefill.php | 3 +-- sections/requests/takeunfill.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sections/requests/takefill.php b/sections/requests/takefill.php index 01477828..c4e617ae 100644 --- a/sections/requests/takefill.php +++ b/sections/requests/takefill.php @@ -52,8 +52,8 @@ WHERE t.ID = ".$TorrentID." LIMIT 1"); + if($DB->record_count() < 1) { - //No such torrent error(404); } list($UploaderID, $UploadTime, $TorrentReleaseType, $Bitrate, $Format, $Media, $HasLog, $HasCue, $LogScore, $TorrentCategoryID, $TorrentCatalogueNumber) = $DB->next_record(); @@ -94,7 +94,6 @@ if(!empty($OldTorrentID)) { $Err = "This request has already been filled"; } - if($RequestCategoryID != 0 && $TorrentCategoryID != $RequestCategoryID) { $Err = "This torrent is of a different category than the request"; } diff --git a/sections/requests/takeunfill.php b/sections/requests/takeunfill.php index a7461b53..1eaf75d2 100644 --- a/sections/requests/takeunfill.php +++ b/sections/requests/takeunfill.php @@ -49,12 +49,12 @@ } else { $DB->query("UPDATE users_main SET Uploaded = Uploaded - ".$RequestVotes['TotalBounty']." WHERE ID = ".$FillerID); } -send_pm($FillerID, 0, db_string("A request you filled has been unfilled"), db_string("The request '".$FullName."' was unfilled by [url=http://".NONSSL_SITE_URL."/user.php?id=".$LoggedUser['ID']."]".$LoggedUser['Username']."[/url] for the reason: ".$_POST['reason'])); +send_pm($FillerID, 0, db_string("A request you filled has been unfilled"), db_string("The request '[url=http://".NONSSL_SITE_URL."/requests.php?action=view&id=".$RequestID."]".$FullName."[/url]' was unfilled by [url=http://".NONSSL_SITE_URL."/user.php?id=".$LoggedUser['ID']."]".$LoggedUser['Username']."[/url] for the reason: ".$_POST['reason'])); $Cache->delete_value('user_stats_'.$FillerID); if($UserID != $LoggedUser['ID']) { - send_pm($UserID, 0, db_string("A request you created has been unfilled"), db_string("The request '".$FullName."' was unfilled by [url=http://".NONSSL_SITE_URL."/user.php?id=".$LoggedUser['ID']."]".$LoggedUser['Username']."[/url] for the reason: ".$_POST['reason'])); + send_pm($UserID, 0, db_string("A request you created has been unfilled"), db_string("The request '[url=http://".NONSSL_SITE_URL."/requests.php?action=view&id=".$RequestID."]".$FullName."[/url]' was unfilled by [url=http://".NONSSL_SITE_URL."/user.php?id=".$LoggedUser['ID']."]".$LoggedUser['Username']."[/url] for the reason: ".$_POST['reason'])); } $DB->query("SELECT ID, UserID