diff --git a/sections/tools/managers/eb.php b/sections/tools/managers/eb.php index 661ca9b5..116ede12 100644 --- a/sections/tools/managers/eb.php +++ b/sections/tools/managers/eb.php @@ -7,7 +7,7 @@ eb.UserID, eb.Time, eb.Email, - eb.Comment, + eb.Comment FROM email_blacklist AS eb ORDER BY eb.Time DESC"); ?> diff --git a/sections/torrents/reseed.php b/sections/torrents/reseed.php index 68e8d8c1..ef148ed4 100644 --- a/sections/torrents/reseed.php +++ b/sections/torrents/reseed.php @@ -4,10 +4,11 @@ if(!is_number($GroupID) || !is_number($TorrentID)) { error(0); } -$DB->query("SELECT LastReseedRequest, UserID, Time FROM torrents WHERE ID='$TorrentID'"); -list($LastReseedRequest, $UploaderID, $UploadedTime) = $DB->next_record(); +$DB->query("SELECT last_action, LastReseedRequest, UserID, Time FROM torrents WHERE ID='$TorrentID'"); +list($LastActive, $LastReseedRequest, $UploaderID, $UploadedTime) = $DB->next_record(); if(time()-strtotime($LastReseedRequest)<864000) { error("There was already a re-seed request for this torrent within the past 10 days."); } +if ($LastActive == '0000-00-00 00:00:00' || time() - strtotime($LastActive) < 345678) { error(403); } $DB->query("UPDATE torrents SET LastReseedRequest=NOW() WHERE ID='$TorrentID'");