Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   Wait Time (http://www.bvlist.com/showthread.php?t=3597)

goood 15th October 2009 09:06

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??

Krypto 15th October 2009 20:13

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;
  }

Replace
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;
  }

announce.php

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!");
        }

Replace
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!");
        }

in details.php

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);

                }

Replace
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);

                }


saga 24th May 2010 09:18

Yes ^^ Remove this 48 Hours :drink:


All times are GMT +2. The time now is 07:18.

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