Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Napon Modded TBDev (http://www.bvlist.com/showthread.php?t=10735)

Napon 23rd August 2016 21:19

1 Attachment(s)
thats no info we need the error mass you geting or can not fix it lol

this is the last repo i did

son 26th August 2016 13:08

Word off caution.
 
It's great to see tbdev being modded, but there should be concerns for the new users that don't have coding experience, when using a code base thats outdated and has more security holes than a sift.

Mysql isn't supported and replaced with mysqli, which essentially the code that calls on mysql has to be updated for mysqli, coding experience is required to so. So this version is already under the curve ball for major work.

There are a number off sources on here already that have replaced mysql and upgraded to mysqli, and theres a good chance its security holes that are in the old tbdev are drastically reduced.

If this is your upgraded version off tbdev why are you using torrentstrike installer instead of your own.

The important thing is that, when using any source, php/mysqli basic knowledge is a requirement, even more so when using outdated source code like this.

fireknight 26th August 2016 14:08

ss207823

You words of caution , are well founded.
And should be taken seriously.
There are a lot security issues regarding mysql.

Having said that, TBDev is a great code for beginner coders to cut their teeth so to speak.

It is based upon the original TBsource.
And a fantastic place for beginner coders to learn about coding.

Everyone has to start somewhere, as we all did. :coffee:

Napon 26th August 2016 20:00

Quote:

Originally Posted by fireknight (Post 49252)
ss207823

You words of caution , are well founded.
And should be taken seriously.
There are a lot security issues regarding mysql.

Having said that, TBDev is a great code for beginner coders to cut their teeth so to speak.

It is based upon the original TBsource.
And a fantastic place for beginner coders to learn about coding.

Everyone has to start somewhere, as we all did. :coffee:

true as i did this for something to do was bored every code started out with TBDev aka original TBsource

there is alot of TBsource on here and over the net and alot of sites that is still using old mysql too and that is a very lot of big site too and im apart of them to and do alot of work for them too so no its not new code all the time is it

For Example

change Mysql too sql_query
its not as easy as that you will need to change alot of code to match it this

fireknight 28th August 2016 04:57

Quote:

Originally Posted by Napon (Post 49253)
TBDev aka original TBsource

Totally wrong.

TBsource and TBDev are not the same code.

TBsource

Was the first private site open source code released = TorrentBits.
This was the site http://tbsource.org
The link does not work !!!!

TBDev is a deviation of TBsource -- an Xbit code if you like.

Just like TorrentStrike is / was a deviation of TBDev.

Napon 28th August 2016 10:11

change Mysql too sql_query
its not as easy as that you will need to change alot of code to match it

also my torrantstike is TBsource

fireknight 28th August 2016 13:38

Quote:

Originally Posted by Napon (Post 49256)
change Mysql too sql_query
its not as easy as that you will need to change alot of code to match it

It is not as hard as you make out, if you look at it logically.

I use TextPad as my php editor.
If I hit the F8 key, a pop up box appears.
It has 2 input boxes.

1: Find
2: Replace

Box Number 1 ( Find ) I input mysql_query
Box Number 2 ( Replace ) I input sql_query

I then click the return button named Replace All
And it replaces all the mysql_query with the new sql_query
The whole page in one click.
Takes about 5 seconds per page.

Then all you need to do is create the function for sql_query.

Most php editors will have the same type of find and replace text option.
You just have to look through your php editor and find it.

Napon 28th August 2016 18:07

what function for sql_query ? im nealy there lol with this one step then done

fireknight 29th August 2016 08:42

Quote:

Originally Posted by Napon (Post 49259)
what function for sql_query ? im nealy there lol with this one step then done

There are only 2 steps to do.
It's not that hard.

OK a quick and basic lesson in functions.

You want to replace mysql_query with sql_query.

Example of a mysql_query
Code:

mysql_query("SELECT username FROM users WHERE id = 1");
See how mysql_query has 2 brackets and ends with a semi colan.
That is a function, same as the example below

Code:

parked();
The only differance is - the mysql_query("********");
Is reconised by php as a pre set standard function.

Where parked(); has to be defined as a function with-in the source code.

So to replace mysql_query with sql_query.
You will need to create a function for sql_query.

Example ( DO NOT COPY AND PASTE )
Code:

function sql_query()
{
    $result = mysql_query();

    return $result;
}

You should be able to figure it out from the above example.
After all you do write your own custom code all the time.
Which I am sure includes lots of custom functions.

Napon 29th August 2016 10:52

i see where you are coming from mate this would not work the above mate at all and its a long way of doing it too mate sorry it would not work at all ive given up on this when bittorrent can do this for you with out adding to every page

sql_query();

to every page and it would not work at all

fireknight 29th August 2016 12:27

That's a copy of the function sql_query ($querytme)
From FreeTSP, line for line.
I think it comes from U232, not to certain though, as Krypto added that part.
Full credit to the coder that created it ( don't know his / her name sorry )

It is close to the function you are after.
As I said, you brag about how much custom code you do your self.
And how fantastic it is.

A simple replacement function should be dead easy for a coder of your skills.
Should take about 2 mins, to write it.
I have done most of the function for you.
You just need to fill in the missing pieces.

EDIT

You edited your post while I was posting mine.
There is a very good reason for using sql_query.
When you recode your site to mysqli.
You only need to update your function to accommodate it.

joeroberts 29th August 2016 12:39

Quote:

Originally Posted by Napon (Post 49271)
i see where you are coming from mate this would not work the above mate at all and its a long way of doing it too mate sorry it would not work at all ive given up on this when bittorrent can do this for you with out adding to every page

sql_query();

to every page and it would not work at all

:wallbash::wallbash::wallbash::wallbash:

You do not add that Function to every page it is added to the one page that is used on every page AKA (global.php, functions.php)

and doing it like that is FARRRRRRR easier then editing every query to use mysqli

and you call your self a coder?
I have used this standerd in my source sence day one when I added mysqli to my source it only took one day to create the mysqli class functions and did not need to edit any of the pages.

DND 29th August 2016 13:42

or could just use mysqli converter and convert mysql_query line to mysqli standard like i use it :)
tricky part is when switching to OOP+PDO :)

