Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #11  
Old 31st July 2008, 23:45
AboudMokh AboudMokh is offline
Member
 
Join Date: Jul 2008
Posts: 6
Default
PHP Code:
$free false//set free on off(generally) 
$double false//set 2x multiplier
$four false//set 4x multiplier

//WARNING:DO NOT SET BOTH MULTIPLIERS TRUE, ONLY ONE 
I add this where ??? in announce.php
Reply With Quote
  #12  
Old 1st August 2008, 00:11
geeks geeks is offline
Member
 
Join Date: Jul 2008
Posts: 3
Default
Does thsi work with xBtit 2.0.0
Reply With Quote
  #13  
Old 28th August 2008, 01:57
NatashaRhea NatashaRhea is offline
Senior Member
 
Join Date: Aug 2008
Posts: 48
Default i got this error how do i fix it
Error! Direct initialization of this file is not allowed.
Reply With Quote
  #14  
Old 2nd September 2008, 21:38
LANDSER LANDSER is offline
Member
 
Join Date: May 2008
Posts: 9
Default
Quote:
Originally Posted by AboudMokh View Post
PHP Code:
$free false//set free on off(generally) 
$double false//set 2x multiplier
$four false//set 4x multiplier

//WARNING:DO NOT SET BOTH MULTIPLIERS TRUE, ONLY ONE 
I add this where ??? in announce.php
yes,in announce .php .
Reply With Quote
  #15  
Old 2nd December 2009, 23:08
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default
Hi, its that correctly

PHP Code:
    if ($double)
        
$upthis *= 2;
 if (
$four)
        
$upthis *= 4;

if (
$upthis || $downthis 0)
    if(
$torrent['free']=='yes')
        
mysql_query("UPDATE users SET uploaded = uploaded + $upthis WHERE id=$userid") or err("Tracker error 3 (freeleech)");
    else
    if(
$torrent['silver']=='yes')
        {
$downthis=$downthis/2;
        
$upthis $upthis*2;
        
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3 (silver)");
        }
    else
        
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");

//    mysql_query("UPDATE users SET uploaded = uploaded + $upthis". ($torrent['free']=='no'?", downloaded = downloaded + $downthis ":' '). "WHERE id=$userid") or err("Tracker error 3");



Last edited by elvira; 2nd December 2009 at 23:28.
Reply With Quote
  #16  
Old 12th December 2009, 02:28
LoaT LoaT is offline
Senior Member
 
Join Date: Jan 2009
Sweden
Posts: 31
Default
this works perfect with the 2009-version.. just use this:
Quote:
else
{
$upthis = max(0, $uploaded - $self["uploaded"]);
$downthis = max(0, $downloaded - $self["downloaded"]);
if ($free)
$downthis = 0;
if ($double)
$upthis *= 2;
if ($four)
$upthis *= 4;

if ($upthis > 0 || $downthis > 0)
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=".$user['id']) or err("Tracker error 3");
}
instead of the one in #0 :)
Reply With Quote
  #17  
Old 19th March 2010, 20:05
djblackout djblackout is offline
Senior Member
 
Join Date: Aug 2009
Denmark
Posts: 51
Default hey sharky im not sure if you a dublicate or the true one
hi i have using torrent plugin for your torrent sharkydog tracker ... e107 and would know if it is you who made it ?
Reply With Quote
  #18  
Old 5th July 2012, 02:09
j4v1 j4v1 is offline
Member
 
Join Date: Jul 2012
P2P
Posts: 6
Default
Where I can find freeleech mod for use this mod?


thanks
Reply With Quote
  #19  
Old 8th July 2015, 23:43
I_lie_and_steal_code_and_call_it_mine I_lie_and_steal_code_and_call_it_mine is offline
I have no idea how to code
 
Join Date: Jun 2015
Posts: 9
Thumbs up
PHP Code:
ALTER TABLE `torrentsADD `doubleenum('yes','no') DEFAULT 'no'
find

PHP Code:
dbconn(false); 
PHP Code:
$res mysql_query 
add

PHP Code:
double
find

PHP Code:
$free $torrent["free"]; 
above add

PHP Code:
$double $torrent["double"]; 
find


PHP Code:
if ($free == 'yes'$downthis 0
above add

PHP Code:
if ($double == 'yes'$downthis 2
new to bittorrant
add

PHP Code:
$thisisdouble = ($row[double]=="yes" "<img src='pic/double.png' align='left' />" ""); 
browse.php
add


PHP Code:
torrents.double
not tested
Reply With Quote
Reply

Tags
freeleech , multiplier

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
TBDEv Freeleech mod ? poiuy6789 TBDev 6 11th June 2013 03:39
freeleech.eu tbdev final 2009 djblackout Community Cafe 0 23rd March 2010 04:42
tbdev.net (netmaniack's edition) 1.5 freeleech.php tunad Community Cafe 0 28th December 2008 14:44
Freeleech tunad Torrent Strike 2 18th November 2008 13:42
FreeLeech vertex Yuna Scatari Edition (YSE) 9 7th September 2008 21:38



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