|
#1
|
|||
|
|||
Wait Time
Hi I have a tracker Torrent-Strike source and when a user can register to download says he must wait 48 hours !
How can I remove that 48 hours?? |
#2
|
|||
|
|||
in include/bittorrent.phplook at the Function torrenttable();
Find Code:
if ($CURUSER["class"] < UC_VIP) { $gigs = $CURUSER["uploaded"] / (1024*1024*1024); $ratio = (($CURUSER["downloaded"] > 0) ? ($CURUSER["uploaded"] / $CURUSER["downloaded"]) : 0); if ($ratio < 0.5 || $gigs < 5) $wait = 48; elseif ($ratio < 0.65 || $gigs < 6.5) $wait = 24; elseif ($ratio < 0.8 || $gigs < 8) $wait = 12; elseif ($ratio < 0.95 || $gigs < 9.5) $wait = 6; else $wait = 0; } Code:
if ($CURUSER["class"] < UC_VIP) { $gigs = $CURUSER["uploaded"] / (1024*1024*1024); $ratio = (($CURUSER["downloaded"] > 0) ? ($CURUSER["uploaded"] / $CURUSER["downloaded"]) : 0); if ($ratio < 0.5 || $gigs < 5) $wait = 0; elseif ($ratio < 0.65 || $gigs < 6.5) $wait = 0; elseif ($ratio < 0.8 || $gigs < 8) $wait = 0; elseif ($ratio < 0.95 || $gigs < 9.5) $wait = 0; else $wait = 0; } Find Code:
if ($az["class"] < UC_VIP) { $gigs = $az["uploaded"] / (1024*1024*1024); $elapsed = floor((gmtime() - $torrent["ts"]) / 3600); $ratio = (($az["downloaded"] > 0) ? ($az["uploaded"] / $az["downloaded"]) : 1); if ($ratio < 0.5 || $gigs < 5) $wait = 48; elseif ($ratio < 0.65 || $gigs < 6.5) $wait = 24; elseif ($ratio < 0.8 || $gigs < 8) $wait = 12; elseif ($ratio < 0.95 || $gigs < 9.5) $wait = 6; else $wait = 0; if (($elapsed < $wait)&&($seeder == 'no')) err("Not authorized (" . ($wait - $elapsed) . "h) - READ THE FAQ!"); } Code:
if ($az["class"] < UC_VIP) { $gigs = $az["uploaded"] / (1024*1024*1024); $elapsed = floor((gmtime() - $torrent["ts"]) / 3600); $ratio = (($az["downloaded"] > 0) ? ($az["uploaded"] / $az["downloaded"]) : 1); if ($ratio < 0.5 || $gigs < 5) $wait = 0; elseif ($ratio < 0.65 || $gigs < 6.5) $wait = 0; elseif ($ratio < 0.8 || $gigs < 8) $wait = 0; elseif ($ratio < 0.95 || $gigs < 9.5) $wait = 0; else $wait = 0; if (($elapsed < $wait)&&($seeder == 'no')) err("Not authorized (" . ($wait - $elapsed) . "h) - READ THE FAQ!"); } Find Code:
if ($CURUSER["class"] < UC_VIP) { $gigs = $CURUSER["uploaded"] / (1024*1024*1024); $ratio = (($CURUSER["downloaded"] > 0) ? ($CURUSER["uploaded"] / $CURUSER["downloaded"]) : 0); if ($ratio < 0.5 || $gigs < 5) $wait = 48; elseif ($ratio < 0.65 || $gigs < 6.5) $wait = 24; elseif ($ratio < 0.8 || $gigs < 8) $wait = 12; elseif ($ratio < 0.95 || $gigs < 9.5) $wait = 6; else $wait = 0; $elapsed = floor((gmtime() - strtotime($row["added"])) / 3600); if ($elapsed < $wait) $wait = number_format($wait - $elapsed); } Code:
if ($CURUSER["class"] < UC_VIP) { $gigs = $CURUSER["uploaded"] / (1024*1024*1024); $ratio = (($CURUSER["downloaded"] > 0) ? ($CURUSER["uploaded"] / $CURUSER["downloaded"]) : 0); if ($ratio < 0.5 || $gigs < 5) $wait = 0; elseif ($ratio < 0.65 || $gigs < 6.5) $wait = 0; elseif ($ratio < 0.8 || $gigs < 8) $wait = 0; elseif ($ratio < 0.95 || $gigs < 9.5) $wait = 0; else $wait = 0; $elapsed = floor((gmtime() - strtotime($row["added"])) / 3600); if ($elapsed < $wait) $wait = number_format($wait - $elapsed); } |
#3
|
|||
|
|||
Yes ^^ Remove this 48 Hours
|
Tags |
time , wait |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ADJUSTMENT SLOT & Settings WAIT, TS Version 5.6 | Tory | Template Shares | 2 | 19th April 2010 08:23 |
wait time? | mid | Community Cafe | 8 | 29th January 2010 17:55 |
Wait System | Genkai | Yuna Scatari Edition (YSE) | 4 | 18th January 2010 20:59 |
48hrs wait time | rytisp | Torrent Strike | 1 | 15th February 2009 18:00 |
Wait system | trilious | Template Shares | 4 | 19th September 2008 17:32 |