Napon 29th August 2016 14:11

ive try all the above over this few days and still the same do not bash i wanted to get my torrant strike out on here

so ive given up on this im not geting the correct info at all from noone at all so it stays as it is so there be no torrantstrike on here from me

Timisoreanul 29th August 2016 15:34

Ohhh nooo , why? ... the tragedy !
You never was going to post it!
"Your torrantstrike"

Quote:

Originally Posted by Napon (Post 49275)
im not geting the correct info at all from noone at all so it stays as it is so there be no torrantstrike on here from me

And also fireknight was nice for him to explain for beginers and pace to pace.

Napon 29th August 2016 15:55

And yes i was going to do not presume i would not {solved} now working on sql_query now ill set up msqli

shorto 31st August 2016 00:41

Any possibility for php7 support?
PHP Code:

ErrorCall to undefined function set_magic_quotes_runtime() 

Is killing me

Marco 4th October 2016 21:24

Hello
 
--- solved---

Napon 8th October 2016 10:55

ill repo this up in a few hours and send it back here i think it need it

M1601 16th May 2017 12:08

Quote:

Originally Posted by Napon (Post 49479)
ill repo this up in a few hours and send it back here i think it need it

Notice: Undefined index: up_success in D:\Ampps\www\mybonus.php on line 33

Notice: Undefined index: class_success in D:\Ampps\www\mybonus.php on line 50

Notice: Undefined index: smile_success in D:\Ampps\www\mybonus.php on line 56

Notice: Undefined index: warning_success in D:\Ampps\www\mybonus.php on line 62

Notice: Undefined index: invite_success in D:\Ampps\www\mybonus.php on line 68

Notice: Undefined index: title_success in D:\Ampps\www\mybonus.php on line 74

Notice: Undefined index: ratio_success in D:\Ampps\www\mybonus.php on line 80

Notice: Undefined index: gift_fail in D:\Ampps\www\mybonus.php on line 86

Notice: Undefined index: gift_fail_user in D:\Ampps\www\mybonus.php on line 92

Notice: Undefined index: gift_fail_points in D:\Ampps\www\mybonus.php on line 98

Notice: Undefined index: gift_success in D:\Ampps\www\mybonus.php on line 104

