Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   bonus system help (http://www.bvlist.com/showthread.php?t=9125)

crackz141 3rd May 2013 04:18

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

(Se o botão não estiver clicavel é devido que você não tem pontos suficientes.)

<?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>".$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>");
?>
<blockquote><p align=left><b>Como eu consigo Share-Points?</b>
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();
?>


anaxu 8th October 2016 23:08

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


All times are GMT +2. The time now is 21:11.

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