|
![]() |
#1
|
||||
|
||||
![]()
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"]."") ; |
#2
|
||||
|
||||
![]()
Hello!
This is not need: PHP Code:
|
The Following User Says Thank You to szaby For This Useful Post: | ||
BamBam0077 (10th January 2022)
|
#3
|
||||
|
||||
![]()
Okay thanks that’s just in case you wanted to use another variable other then $CURUSER[“seedbonus”] inside the sql_query
|
#4
|
||||
|
||||
![]()
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. |
The Following User Says Thank You to darkalchemy For This Useful Post: | ||
BamBam0077 (10th January 2022)
|
#5
|
||||
|
||||
![]() Quote:
Code:
$seedbonus = $CURUSER["seedbonus"]; SQL_Query_exec("UPDATE users SET seedbonus = ".$CURUSER["seedbonus"]."+2.0 WHERE id = ".$CURUSER["id"]."") ; add to the login page |
#6
|
||||
|
||||
![]()
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 --> ![]() ![]() ![]() 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']." "); ![]() ![]() ![]() Last edited by BamBam0077; 10th January 2022 at 22:11. |
#7
|
||||
|
||||
![]()
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... |
#8
|
||||
|
||||
![]() PHP Code:
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! ![]() |
#9
|
||||
|
||||
![]()
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. |
#10
|
||||
|
||||
![]() Quote:
torrent trader is org and its flasher code so stop taking the piss uk Side not what can you offer |
![]() |
Thread Tools | |
|
|