Empty commit

This commit is contained in:
Git 2012-04-23 08:00:43 +00:00
parent fc02b4db9b
commit 078b5553b2
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@
eb.UserID, eb.UserID,
eb.Time, eb.Time,
eb.Email, eb.Email,
eb.Comment, eb.Comment
FROM email_blacklist AS eb FROM email_blacklist AS eb
ORDER BY eb.Time DESC"); ORDER BY eb.Time DESC");
?> ?>

View File

@ -4,10 +4,11 @@
if(!is_number($GroupID) || !is_number($TorrentID)) { error(0); } if(!is_number($GroupID) || !is_number($TorrentID)) { error(0); }
$DB->query("SELECT LastReseedRequest, UserID, Time FROM torrents WHERE ID='$TorrentID'"); $DB->query("SELECT last_action, LastReseedRequest, UserID, Time FROM torrents WHERE ID='$TorrentID'");
list($LastReseedRequest, $UploaderID, $UploadedTime) = $DB->next_record(); 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(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'"); $DB->query("UPDATE torrents SET LastReseedRequest=NOW() WHERE ID='$TorrentID'");