mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-21 20:59:02 +00:00
Empty commit
This commit is contained in:
parent
ad360356e6
commit
8025f4d5e9
@ -966,8 +966,6 @@ function next_hour() {
|
||||
|
||||
sleep(10);
|
||||
|
||||
$i = 0;
|
||||
|
||||
$DB->query("
|
||||
SELECT
|
||||
t.ID,
|
||||
@ -984,15 +982,15 @@ function next_hour() {
|
||||
(t.last_action < '".time_minus(3600 * 24 * 28)."' AND t.last_action != 0)
|
||||
OR
|
||||
(t.Time < '".time_minus(3600 * 24 * 2)."' AND t.last_action = 0)");
|
||||
$Torrents = $DB->to_array();
|
||||
$Torrents = $DB->to_array(false, MYSQLI_NUM, false);
|
||||
echo 'Found '.count($Torrents)." inactive torrents to be deleted.\n";
|
||||
|
||||
$LogEntries = $DeleteNotes = array();
|
||||
|
||||
// Exceptions for inactivity deletion
|
||||
$InactivityExceptionsMade = array(//UserID => expiry time of exception
|
||||
|
||||
);
|
||||
$i = 0;
|
||||
foreach ($Torrents as $Torrent) {
|
||||
list($ID, $GroupID, $Name, $Format, $Encoding, $UserID, $Media, $InfoHash) = $Torrent;
|
||||
if (array_key_exists($UserID, $InactivityExceptionsMade) && (time() < $InactivityExceptionsMade[$UserID])) {
|
||||
|
Loading…
Reference in New Issue
Block a user