mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 19:06:27 +00:00
Empty commit
This commit is contained in:
parent
5c2dee6000
commit
f0126d3d47
@ -423,6 +423,12 @@ CREATE TABLE `ip_bans` (
|
||||
KEY `ToIP` (`ToIP`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
CREATE TABLE `lastfm_users` (
|
||||
`ID` int(10) unsigned NOT NULL,
|
||||
`Username` varchar(20) NOT NULL,
|
||||
PRIMARY KEY (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `library_contest` (
|
||||
`UserID` int(10) NOT NULL,
|
||||
`TorrentID` int(10) NOT NULL,
|
||||
|
@ -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';
|
||||
foreach($UserIDs as $UserID) {
|
||||
Misc::send_pm($UserID,0,db_string($Subject),db_string($Message));
|
||||
send_irc("PRIVMSG #reports : !leechdisabled Downloaded 10 GB+ on Ratio Watch. https://".NONSSL_SITE_URL."/user.php?id=$UserID");
|
||||
send_irc("PRIVMSG #reports : !leechdisabled Downloaded 10 GB+ on Ratio Watch. https://what.cd/user.php?id=$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'));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// Put user on ratio watch if he doesn't meet the standards
|
||||
sleep(10);
|
||||
$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."), '');
|
||||
echo "Ratio watch on: $UserID\n";
|
||||
}
|
||||
|
||||
*/
|
||||
sleep(5);
|
||||
|
||||
//------------- Rescore 0.95 logs of disabled users
|
||||
@ -504,7 +504,7 @@ function next_hour() {
|
||||
sleep(5);
|
||||
|
||||
//------------- 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
|
||||
WHERE i.RatioWatchEnds!='0000-00-00 00:00:00'
|
||||
@ -539,6 +539,7 @@ function next_hour() {
|
||||
foreach($Passkeys as $Passkey) {
|
||||
Tracker::update_tracker('update_user', array('passkey' => $Passkey, 'can_leech' => '0'));
|
||||
}
|
||||
*/
|
||||
|
||||
//------------- Disable inactive user accounts --------------------------//
|
||||
sleep(5);
|
||||
|
@ -425,7 +425,7 @@ function header_link($SortKey,$DefaultWay="desc") {
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($_GET['freetorrent'])) {
|
||||
if (!empty($_GET['freetorrent']) || $_GET['freetorrent'] === '0') {
|
||||
switch ($_GET['freetorrent']) {
|
||||
case 0: // Only normal freeleech
|
||||
$SphQL->where('freetorrent', 0);
|
||||
|
@ -630,8 +630,8 @@
|
||||
}
|
||||
|
||||
// Use this section to control freeleeches
|
||||
$T['FreeLeech'] = 1;
|
||||
$T['FreeLeechType'] = 1;
|
||||
$T['FreeLeech'] = 0;
|
||||
$T['FreeLeechType'] = 0;
|
||||
|
||||
// Torrent
|
||||
$DB->query("
|
||||
|
Loading…
Reference in New Issue
Block a user