Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > TBDev
Reply
  #1  
Old 10-06-08, 15:49
KinetiX's Avatar
KinetiX KinetiX is offline
Member
 
Join Date: Jun 2008
Posts: 8
Default removing the slots mod
how can i remove it ?
i don`t want them to have limitations on downloading..

:unknown:
Reply With Quote
  #2  
Old 11-06-08, 09:41
D3SI's Avatar
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
  #3  
Old 11-06-08, 16:25
KinetiX's Avatar
KinetiX KinetiX is offline
Member
 
Join Date: Jun 2008
Posts: 8
Default Re: removing the slots mod
thank you :)
Reply With Quote
Reply

Tags
mod , removing , slots

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Banners From Free Webhosts daffy Seedbox & Hosting 0 06-06-10 01:00



All times are GMT +2. The time now is 01:21. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2019, vBulletin Solutions Inc.