mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
16afc03e25
commit
92416668b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user