Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 10th January 2022, 12:40
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default Seedbonus On Login
Add into index.php script should refresh and add 2.0 seedbonus on login or while logged in it will update every time while logged in to make seedbonus points 2.0 is set though yet to be tested so give it a turn.

Code:
$seedbonus = $CURUSER[“seedbonus”];

/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus = “.$CURUSER[“seedbonus”].”+2.0 WHERE id = ".$CURUSER["id"]."") ;
!!Requires Seedbonus Hack: https://torrenttrader.uk/topic?topicid=9722
Reply With Quote
  #2  
Old 10th January 2022, 15:06
szaby szaby is offline
Senior Member
 
Join Date: Jul 2008
Posts: 34
Default
Hello!

This is not need:
PHP Code:
$seedbonus $CURUSER[“seedbonus”]; 
Reply With Quote
The Following User Says Thank You to szaby For This Useful Post:
BamBam0077 (10th January 2022)
  #3  
Old 10th January 2022, 17:01
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
Okay thanks that’s just in case you wanted to use another variable other then $CURUSER[“seedbonus”] inside the sql_query
Reply With Quote
  #4  
Old 10th January 2022, 18:23
darkalchemy darkalchemy is offline
Administrator
 
Join Date: Dec 2017
United States
Posts: 101
Default
So, a user could just continuously hit refresh and get enough points to buy upload credit or anything else that is available.

You should probably add a min time between updates. A simple expiring cache would do for that.
Reply With Quote
The Following User Says Thank You to darkalchemy For This Useful Post:
BamBam0077 (10th January 2022)
  #5  
Old 10th January 2022, 19:15
xblade's Avatar
xblade xblade is offline
Cod3r
 
Join Date: Nov 2020
P2P
Posts: 239
Thumbs down
Quote:
Originally Posted by BamBam0077 View Post
Add into index.php script should refresh and add 2.0 seedbonus on login or while logged in it will update every time while logged in to make seedbonus points 2.0 is set though yet to be tested so give it a turn.

Code:
$seedbonus = $CURUSER[“seedbonus”];

/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus = “.$CURUSER[“seedbonus”].”+2.0 WHERE id = ".$CURUSER["id"]."") ;
!!Requires Seedbonus Hack: https://torrenttrader.uk/topic?topicid=9722
Code:
$seedbonus = $CURUSER["seedbonus"];
SQL_Query_exec("UPDATE users SET seedbonus = ".$CURUSER["seedbonus"]."+2.0 WHERE id = ".$CURUSER["id"]."") ;
do you think this is the long way about this Lol
add to the login page
Reply With Quote
  #6  
Old 10th January 2022, 21:01
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
It was for a demo I just need to add a timer is so it can add points when we setup so for now it updates seedbonus from 0.0 to 2.0 each refresh as far as I understand so it was to basically get more bonus outta the system so they didn't have to just download comment etc a bonus gift for every member of you know what I mean. Was just an idea

Add inside of header.php
Code:
        <!-- Start Infobar -->
        <div style='color:white;' class='infobar'>
          <?php
                if (!$CURUSER){
                    echo "[<a href=\"account-login.php\">".T_("LOGIN")."</a>]<b> ".T_("OR")." </b>[<a href=\"account-signup.php\">".T_("SIGNUP")."</a>]";
                }else{
$bonus=$CURUSER['seedbonus'];
                    print (T_("LOGGED_IN_AS").": ".$CURUSER["username"]."

<br>Seedbonus :<b><a href=mybonus.php>".$bonus."</a></b>");


                    echo " [<a href=\"account-logout.php\">".T_("LOGOUT")."</a>] ";
                    if ($CURUSER["control_panel"]=="yes") {
                        print("[<a href='admincp.php'>".T_("STAFFCP")."</a>] ");
                    }
            
                    //check for new pm's
                    $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
                    $arr = mysqli_fetch_row($res);
                    $unreadmail = $arr[0];
                    if ($unreadmail){
                        print("[<a href='mailbox.php?inbox'><b><font color='#ff0000'>$unreadmail</font> ".P_("NEWPM", $unreadmail)."</b></a>]");  
                    }else{
                        print("[<a href='mailbox.php'>".T_("YOUR_MESSAGES")."</a>] ");
                    }
                    //end check for pm's
                }
                ?>
        </div>
        <!-- End Infobar -->
Click the image to open in full size. Click the image to open in full size. Click the image to open in full size.


Insert into index.php
Code:
/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus=".$CURUSER['seedbonus']."+2.0 where seedbonus = ".$CURUSER['seedbonus']." ");

Click the image to open in full size. Click the image to open in full size. Click the image to open in full size.

Last edited by BamBam0077; 10th January 2022 at 22:11.
Reply With Quote
  #7  
Old 11th January 2022, 13:59
Elena Elena is offline
Senior Member
 
Join Date: Sep 2010
P2P
Posts: 111
Default
F5 press and your server will die + bonuses will drop like rain on your account.
Well, at least think with your head before you show such nonsense.
Bonuses are only credited for seeding for the distribution. You can give a bonus to the person who uploaded the release, but not what you wrote here. Bullshit...
Reply With Quote
  #8  
Old 12th January 2022, 08:09
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default
PHP Code:
//seedbonus everytime your on the index page.
//SQL_Query_exec("UPDATE users SET seedbonus=".$CURUSER['seedbonus']."+2.0 where seedbonus = ".$CURUSER['seedbonus']." ");

if($CURUSER["class"] > ) { 
// vip+ 2.0 bonuspoints on refresh
/* seedbonus everytime your on the index page or script :) */
SQL_Query_exec("UPDATE users SET seedbonus=".$CURUSER['seedbonus']."+4.0 where seedbonus = ".$CURUSER['seedbonus']." ");

yeah it is such bullshit it does what I said
so anyway I modded it for VIP+ can refresh page and make 4.0 seedbonus on refreshs each time. So when I logged in as member or power user I can refresh all I like and no changes be upgraded to VIP+ you can refresh page as much as you want to start gaining 2.0+ seedbonus. Enjoy!
Reply With Quote
  #9  
Old 8th February 2022, 09:24
hon hon is offline
Senior Member
 
Join Date: Oct 2020
P2P
Posts: 66
Default
TorrentTrader.uk is not the official TorrentTrader site.

The original site is TorrentTrader.org
__________________
TorrentTrader4Ever

If you want help about TorrentTrader send me a PM.
Reply With Quote
  #10  
Old 9th February 2022, 13:27
xblade's Avatar
xblade xblade is offline
Cod3r
 
Join Date: Nov 2020
P2P
Posts: 239
Thumbs down
Quote:
Originally Posted by hon View Post
TorrentTrader.uk is not the official TorrentTrader site.

The original site is TorrentTrader.org
true and thay should call it something else not torrent trader

torrent trader is org and its flasher code so stop taking the piss uk

Side not what can you offer
Reply With Quote
Reply

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



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