Notice: Undefined index: exchange in D:\Ampps\www\mybonus.php on line 111

Notice: Undefined variable: SITENAME in D:\Ampps\www\mybonus.php on line 246

Notice: Undefined variable: count1 in D:\Ampps\www\mybonus.php on line 249


Pls fix this

fireknight 16th May 2017 13:19

M1601

Napon has not been seen for 6 months now.
And TBH I do not expect him to return ( well not using that name anyway )
Even if he did return, I doubt that he will fix the problem.
He normally brags that he has that problem sorted months ago, but never posts the code.

You would be better off, ditching this code and move onto something else here that will give you better support.

Chez 17th May 2017 09:23

Quote:

Originally Posted by M1601 (Post 50209)
Notice: Undefined index: up_success in D:\Ampps\www\mybonus.php on line 33

Notice: Undefined index: class_success in D:\Ampps\www\mybonus.php on line 50

Notice: Undefined index: smile_success in D:\Ampps\www\mybonus.php on line 56

Notice: Undefined index: warning_success in D:\Ampps\www\mybonus.php on line 62

Notice: Undefined index: invite_success in D:\Ampps\www\mybonus.php on line 68

Notice: Undefined index: title_success in D:\Ampps\www\mybonus.php on line 74

Notice: Undefined index: ratio_success in D:\Ampps\www\mybonus.php on line 80

Notice: Undefined index: gift_fail in D:\Ampps\www\mybonus.php on line 86

Notice: Undefined index: gift_fail_user in D:\Ampps\www\mybonus.php on line 92

Notice: Undefined index: gift_fail_points in D:\Ampps\www\mybonus.php on line 98

Notice: Undefined index: gift_success in D:\Ampps\www\mybonus.php on line 104

Notice: Undefined index: exchange in D:\Ampps\www\mybonus.php on line 111

Notice: Undefined variable: SITENAME in D:\Ampps\www\mybonus.php on line 246

Notice: Undefined variable: count1 in D:\Ampps\www\mybonus.php on line 249


Pls fix this



Try using isset on every INDEX error you have and for the VARIABLES they are missing or not recognized.

PHP Code:

case (isset($_GET['up_success'])): 


XGODY 24th May 2017 13:21

Mybonus
DB

Code:

$INSERT[] = "INSERT INTO bonus (id, bonusname, points, description, art, menge) VALUES
(1, '1.0GB Uploaded', 275.0, 'With enough bonus points acquired, you are able to exchange them for an Upload Credit. The points are then removed from your Bonus Bank and the credit is added to your total uploaded amount.', 'traffic', 1073741824, 1.0, 'no', 275),
(2, '2.5GB Uploaded', 350.0, 'With enough bonus points acquired, you are able to exchange them for an Upload Credit. The points are then removed from your Bonus Bank and the credit is added to your total uploaded amount.', 'traffic', 2684354560, 1.0, 'no', 350),
(3, '5GB Uploaded', 550.0, 'With enough bonus points acquired, you are able to exchange them for an Upload Credit. The points are then removed from your Bonus Bank and the credit is added to your total uploaded amount.', 'traffic', 5368709120, 1.0, 'no', 550),
(4, 'Custom Title!', 50.0, 'For only 50.0 Karma Bonus Points you can buy yourself a custom title. the only restrictions are no foul or offensive language or userclass can be entered. The points are then removed from your Bonus Bank and your special title is changed to the title of your choice', 'title', 1, 1.0, 'yes', 50),
(5, 'VIP Status', 5000.0, 'With enough bonus points acquired, you can buy yourself VIP status for one month. The points are then removed from your Bonus Bank and your status is changed.', 'class', 1, 1.0, 'yes', 5000),
(6, 'Give A Karma Gift', 100.0, 'Well perhaps you dont need the upload credit, but you know somebody that could use the Karma boost! You are now able to give your Karma credits as a gift! The points are then removed from your Bonus Bank and added to the account of a user of your choice!\r\n\r\nAnd they recieve a PM with all the info as well as who it came from...', 'gift_1', 1073741824, 1.0, 'no', 100),
(7, 'Custom Smilies', 300.0, 'With enough bonus points acquired, you can buy yourself a set of custom smilies for one month! The points are then removed from your Bonus Bank and with a click of a link, your new smilies are available whenever you post or comment!', 'smile', 1, 1.0, 'yes', 300),
(8, 'Remove Warning', 1000.0, 'With enough bonus points acquired... So you''ve been naughty... tsk tsk :P Yep now for the Low Low price of only 1000 points you can have that warning taken away lol.!', 'warning', 1, 1.0, 'yes', 1000),
(9, 'Ratio Fix', 500.0, 'With enough bonus points acquired, you can bring the ratio of one torrent to a 1 to 1 ratio! The points are then removed from your Bonus Bank and your status is changed.', 'ratio', 1, 1.0, 'yes', 500),
(10, '200 Bonus Points - Invite trade-in', 1.0, 'If you have 1 invite and dont use them click the button to trade them in for 200 Bonus Points.', 'itrade', 200, 0.0, 'no', 0)";


