Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   removing the slots mod (http://www.bvlist.com/showthread.php?t=434)

KinetiX 10th June 2008 15:49

removing the slots mod
 
how can i remove it ?
i don`t want them to have limitations on downloading..

:unknown:

D3SI 11th June 2008 09:41

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 ("Slots: $max");
        else
            print ("Slots: Unlimited");
          }else{
            print ("Slots: Unlimited");
}
}


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]

KinetiX 11th June 2008 16:25

Re: removing the slots mod
 
thank you :)


All times are GMT +2. The time now is 17:31.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.