Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 3rd May 2013, 04:18
crackz141 crackz141 is offline
Member
 
Join Date: Apr 2013
Brazil
Posts: 5
Default bonus system help
help me, this code is a bonus but not working.

PHP Code:
<?php


require_once('backend/functions.php');
dbconn(false);
loggedinonly();

if (
$action == "exchange") {

$userid $CURUSER["id"];
$option = (int)$_POST["option"];

$art $_POST["art"];
$modcomment $CURUSER['modcomment'];
$upload $CURUSER['uploaded'];

$res mysql_query("SELECT * FROM bonus WHERE id='$option'");
$row mysql_fetch_assoc($res);
if (!
$row)
show_error_msg("Error""Invalid request."1);


$up $row['menge'];
$invites $CURUSER['invites'];
$inv $row['menge'];
$points $row['points'];

if(
$CURUSER['seedbonus'] >= $points) {

    if(
$art == "traffic") {
          
$modcomment gmdate("Y-m-d") . " - User has traded " .$points" Points for traffic.\n " .$modcomment;
 
mysql_query("UPDATE users SET uploaded = uploaded+$up, seedbonus = seedbonus-$points, modcomment = '$modcomment' WHERE id = '$userid'") or die(mysql_error());
        
show_error_msg("Success""Account updated.");
    } elseif(
$art == "invite") {
         
$modcomment gmdate("Y-m-d") . " - User has traded " .$points" Points for invites.\n " .$modcomment;
 
mysql_query("UPDATE users SET modcomment = '$modcomment', invites = invites+$inv, seedbonus = seedbonus-$points WHERE id = '$userid'") or die(mysql_error());
            
show_error_msg("Success""Account updated.");
    }
        else {
        
show_error_msg("Error""No valid type");
    }

} else {
      
show_error_msg("Error""Not enough points to trade...");
      }
}

stdhead($CURUSER['username'] . "'s Bonus");

$bonus $CURUSER['seedbonus'];
$userid $CURUSER['id'];

begin_frame("Seeder Bonus Exchange");
print(
"<table align=center width=600 border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n");
Print(
"<tr><td class=tabletitle width=600>Seeder Bonus</td></tr></table>");
print(
"<table class=tableb align=center width=600 border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n");
?>
<tr><td align=center>Aqui você pode trocar seu bonus por semear (Atualmente você tem: <?echo "$bonus";?> pontos).
<br>
(Se o botão não estiver clicavel é devido que você não tem pontos suficientes.)
<br>
<?php

print("<table border=1 cellspacing=0 cellpadding=5 width=500><tr>".
"<td class=tabletitle align=left>Opção</td>".
"<td class=tabletitle align=left>Descrição</td>".
"<td class=tabletitle align=left>Share-Points</td>".
"<td class=tabletitle align=left>Trocar</td>".

"</tr>");

$res mysql_query("SELECT * from bonus order by id");

while (
$gets mysql_fetch_assoc($res))
{
print(
"<tr class=tableb><td>".$gets["id"]."</td><td align='left'><b>".$gets["bonusname"]."</b><br>".$gets["description"]."</td><td align='right'>".$gets["points"]."</td>");
print(
"<form action=mybonus.php?action=exchange method=post>\n");
print(
"<input type=\"hidden\" name=\"option\" value=\"".$gets["id"]."\">\n");
print(
"<input type=\"hidden\" name=\"art\" value=\"".$gets["art"]."\">\n");
if(
$bonus >= $gets["points"]) {
    print(
"<td><input type=submit name=submit value=\"Trocar!\" enabled></td></form>");
    } else {
    print(
"<td><input type=submit name=submit value=\"Trocar!\" disabled></td></form>");
    }
}
print(
"</table><br><br><br>");
?>
<blockquote><p align=left><b>Como eu consigo Share-Points?</b><br>
Você recebe 0.5 Share-Points por hora que você estiver semeando.
</p></blockquote>
</td></tr>
<tr><td><a href=account.php>Voltar para seu Perfil</a></td></tr>

</table>
<?php
end_frame
();
stdfoot();
?>
Reply With Quote
  #2  
Old 8th October 2016, 23:08
anaxu anaxu is offline
Member
 
Join Date: Sep 2016
P2P
Posts: 4
Default script seedbonus
insert this:
SQL:

Code: Select all
INSERT INTO bonus VALUES("8","Retrait un Hit And Run","3000.0","1","Retirer un hit and run de votre compte.","HnR");


if "8" duplicate change it to 15 or any other number
Reply With Quote
Reply

Tags
bonus , system

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 01:48. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.