mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-14 11:26:26 +00:00
Empty commit
This commit is contained in:
parent
fc02b4db9b
commit
078b5553b2
@ -7,7 +7,7 @@
|
||||
eb.UserID,
|
||||
eb.Time,
|
||||
eb.Email,
|
||||
eb.Comment,
|
||||
eb.Comment
|
||||
FROM email_blacklist AS eb
|
||||
ORDER BY eb.Time DESC");
|
||||
?>
|
||||
|
@ -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'");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user