Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 19th January 2009, 17:01
Azurious's Avatar
Azurious Azurious is offline
Senior Member
 
Join Date: Jan 2009
India
Posts: 60
Default Seeding Bonus
i got Seeding Bonus: 250.0

but Exchange is not clickable on any option :(
Reply With Quote
  #2  
Old 19th January 2009, 17:07
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
replace mybonus.php
PHP Code:
<?php
/*
*----------------------------phpMyBitTorrent V 2.0-beta4-----------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*/
if (!eregi("mybonus.php",$_SERVER["PHP_SELF"])) die ("You cannot include this file");
include(
"header.php");
global 
$user$db$db_prefix;
                        
$bon "SELECT active, upload, comment, offer, fill_request, seeding, by_torrent FROM ".$db_prefix."_bonus_points ;";
                        
$bonset $db->sql_query($bon);
                        list (
$active$upload$comment$offer$fill_request$seeding$by_torrent) = $db->sql_fetchrow($bonset);
                        
$db->sql_freeresult($bonset);
                        
if(
$active =='false'){
OpenMessTable("Bonus System is Closed");
echo
"Sorry to Announce But at this time we are not useing the Bonus system<br />";
echo
"If you feel you have reached this error By Mistake please contact on of the sites moderatores so the may assest you";
CloseMessTable();
die();
}
$bonus $user->seedbonus;
$userid "".getuserid($btuser)."";
OpenTable("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>Here you can exchange your Seeder-Bonus (currently: <? print $user->seedbonus;?>)
<br>
(If the button's deactivated, you do not have enough to trade.)
<br>
<?php

print("<table border=1 cellspacing=0 cellpadding=5 width=500><tr>".
"<td class=tabletitle align=left>Option</td>".
"<td class=tabletitle align=left>What's this about?</td>".
"<td class=tabletitle align=left>Points</td>".
"<td class=tabletitle align=left>Trade</td>".

"</tr>");

$sql = ("SELECT * FROM ".$db_prefix."_bonus order by id");
$res $db->sql_query($sql);
while (
$gets $db->sql_fetchrow($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=\"bonus\" value=\"".$bonus."\">\n");
print(
"<input type=\"hidden\" name=\"userid\" value=\"".$userid."\">\n");
print(
"<input type=\"hidden\" name=\"points\" value=\"".$gets["points"]."\">\n");
print(
"<input type=\"hidden\" name=\"option\" value=\"".$gets["id"]."\">\n");
print(
"<input type=\"hidden\" name=\"art\" value=\"".$gets["art"]."\">\n");
if(
$user->seedbonus >= $gets["points"]) {
    print(
"<td><input type=submit name=submit value=\"Exchange!\"></td></form>");
    } else {
    print(
"<td><input type=submit name=submit value=\"Exchange!\" disabled></td></form>");
    }
}
print(
"</table><br><br><br>");
?>
<blockquote><p align=left><b>How do I get points?</b><br>
You receive <?php echo $seeding;?> points for every 10 minutes the system registers you as being a seeder.<br>
You well receive <?php echo $upload;?> points for uploading a new torrent.<br>
You well receive <?php echo $comment;?> points for leaving a comment on a torrent (that includes a quick thanks).<br>
You well receive <?php echo $offer;?> points for Making a Offer to upload a torrent<br />
You well receive <?php echo $fill_request;?> points for filling a Requisted torrent<br />
(Note any comment deleted By you or staff well result in loss of those points so no flooding)
</p></blockquote>
</td></tr>
<tr><td><a href=user.php?op=profile&id=<?php echo $userid;?>>Back to your profile</a></td></tr>

</table>
<?php
if ($action == "exchange") {
global 
$seedbonus$invites;
$userid $_POST["userid"];
$option $_POST["option"];
$points $_POST["points"];
$bonus $_POST["bonus"];

$seedbonus2=$user->seedbonus-$points;

$art $_POST["art"];
$modcomment $user->modcomment;
$upload $user->uploaded;
$bpoints $user->seedbonus;
$sql = ("SELECT * FROM ".$db_prefix."_bonus WHERE id='$option'");
$res $db->sql_query($sql);
$bytes $db->sql_fetchrow($res);
$up $user->uploaded+$bytes['menge'];
$invites $user->invites;
$inv $invites+$bytes['menge'];
if(
$user->seedbonus >= $points) {

    if(
$art == "traffic") {
          
$modcomment gmdate("Y-m-d") . " - User has traded " .$points" Points for traffic.\n ".$bytes['menge']."" .$modcomment;
          
$complete $db->sql_query("UPDATE ".$db_prefix."_users SET uploaded = '".$up."', seedbonus = '$seedbonus2', modcomment = '$modcomment' WHERE id = '$userid'") or sqlerr(__FILE____LINE__);
          if(
$complete)bterror("You have Traded " .$points" Points for traffic","Sucsess");
    } elseif(
$art == "invite") {
         
$modcomment gmdate("Y-m-d") . " - User has traded " .$points" Points for invites.\n " .$modcomment;
         
$complete $db->sql_query("UPDATE ".$db_prefix."_users SET invites = '".$inv."', seedbonus = '$seedbonus2', modcomment = '$modcomment' WHERE id = '$userid'") or sqlerr(__FILE____LINE__);
         if(
$complete)bterror("You have Traded " .$points" Points for invites","Sucsess");
    }
        else {
        echo 
"No valid type";
    }

} else {
      echo 
"Not enough points to trade...";
      }
}

CloseTable();
include(
"footer.php");
?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/

Last edited by joeroberts; 19th January 2009 at 17:14.
Reply With Quote
  #3  
Old 19th January 2009, 17:14
Azurious's Avatar
Azurious Azurious is offline
Senior Member
 
Join Date: Jan 2009
India
Posts: 60
Default
thanks now i can click but it say Not enough points to trade...

even i got 250

& i was trying for 25 Invites
Trade your points in for invites to the site.100.0
Reply With Quote
  #4  
Old 19th January 2009, 17:16
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Updated my post
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 19th January 2009, 17:20
Azurious's Avatar
Azurious Azurious is offline
Senior Member
 
Join Date: Jan 2009
India
Posts: 60
Default
Thanks alot issue solved
Reply With Quote
Reply

Tags
bonus , seeding

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
Bonus Hack Fynnon Mods & Themes 6 29th December 2021 17:25
Bonus transfer Nightcrawler Mods & Themes 5 15th October 2009 13:10
Bonus script ciobancai Template Shares 2 19th August 2009 20:18
modifying bonus points system tunad Template Shares 4 7th August 2009 15:23
Bonus info! DooM TBDev 1 20th May 2009 22:52



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