diff --git a/sections/schedule/index.php b/sections/schedule/index.php index cc9051dd..006e7549 100644 --- a/sections/schedule/index.php +++ b/sections/schedule/index.php @@ -494,7 +494,7 @@ function next_hour() { if (count($Users) > 0) { $Subject = 'Leeching Disabled'; - $Message = 'You have downloaded more then 10 GiB while on Ratio Watch. Your leeching privileges have been disabled. Please reread the rules and refer to this guide on how to improve your ratio https://' . SSL_SITE_URL . '/wiki.php?action=article&id=110'; + $Message = 'You have downloaded more than 10 GiB while on Ratio Watch. Your leeching privileges have been disabled. Please reread the rules and refer to this guide on how to improve your ratio https://' . SSL_SITE_URL . '/wiki.php?action=article&id=110'; foreach ($Users as $TorrentPass => $UserID) { Misc::send_pm($UserID, 0, $Subject, $Message); Tracker::update_tracker('update_user', array('passkey' => $TorrentPass, 'can_leech' => '0')); @@ -769,7 +769,7 @@ function next_hour() { //------------- Disable downloading ability of users on ratio watch - +/* $UserQuery = $DB->query(" SELECT ID, torrent_pass FROM users_info AS i @@ -789,6 +789,7 @@ function next_hour() { WHERE m.ID IN(".implode(',', $UserIDs).')'); + $DB->query(" DELETE FROM users_torrent_history WHERE UserID IN (".implode(',', $UserIDs).')'); @@ -808,6 +809,8 @@ function next_hour() { Tracker::update_tracker('update_user', array('passkey' => $Passkey, 'can_leech' => '0')); } + */ + //------------- Disable inactive user accounts --------------------------// sleep(5); // Send email