iforgot 24th May 2017 14:09

Ok, I was wrong about that.

You'd be here all day trying to repair this code, it's probably best to use something later.

';
    break;
    case ($gets['id'] == 7):
    $HTMLOUT .='';
    break;
    case ($gets['id'] == 9):
    $HTMLOUT .='';
    break;
    case ($gets['id'] == 10):
    $HTMLOUT .='';
    break;
    default:
    $HTMLOUT .='';
}
    $HTMLOUT .='';
    if($bonus >= $gets['points']) {
    switch (true){
    case ($gets['id'] == 7):
    $HTMLOUT .='';
    break;
    default:
    $HTMLOUT .='';
}
    }else
    $HTMLOUT .='';
}
    $HTMLOUT .='
XGODY 24th May 2017 17:15

Yep

Mybonus.php

Code:

/*
+------------------------------------------------
|  TBDev.net BitTorrent Tracker PHP
|  =============================================
|  by Cod3r
|  (c) 2010 - 2016 torrentstrike.net/
http://www.tbdev.net
|  =============================================
|  svn: http://sourceforge.net/projects/tbdevnet/
|  Licence Info: GPL
+------------------------------------------------
|  $Date$
|  $Revision$
|  $Author$
|  $URL$
+------------------------------------------------
*/
require_once "include/bittorrent.php";
require_once "include/user_functions.php";
dbconn();
loggedinorreturn();
$lang = array_merge( load_language('global'), load_language('mybonus') );
$HTMLOUT ='';
function I_smell_a_rat($var){
        if ((0 + $var) == 1)
          $var = 0 + $var;
          else
  stderr("Error", "I smell a rat!");
}
          $bonus = htmlspecialchars($CURUSER['seedbonus'], 1);
  switch (true){
    case (isset($_GET['up_success'])):
          I_smell_a_rat($_GET['up_success']);
          $amt = (int)$_GET['amt'];
  switch ($amt) {
    case $amt == 75.0:
          $amt = '1 GB';
          break;
    case $amt == 150.0:
          $amt = '2.5 GB';
          break;
        default:
          $amt = '5 GB';
}
    $HTMLOUT .=''.''.'

Success !

good_karmaCongratulations ! '.$CURUSER['username'].''.$amt.' you have just increased your upload amount !'.' w00t click to go back to your '.'Karma Bonus Point page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['class_success'])):
    I_smell_a_rat($_GET['class_success']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .=''.'

Success !

good_karma'.'Congratulations! '.$CURUSER['username'].' you have got yourself VIP Status for one month ! w00t'.' Click to go back to your Karma Points page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['smile_success'])):
    I_smell_a_rat($_GET['smile_success']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .=''.'

Success !

good_karma'.'Congratulations! '.$CURUSER['username'].' you have got yourself a set of custom smilies for one month ! w00t'.' Click to go back to your Karma Points page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['warning_success'])):
    I_smell_a_rat($_GET['warning_success']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .=''.'

Success !

good_karma'.'Congratulations! '.$CURUSER['username'].' you have removed your warning for the low price of 5000 points!! w00t'.' Click to go back to your Karma Points page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['invite_success'])):
    I_smell_a_rat($_GET['invite_success']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .='

Success !

'.'good_karma'.'Congratulations! '.$CURUSER['username'].' you have got your self 3 new invites! w00t'.' click to go back to your Karma Bonus Point page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['title_success'])):
    I_smell_a_rat($_GET['title_success']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .=''.'

Success !

good_karma'.'Congratulations! '.$CURUSER['username'].' you are now known as '.$CURUSER['title'].' ! w00t'.' click to go back to your Karma Bonus Point page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['gift_fail'])):
    I_smell_a_rat($_GET['gift_fail']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .='

Huh?

'.'good_karmaNot so fast there Mr. fancy pants!'.''.$CURUSER['username'].'... you can not spread the karma to yourself...If you want to spread the love, pick another user! '.' click to go back to your Karma Bonus Point page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['gift_fail_user'])):
    I_smell_a_rat($_GET['gift_fail_user']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .='

Error

'.'good_karmaSorry '.$CURUSER['username'].'...'.' No User with that username  click to go back to your Karma Bonus Point page.'.'
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['gift_fail_points'])):
    I_smell_a_rat($_GET['gift_fail_points']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .='

OUPS!

'.'oupsSorry '.$CURUSER['username'].' you don\'t have enough Karma points'.' go back to your Karma Bonus Point page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
    case (isset($_GET['gift_success'])):
    I_smell_a_rat($_GET['gift_success']);
    stdhead($CURUSER['username'] . "'s Karma Bonus Page");
    $HTMLOUT .='

Success !

'.'good_karmaCongratulations! '.$CURUSER['username'].' '.'you have spread the Karma well.Member '.htmlspecialchars($_GET['usernamegift']).' will be pleased with your kindness!This is the message that was sent:'.'Subject: Someone Loves you!

You have been given a gift of '.(0 + $_GET['gift_amount_points']).' Karma points by '.$CURUSER['username'].'

'.'You may also send '.htmlspecialchars($_GET['usernamegift']).' a message as well, or go back to your Karma Bonus Point page.
';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
    die;
}
    if ($_GET['exchange']){
    I_smell_a_rat($_GET['exchange']);
    $userid = 0 + $CURUSER['id'];
    if (!is_valid_id($userid))
    stderr("Error", "That is not your user ID!");
    $option = 0 + $_POST['option'];
    $res_points = mysql_query("SELECT * FROM bonus WHERE id =" . sqlesc($option));
    $arr_points = mysql_fetch_assoc($res_points);
    $art = $arr_points['art'];
    $points = $arr_points['points'];
    if ($points == 0)
    stderr("Error", "I smell a rat!");
    $seedbonus = htmlspecialchars($bonus-$points,1);
    $upload = $CURUSER['uploaded'];
    $bonuscomment = $CURUSER['bonuscomment'];
    $bpoints = $CURUSER['seedbonus'];
    if ($bonus < $points)
    stderr("Sorry", "you do not have enough Karma points!");
    switch ($art){
    case 'traffic':
    $up = $upload + $arr_points['menge'];
    $bonuscomment = gmdate("Y-m-d") . " - " .$points. " Points for upload bonus.\n " .$bonuscomment;
    mysql_query("UPDATE users SET uploaded = $upload + $arr_points[menge], seedbonus = '$seedbonus', bonuscomment = '$bonuscomment' WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?up_success=1&amt=$points");
    die;
    break;
    case 'class':
    if ($CURUSER['class'] > UC_VIP)
    stderr("Error", "Now why would you want to lower yourself to VIP?go back to your Karma Bonus Point page and think that one over.");
    $vip_until = get_date_time(gmtime() + 28*86400);
    $bonuscomment = gmdate("Y-m-d") . " - " .$points. " Points for 1 month VIP Status.\n " .$bonuscomment;
    mysql_query("UPDATE users SET class = ".UC_VIP.", vip_added = 'yes', vip_until = '$vip_until', seedbonus = '$seedbonus' WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?class_success=1");
    die;
    break;
    case 'warning':
    if ($CURUSER['warned'] == 'no')
    stderr("Error", "How can we remove a warning that isn't there?go back to your Karma Bonus Point page and think that one over.");
    $bonuscomment = gmdate("Y-m-d") . " - " .$points. " Points for removing warning.\n " .$bonuscomment;
    $res_warning = mysql_query("SELECT modcomment FROM users WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
    $modcomment = htmlspecialchars($arr['modcomment']);
    $modcomment = gmdate("Y-m-d") . " - warning removed by -Bribe with Karma.\n". $modcomment;
    $modcom = sqlesc($modcomment);
    mysql_query("UPDATE users SET warned = 'no', warneduntil = '0000-00-00 00:00:00', seedbonus = '$seedbonus', bonuscomment = '$bonuscomment', modcomment = $modcom WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
    $dt = sqlesc(get_date_time());
    $subject = sqlesc("Warning removed by Karma.");
    $msg = sqlesc("Your warning has been removed by the big Karma payoff... Please keep on your best behaviour from now on.\n");
    mysql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $userid, $dt, $msg, $subject)") or sqlerr(__FILE__, __LINE__);
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?warning_success=1");
    die;
    break;
    case 'smile':
    $smile_until = get_date_time(gmtime() + 28*86400);
    $bonuscomment = gmdate("Y-m-d") . " - " .$points. " Points for 1 month of custom smilies.\n " .$bonuscomment;
    mysql_query("UPDATE users SET smile_until = '$smile_until', seedbonus = '$seedbonus' WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?smile_success=1");
    die;
    break;
    case 'invite':
    $invites = $CURUSER['invites'];
    $inv = $invites+$arr_points['menge'];
    $bonuscomment = gmdate("Y-m-d") . " - " .$points. " Points for invites.\n " .$bonuscomment;
    mysql_query("UPDATE users SET invites = '$inv', seedbonus = '$seedbonus' WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?invite_success=1");
    die;
    break;
    case 'title':
    $title = sqlesc(htmlentities($_POST['title']));
    $words = array('fuck', 'shit', 'Moderator', 'Administrator', 'Admin', 'pussy', 'Sysop', 'cunt', 'nigger', 'VIP', 'Super User', 'Power User', 'ADMIN', 'SYSOP', 'MODERATOR', 'ADMINISTRATOR');
    $title = str_replace($words, "I just wasted my karma", $title);
    $bonuscomment = gmdate("Y-m-d") . " - " .$points. " Points for custom title. old title was $CURUSER[title] new title is $title\n " .$bonuscomment;
    mysql_query("UPDATE users SET title = $title, seedbonus = '$seedbonus' WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?title_success=1");
    die;
    break;
    case 'gift_1':
    $points = 0 + $_POST['bonusgift'];
    $usernamegift = htmlentities(trim($_POST['username']));
    $res = mysql_query("SELECT id,seedbonus,bonuscomment,username FROM users WHERE username=" . sqlesc($usernamegift));
    $arr = mysql_fetch_assoc($res);
    $useridgift = $arr['id'];
    $userseedbonus = $arr['seedbonus'];
    $bonuscomment_gift = $arr['bonuscomment'];
    $usernamegift = $arr['username'];
    $check_me = array(100,200,300,400,500,5000);
    if (!in_array($points, $check_me))
    stderr("Error", "I smell a rat!");
    if($bonus >= $points){
    $points= htmlspecialchars($points,1);
    $bonuscomment = gmdate("Y-m-d") . " - " .$points. " Points as gift to $usernamegift .\n " .$bonuscomment;
    $bonuscomment_gift = gmdate("Y-m-d") . " - recieved " .$points. " Points as gift from $CURUSER[username] .\n " .$bonuscomment_gift;
    $seedbonus = $bonus-$points;
    $giftbonus1 = $userseedbonus+$points;
    if ($userid==$useridgift){
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?gift_fail=1");
    die;
}
    if (!$useridgift){
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?gift_fail_user=1");
    die;
}
    mysql_query("SELECT bonuscomment,id FROM users WHERE id = '$useridgift'") or sqlerr(__FILE__, __LINE__);
    mysql_query("UPDATE users SET seedbonus = '$seedbonus', bonuscomment = '$bonuscomment' WHERE id = '$userid'") or sqlerr(__FILE__, __LINE__);
    mysql_query("UPDATE users SET seedbonus = '$giftbonus1', bonuscomment = '$bonuscomment_gift' WHERE id = '$useridgift'");
    $subject = sqlesc("Someone Loves you");
    $added = sqlesc(get_date_time());
    $msg = sqlesc("You have been given a gift of $points Karma points by ".$CURUSER['username']);
    mysql_query("INSERT INTO messages (sender, subject, receiver, msg, added) VALUES(0, $subject, $useridgift, $msg, $added)") or sqlerr(__FILE__, __LINE__);
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?gift_success=1&gift_amount_points=$points&usernamegift=$usernamegift&gift_id=$useridgift");
    die;
    }else{
    header("Refresh: 0; url={$TBDEV['baseurl']}/mybonus.php?gift_fail_points=1");
    die;
}
    break;
}
}
    $HTMLOUT .=''.''.'';
    $res = mysql_query("SELECT * FROM bonus ORDER BY id ASC");
    while ($gets = mysql_fetch_assoc($res)){
    $count1= (++$count1)%2;
    $class = 'clearalt'.($count1==0?'6':'7');
    $otheroption = "
'.'

'.$SITENAME.' Karma Bonus Point system:

'.'Exchange your Karma Bonus Points [ current '.$bonus.' ] for goodies!'.'[ If no buttons appear, you have not earned enough bonus points to trade. ]
DescriptionPointsTrade
Username: to be given: Karma points!
";
    $otheroption_title = "";
    $HTMLOUT .='
';
    switch (true){
    case ($gets['id'] == 5):
    $HTMLOUT .='

'.$gets['bonusname'].'

'.$gets['description'].'Enter the Special Title you would like to have '.$otheroption_title.' click Exchange!
'.$gets['points'].'

'.$gets['bonusname'].'

'.$gets['description'].'Enter the username of the person you would like to send karma to, and select how many points you want to send and click Exchange!'.$otheroption.'
min.'.$gets['points'].'max.5000

'.$gets['bonusname'].'

'.$gets['description'].'
min.'.$gets['points'].'

'.$gets['bonusname'].'

'.$gets['description'].'Enter the ID number of the Torrent: you would like to buy a 1 to 1 ratio on.
min.'.$gets['points'].'

'.$gets['bonusname'].'

'.$gets['description'].'
'.$gets['points'].' more points needed

What the hell are these Karma Bonus points,'.' and how do I get them?

- For every hour that you seed a torrent, you are awarded with 1'.' Karma Bonus Point... If you save up enough of them, you can trade them in for goodies like bonus GB(s) to '.'your upload stats,getting more invites, or doing the real Karma booster... give them to another user!'.'and yes! this is awarded on a per torrent basis (max of 5) even if there are no leechers on the Torrent you are seeding! '.'

Other things that will get you karma points:

  • uploading a new torrent = 15 points
  • '.'uploading a new subtitle = 10 points
  • comment on torrent = 3 points
  • '.'
  • saying thanks = 2 points
  • making a post = 1 point
  • '.'
  • starting a topic = 1 point
  • voting on poll = 1 point
  • filling a request = 10 points
  • '.'

Some things that will cost you karma points:

    '.'
  • upload credit
  • custom title
  • '.'
  • a 1:1 ratio on a torrent
  • '.'
  • buying off your warning
  • one month custom smilies for the forums and comments
  • '.'
  • getting extra invites
  • giving a gift of karma points to another user
  • '.'
  • asking for a re-seed
  • making a request

But keep in mind that everything that can get'.' you karma can also be lost, ie:if you up a torrent then delete it, you will gain and then lose 10 points, '.'making a post and having it deleted will do the same... and there are other hidden bonus karma points all '.'over the site.Yet another way to help out your ratio!

*please note, staff can give or take away '.'points for breaking the rules, or doing good for the community.

';
    print stdhead($CURUSER['username'] . "'s Karma Bonus Points Page") . $HTMLOUT . stdfoot();
?>

Chez 24th May 2017 22:04

Briliant :lol: exactly what i've said :wallbash: just use isset when you got index errors. You people are unbelievable.

XGODY 26th May 2017 10:42

Thaxted admin for tags would not work for me

Bump: By the way chez it was more then one error line look at it can you see what else it was apart from isset

Napon 30th September 2017 22:02

Ive done a repo so it will be on here soon with all errors fixed so on

dtorrent 1st December 2017 17:22

error
 
https://tor.pingnova.com/members.php?action=reg

Napon 1st December 2017 17:40

This is old download the new repo from new post

Here http://www.bvlist.com/showthread.php?t=11263


All times are GMT +2. The time now is 14:10.

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