View Single Post
  #2  
Old 11th June 2008, 09:41
D3SI D3SI is offline
Senior Member
 
Join Date: May 2008
Posts: 58
Default Re: removing the slots mod
global.php

remove
Code:
function maxslots () {
    global $CURUSER;
    $gigs = $CURUSER["uploaded"] / (1024*1024*1024);
    $ratio = (($CURUSER["downloaded"] > 0) ? ($CURUSER["uploaded"] / $CURUSER["downloaded"]) : 1);
            if ($ratio < 0.5 || $gigs < 5) $max = 2;
            elseif ($ratio < 0.65 || $gigs < 6.5) $max = 3;
            elseif ($ratio < 0.8 || $gigs < 8) $max = 4;
            elseif ($ratio < 0.95 || $gigs < 9.5) $max = 5;
                    else $max = 0;
           if ($CURUSER["class"] < UC_VIP) {
        if ($max > 0)
            print ("<font color=#000000>Slots: </font><font color=red><span class=smallfont>$max</span></font>");
        else
            print ("<font color=#000000>Slots: </font><font color=green><span class=smallfont>Unlimited</span></font>");
           }else{
            print ("<font color=#000000>Slots: </font><font color=green><span class=smallfont>Unlimited</span></font>");
}
}

announce.php

remove

Code:
		#Max Slots Mod Added by D3SI
		            if ($ratio < 0.5 || $gigs < 5) $max = 2;
            elseif ($ratio < 0.65 || $gigs < 6.5) $max = 3;
            elseif ($ratio < 0.8 || $gigs < 8) $max = 4;
            elseif ($ratio < 0.95 || $gigs < 9.5) $max = 5;
            else $max = 0;
            if ($max > 0) {
                $res = mysql_query("SELECT COUNT(*) AS num FROM peers WHERE userid='$userid' AND seeder='no'") or err("Tracker error 5");
                $row = mysql_fetch_assoc($res);
                if ($row['num'] >= $max) err("Access denied (Torrents Limit exceeded - $max)");
            }
            #End of Max Slots Mod
bittorrent.php

remove

[code]
__________________
I install Site Source for $
Reply With Quote