|
#1
|
|||
|
|||
removing the slots mod
how can i remove it ?
i don`t want them to have limitations on downloading.. :unknown: |
#2
|
|||
|
|||
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 remove [code]
__________________
I install Site Source for $ |
#3
|
|||
|
|||
Re: removing the slots mod
thank you :)
|
Tags |
mod , removing , slots |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Removing Banners From Free Webhosts | daffy | Seedbox & Hosting | 0 | 6th June 2010 01:00 |