23rd February 2008, 19:20
|
Member
|
|
Join Date: Jan 2008
Posts: 12
|
|
Freeleech with multiplier
YOU MUST HAVE THE FREELEECH MOD INSTALLED IN ORDER TO USE THIS MOD :)
this mod makes your uploadx2 or x4 on freeleech torrents, of course, if the freeleech and the multiplier are set "true"
so, basically..add this in announce .php , beneath the first
add
Code:
$free = false; //set free on off(generally)
$double = false; //set 2x multiplier
$four = false; //set 4x multiplier
//WARNING:DO NOT SET BOTH MULTIPLIERS TRUE, ONLY ONE
then, replace this
Code:
else
{
$upthis = max(0, $uploaded - $self["uploaded"]);
$downthis = max(0, $downloaded - $self["downloaded"]);
if ($upthis > 0 || $downthis > 0)
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");
}
}
with
Code:
else
{
$upthis = max(0, $uploaded - $self["uploaded"]);
$downthis = max(0, $downloaded - $self["downloaded"]);
if ($free)
$downthis = 0;
if ($double)
$upthis *= 2;
if ($four)
$upthis *= 4;
if ($upthis > 0 || $downthis > 0)
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");
}
that's it. tested and works
|