mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-19 04:31:36 +00:00
Empty commit
This commit is contained in:
parent
23684501b2
commit
1d1ca10600
@ -3,7 +3,7 @@
|
|||||||
$music_extensions = array("mp3","flac","mp4","m4a","m3u","m4b","pls","m3u8","log","txt",
|
$music_extensions = array("mp3","flac","mp4","m4a","m3u","m4b","pls","m3u8","log","txt",
|
||||||
"cue","jpg","jpeg","png","gif","dts","ac3","nfo",
|
"cue","jpg","jpeg","png","gif","dts","ac3","nfo",
|
||||||
"sfv","md5","accurip","ffp","pdf", "mobi", "epub", "htm", "html", "lit",
|
"sfv","md5","accurip","ffp","pdf", "mobi", "epub", "htm", "html", "lit",
|
||||||
"chm", "rtf", "doc", "djv", "djvu");
|
"chm", "rtf", "doc", "djv", "djvu", "azw3");
|
||||||
|
|
||||||
$comics_extensions = array("cbr", "cbz", "pdf", "jpg","jpeg","png","gif");
|
$comics_extensions = array("cbr", "cbz", "pdf", "jpg","jpeg","png","gif");
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ function next_hour() {
|
|||||||
$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://what.cd/wiki.php?action=article&id=110';
|
$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://what.cd/wiki.php?action=article&id=110';
|
||||||
foreach($UserIDs as $UserID) {
|
foreach($UserIDs as $UserID) {
|
||||||
Misc::send_pm($UserID,0,db_string($Subject),db_string($Message));
|
Misc::send_pm($UserID,0,db_string($Subject),db_string($Message));
|
||||||
send_irc("PRIVMSG #reports : !leechdisabled Downloaded 10 GB+ on Ratio Watch. https://what.cd/user.php?id=$UserID");
|
send_irc("PRIVMSG #reports : !leechdisabled Downloaded 10 GB+ on Ratio Watch. https://".NONSSL_SITE_URL."/user.php?id=$UserID");
|
||||||
}
|
}
|
||||||
|
|
||||||
$DB->query("UPDATE users_info AS i JOIN users_main AS m ON m.ID=i.UserID
|
$DB->query("UPDATE users_info AS i JOIN users_main AS m ON m.ID=i.UserID
|
||||||
@ -462,7 +462,7 @@ function next_hour() {
|
|||||||
Tracker::update_tracker('update_user', array('passkey' => $Passkey, 'can_leech' => '1'));
|
Tracker::update_tracker('update_user', array('passkey' => $Passkey, 'can_leech' => '1'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
// Put user on ratio watch if he doesn't meet the standards
|
// Put user on ratio watch if he doesn't meet the standards
|
||||||
sleep(10);
|
sleep(10);
|
||||||
$DB->query("SELECT m.ID, m.Downloaded FROM users_info AS i JOIN users_main AS m ON m.ID=i.UserID
|
$DB->query("SELECT m.ID, m.Downloaded FROM users_info AS i JOIN users_main AS m ON m.ID=i.UserID
|
||||||
@ -487,7 +487,7 @@ function next_hour() {
|
|||||||
Misc::send_pm($UserID, 0, db_string("You have been put on Ratio Watch"), db_string("This happens when your ratio falls below the requirements we have outlined in the rules located [url=http://".NONSSL_SITE_URL."/rules.php?p=ratio]here[/url].\n For information about ratio watch, click the link above."), '');
|
Misc::send_pm($UserID, 0, db_string("You have been put on Ratio Watch"), db_string("This happens when your ratio falls below the requirements we have outlined in the rules located [url=http://".NONSSL_SITE_URL."/rules.php?p=ratio]here[/url].\n For information about ratio watch, click the link above."), '');
|
||||||
echo "Ratio watch on: $UserID\n";
|
echo "Ratio watch on: $UserID\n";
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
sleep(5);
|
sleep(5);
|
||||||
|
|
||||||
//------------- Rescore 0.95 logs of disabled users
|
//------------- Rescore 0.95 logs of disabled users
|
||||||
@ -504,7 +504,7 @@ function next_hour() {
|
|||||||
sleep(5);
|
sleep(5);
|
||||||
|
|
||||||
//------------- Disable downloading ability of users on ratio watch
|
//------------- Disable downloading ability of users on ratio watch
|
||||||
/*
|
|
||||||
|
|
||||||
$UserQuery = $DB->query("SELECT ID, torrent_pass FROM users_info AS i JOIN users_main AS m ON m.ID=i.UserID
|
$UserQuery = $DB->query("SELECT ID, torrent_pass FROM users_info AS i JOIN users_main AS m ON m.ID=i.UserID
|
||||||
WHERE i.RatioWatchEnds!='0000-00-00 00:00:00'
|
WHERE i.RatioWatchEnds!='0000-00-00 00:00:00'
|
||||||
@ -539,7 +539,6 @@ function next_hour() {
|
|||||||
foreach($Passkeys as $Passkey) {
|
foreach($Passkeys as $Passkey) {
|
||||||
Tracker::update_tracker('update_user', array('passkey' => $Passkey, 'can_leech' => '0'));
|
Tracker::update_tracker('update_user', array('passkey' => $Passkey, 'can_leech' => '0'));
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
//------------- Disable inactive user accounts --------------------------//
|
//------------- Disable inactive user accounts --------------------------//
|
||||||
sleep(5);
|
sleep(5);
|
||||||
|
Loading…
Reference in New Issue
Block a user