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 16th February 2016 14:21

Napon Modded TBDev
 
3 Attachment(s)
Read the install to set this tracker up:drink:
this i wanted to work on ill get back to moding it some time too many jobs on the go at min but have fun nice tracker

Set Up Instructions :


Repo Aadded geshi libaries

Set Up Instructions :
First upload the code to your server and chmod
chmod 0777 Folder/cache And all files
chmod 0777 Folder/logs
chmod 0777 Folder/include/config
chmod 0777 Folder/torrents
chmod 0777 Folder/install/announce_dist/config_dist
Create a new database user and password via phpmyadmin - Point to http://yoursite.com/install/index.php - fill in all the required data

MODS

Home page
new user
polls and tools to make polls
shotbox
users online

cronclean
cronclean for seedbonus and trade seedbonus page

class colurs
overall class colurs from staff to users and class icons from staff to users

Profiles
up dated profiles with connectable,agent,seedbonus,class icons

i have no more time to fully mod this TBDev_2016 too many jobs on the go

mpx 16th February 2016 20:26

i think that config.php file missing ?

http://shrani.si/f/n/1N/4vgBFXjI/scr...16-02-16-a.png

ermobih 16th February 2016 20:41

any screens, what for modds???

Napon 16th February 2016 23:22

the config not missing at all have you include/config too chmod 0777 as the install fills this for you mate read the torrentstrike.net install cmd txt ...

bhast2 17th February 2016 10:16

what is new with this one

Please list changes and mods and what not

thanks

DND 17th February 2016 12:14

Tbdev2016? really? and still use mysql
and also javairc that is not supported by java anymore.

Napon 17th February 2016 18:27

1 Attachment(s)
DND do really think any user are bothered what you think about it i think not..As everyone likes the old OS and it will be under taken in time by my self thats nippen in the bud... any way update

DND 17th February 2016 18:29

yes they would.:coffee:

Napon 17th February 2016 23:41

And there was me going to put the upgrade on repo and this as put a end to it DND coss of peeps like your self putting remarks on like your self so if any one wants the upgrade no charge just pm me and all give you the link to download it

DND 18th February 2016 00:07

upgrade it already. its a ~5mins job.
and also you should minify that html/php code because it is all over the place.

Napon 18th February 2016 11:36

:ok:

DND 21st February 2016 11:42

why make another topic? didn't ya had one already ?

Napon 21st February 2016 11:44

This is the full Repo DND with all updates m8 was not add to old post thread so staff can you remove the old thread post please as the new Repo done:drink:

DND 21st February 2016 11:51

so i guess it was harder for you to edit that topic/post? :wallbash:
mneh... nevermind..

Napon 21st February 2016 11:53

No DND ive not gone to that yes will do in time as ive too much work on at the min but will do in time... when ive done the work ive got on at the min :drink:

ermobih 29th February 2016 19:56

where is the announce.php???

Napon 1st March 2016 18:22

in the install you must use the installer it add to the Dir root cmod all files fist then go to the installer by http://yoursite.com/install/index.php

Grilo 2nd March 2016 14:33

$TBDEV['baseurl'] needs a "/" in the end of url

#edit above

Uhh...


http://i.imgur.com/tstGZSD.png

But CSS loads correctly.

Napon 7th March 2016 00:36

1 Attachment(s)
updated files can not add to fist post too much timing on it set by admin so have to post here

mf435 7th March 2016 13:44

Hello,

I am experiencing this error:

PHP Code:

Notice:  Undefined offset1 in C:\xampp\htdocs\include\bittorrent.php on line 116 

I am not sure how to fix it.
Hope someone can help me out, thanks.
MF435

** All is good now I just installed default tbdev and added mods myself, thanks for your base version though.

Napon 8th March 2016 21:35

this it on 116

Code:

    $md5ip = md5($octet[0].$TBDev['mysql_user'].$row['passhash'].$TBDev['mysql_host'].$octet[1]);
    if( !get_mycookie('ipcheck') OR (get_mycookie('ipcheck') !== $md5ip) )
      return;
}


Viny 26th March 2016 18:29

the button "proceed" is not available

Quote:

Warning! The following errors must be rectified before continuing!

This feature has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged. About Magic Quotes
i need make downgrade php version? how make?

http://i.imgur.com/euN6SO1.jpg

joeroberts 26th March 2016 18:39

Just disable Magic Quotes
http://php.net/manual/en/security.ma....disabling.php

Viny 26th March 2016 19:46

Quote:

Originally Posted by joeroberts (Post 48636)

it worked, thank you man

Napon 26th March 2016 23:13

@RootDir

Replace in side the htaccess the below


PHP Code:

php_value magic_quotes_gpc 0
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime off
######################
#ErrorPages
ErrorDocument 400 /error.php?400
ErrorDocument 401 
/error.php?401
ErrorDocument 403 
/error.php?403
ErrorDocument 404 
/error.php?404
ErrorDocument 500 
/error.php?500
################################################## 


Viny 30th March 2016 20:48

i just installed

/mybonus.php
http://i.imgur.com/I0mfrKy.png

Napon 10th April 2016 21:18

mybonus
 
mybonus fix

Code:

/*
+------------------------------------------------
|  BitTorrent Tracker PHP
|  =============================================
|  by Cod3r
|  (c) 2015 - 2016 torrentstrike.net
|  http://torrentstrike.net
|  =============================================
|  Licence Info: GPL
+------------------------------------------------
*/
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 ($_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'].' 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;
}
            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;
                }
}
$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');
$HTMLOUT .='';
    switch (true){
    case ($gets['id'] == 5):
          break;
          default:
$HTMLOUT .='';
}
$HTMLOUT .='';
            if($bonus >= $gets['points']) {
            switch (true){
            case ($gets['id'] == 7):
$HTMLOUT .='';
            break;
            default:
$HTMLOUT .='';
}
            }else
$HTMLOUT .='';
}
$HTMLOUT .='
'.'

'.$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

'.$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();
?>


Viny 22nd April 2016 13:56

Quote:

Originally Posted by Napon (Post 48683)
mybonus fix

Code:

/*
+------------------------------------------------
|  BitTorrent Tracker PHP
|  =============================================
|  by Cod3r
|  (c) 2015 - 2016 torrentstrike.net
|  http://torrentstrike.net
|  =============================================
|  Licence Info: GPL
+------------------------------------------------
*/
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 ($_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'].' 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;
}
            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;
                }
}
$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');
$HTMLOUT .='';
    switch (true){
    case ($gets['id'] == 5):
          break;
          default:
$HTMLOUT .='';
}
$HTMLOUT .='';
            if($bonus >= $gets['points']) {
            switch (true){
            case ($gets['id'] == 7):
$HTMLOUT .='';
            break;
            default:
$HTMLOUT .='';
}
            }else
$HTMLOUT .='';
}
$HTMLOUT .='
'.'

'.$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

'.$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();
?>


the problem has decreased but still remains
Code:

Notice: Undefined index: up_success in /home/vinyg365/public_html/monkeyz/mybonus.php on line 27

Notice: Undefined index: exchange in /home/vinyg365/public_html/monkeyz/mybonus.php on line 45

Notice: Undefined variable: SITENAME in /home/vinyg365/public_html/monkeyz/mybonus.php on line 73

Notice: Undefined variable: count1 in /home/vinyg365/public_html/monkeyz/mybonus.php on line 76


bbta 7th May 2016 19:19

I am also having this problem

Napon 7th May 2016 20:52

PHP Code:

<?php
    
require_once("include/bittorrent.php");
    require_once(
"include/user_functions.php");
    
//require_once("include/bbcode_functions.php");
    
dbconn(false);

    
loggedinorreturn();
    
$lang array_mergeload_language('global'), load_language('mybonus') );
    
$HTMLOUT ='';
    function 
I_smell_a_rat($var){
if ((
$var) == 1)
    
$var $var;
    else
    
stderr("{$lang['bonus_error_msg']}""{$lang['bonus_rat_msg']}");
}
    
$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 .= "<table align='center' width='80%'>
    <tr>
    <td class='colhead' align='left' colspan='2'><h1>
{$lang['bonus_success']}</h1></td>
    </tr><tr>
    <td class='colhead' align='left'><img src='
{$TBDEV['pic_base_url']}smilies/karma.gif' alt='{$lang['bonus_img_karma']}' title='{$lang['bonus_img_karma']}' /></td>
    <td class='colhead' align='left'><b>
{$lang['bonus_congrat']}</b>".$CURUSER['username']."{$lang['bonus_uploadinc']}".$amt."!
    <img src='
{$TBDEV['pic_base_url']}smilies/w00t.gif' alt='{$lang['bonus_img_woot']}' title='{$lang['bonus_img_woot']}' />{$lang['bonus_goback']}</td>
    </tr>
    </table>"
;
    print 
stdhead('Bonus Karma') . $HTMLOUT stdfoot();
    die;
    case (isset(
$_GET['class_success'])):
    
I_smell_a_rat($_GET['class_success']);
    
$HTMLOUT .="<table align='center' width='80%'><tr><td class='colhead' align='left' colspan='2'><h1>{$lang['bonus_success']}</h1></td></tr>
    <tr><td align='left' class='colhead'><img src='
{$TBDEV['pic_base_url']}smilies/karma.gif' alt='{$lang['bonus_img_karma']}' title='{$lang['bonus_img_karma']}' /></td><td align='left' class='colhead'>
    <b>
{$lang['bonus_congrat']}</b>".$CURUSER['username']."{$lang['bonus_vip']}<img src='{$TBDEV['pic_base_url']}smilies/w00t.gif' alt='{$lang['bonus_img_woot']}' title='{$lang['bonus_img_woot']}' />
    
{$lang['bonus_goback']}</td></tr></table>";
    print 
stdhead('Karma Bonus') . $HTMLOUT stdfoot();
    die;

    case (isset(
$_GET['warning_success'])):
    
I_smell_a_rat($_GET['warning_success']);
    
$HTMLOUT .="<table align='center' width='80%'><tr><td class='colhead' align='left' colspan='2'><h1>{$lang['bonus_success']}</h1></td></tr>
    <tr><td align='left' class='colhead'><img src='
{$TBDEV['pic_base_url']}smilies/karma.gif' alt='{$lang['bonus_img_karma']}' title='{$lang['bonus_img_karma']}' /></td><td align='left' class='colhead'>
    <b>
{$lang['bonus_congrat']}</b>".$CURUSER['username']."{$lang['bonus_warning']}<img src='{$TBDEV['pic_base_url']}smilies/w00t.gif' alt='{$lang['bonus_img_woot']}' title='{$lang['bonus_img_woot']}' />
    
{$lang['bonus_goback']}</td></tr></table>";
    print 
stdhead('Karma Bonus') . $HTMLOUT stdfoot();
    die;
    case (isset(
$_GET['invite_success'])):
    
I_smell_a_rat($_GET['invite_success']);
    
$HTMLOUT .="<table align='center' width='80%'><tr><td class='colhead' align='left' colspan='2'><h1>{$lang['bonus_success']}</h1></td></tr><tr><td align='left' class='colhead'>
    <img src='
{$TBDEV['pic_base_url']}smilies/karma.gif' alt='{$lang['bonus_img_karma']}' title='{$lang['bonus_img_karma']}' /></td><td align='left' class='colhead'>
    <b>
{$lang['bonus_congrat']}</b>".$CURUSER['username']."{$lang['bonus_invites']}<img src='{$TBDEV['pic_base_url']}smilies/w00t.gif' alt='{$lang['bonus_img_woot']}' title='{$lang['bonus_img_woot']}' />{$lang['bonus_goback']}</td></tr></table>";
    print 
stdhead('Karma Bonus') . $HTMLOUT stdfoot();
    die;
}
if (isset(
$_GET['exchange'])){
    
I_smell_a_rat($_GET['exchange']);
    
$userid $CURUSER['id'];
    if (!
is_valid_id($userid))
    
stderr("{$lang['bonus_error_msg']}""{$lang['bonus_notid_msg']}");
    
$option $_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("{$lang['bonus_error_msg']}""{$lang['bonus_rat_msg']}");
    
$seedbonus=htmlspecialchars($bonus-$points,1);
    
$upload $CURUSER['uploaded'];
    
$download $CURUSER['downloaded'];
    
$bonuscomment $CURUSER['bonuscomment'];
    
$bpoints $CURUSER['seedbonus'];
if(
$bonus $points)
    
stderr("{$lang['bonus_sorry']}""{$lang['bonus_notenough_msg']}");
    switch (
$art){
    case 
'traffic':
    
$up $upload $arr_points['menge'];
    
$bonuscomment get_datetime(), 'DATE') . " - " .$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 
'traffic2':
    case 
'ratio':
    
$torrent_number $_POST['torrent_id'];
    
$res_snatched mysql_query("SELECT s.uploaded, s.downloaded, t.name FROM snatched AS s LEFT JOIN torrents AS t ON t.id = s.torrentid WHERE s.userid = '$userid' AND torrentid = ".sqlesc($torrent_number)." LIMIT 1") or sqlerr(__FILE____LINE__);
    
$arr_snatched mysql_fetch_assoc($res_snatched);
if (
$arr_snatched['name'] == '')
    
stderr("{$lang['bonus_error_msg']}""{$lang['bonus_notorrent_msg']}");
if (
$arr_snatched['uploaded'] >= $arr_snatched['downloaded'])
    
stderr("{$lang['bonus_error_msg']}""{$lang['bonus_fineratio_msg']}");
    
mysql_query("UPDATE snatched SET uploaded = '$arr_snatched[downloaded]' WHERE userid = '$userid' AND torrentid = ".sqlesc($torrent_number)) or sqlerr(__FILE____LINE__);
    
$difference $arr_snatched['downloaded'] - $arr_snatched['uploaded'];
    
$bonuscomment get_datetime(), 'DATE') . " - " .$points" Points for 1 to 1 ratio on torrent: ".$arr_snatched['name']." ".$torrent_number.", ".$difference." added .\n " .$bonuscomment;
    
mysql_query("UPDATE users SET uploaded = $upload + $difference, bonuscomment = '$bonuscomment', seedbonus = '$seedbonus' WHERE id = '$userid'") or sqlerr(__FILE____LINE__);
    
header("Refresh: 0; url='{$TBDEV['baseurl']}/mybonus.php?ratio_success=1'");
    die;
     break;
     case 
'warning':
if (
$CURUSER['warned'] == 'no')
    
stderr("{$lang['bonus_error_msg']}""{$lang['bonus_notthere_msg']}");
    
$bonuscomment get_datetime(), 'DATE') . " - " .$points" Points for removing warning.\n " .$bonuscomment;
    
$res_warning mysql_query("SELECT modcomment FROM users WHERE id = '$userid'") or sqlerr(__FILE____LINE__);
    
$arr mysql_fetch_assoc($res_warning);
    
$modcomment htmlspecialchars($arr['modcomment']);
    
$modcomment get_datetime(), 'DATE') . " - Warning removed by - Bribe with Karma.\n"$modcomment;
    
$modcom sqlesc($modcomment);
    
mysql_query("UPDATE users SET warned = 'no', warneduntil = '0', seedbonus = '$seedbonus', bonuscomment = '$bonuscomment', modcomment = $modcom WHERE id = '$userid'") or sqlerr(__FILE____LINE__);
    
$dt sqlesc(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 
'invite':
    
$invites $CURUSER['invites'];
    
$inv $invites+$arr_points['menge'];
    
$bonuscomment get_datetime(), 'DATE') . " - " .$points" Points for invites.\n " .$bonuscomment;
    
mysql_query("UPDATE users SET invites = '$inv', seedbonus = '$seedbonus', bonuscomment = '$bonuscomment' WHERE id = '$userid'") or sqlerr(__FILE____LINE__);
    
header("Refresh: 0; url='{$TBDEV['baseurl']}/mybonus.php?invite_success=1'");
     die;
     break;
    }
}
          
$HTMLOUT .="<div class='roundedCorners' style='text-align:left;width:80%;border:1px solid black;padding:5px;'><div style='background:transparent;height:25px;'><span style='font-weight:bold;font-size:12pt;'>{$lang['bonus_system']}</span></div>";
          
$HTMLOUT .="<table align='center' width='100%' border='1' cellspacing='0' cellpadding='5'><tr><td align='center' colspan='4' style='background:transparent;height:25px;'>{$lang['bonus_exchangepoints']}".$bonus."{$lang['bonus_goodies']}{$lang['bonus_no_buttons']}</td></tr><tr><td style='background:transparent;height:25px;' align='left'>{$lang['bonus_head_descr']}</td><td style='background:transparent;height:25px;' align='center'>{$lang['bonus_head_points']}</td><td style='background:transparent;height:25px;' align='center'>{$lang['bonus_head_trade']}</td></tr>";
          
$res mysql_query("SELECT * FROM bonus ORDER BY id ASC");
    while (
$gets mysql_fetch_assoc($res)){
          
$count1='';
          
$count1= (++$count1)%2;
          
$class 'clearalt'.($count1==0?'6':'7');
          
$otheroption "<table class='colhead' align='center' width='100%'><tr><td class='".$class."'><b>{$lang['bonus_op_username']}</b><input type='text' name='username' size='20' maxlength='24' /></td><td class='".$class."'> <b>{$lang['bonus_op_given']}</b><select name='bonusgift'> <option value='100.0'> 100.0</option> <option value='200.0'> 200.0</option> <option value='300.0'> 300.0</option> <option value='400.0'> 400.0</option><option value='500.0'> 500.0</option><option value='666.0'> 666.0</option></select>{$lang['bonus_op_karma']}</td></tr></table>";
    switch (
true){
    case (
$gets['id'] == 5):
           
$HTMLOUT .="<tr><td class='colhead'align='left' class='".$class."'><form action='{$TBDEV['baseurl']}/mybonus.php?exchange=1' method='post'><input type='hidden' name='option' value='".$gets['id']."' /> <input type='hidden' name='art' value='".$gets['art']."' /><h1><font color='#CECFF3'>".$gets['bonusname']."</font></h1>".$gets['description']."{$lang['bonus_op_title']}<input type='text' name='title' size='30' maxlength='30' />{$lang['bonus_op_click']}</td><td align='center' class='".$class."'>".$gets['points']."</td>";
    break;
     case (
$gets['id'] == 7):
           
$HTMLOUT .="<tr><td class='colhead'align='left' class='".$class."'><form action='{$TBDEV['baseurl']}/mybonus.php?exchange=1' method='post'><input type='hidden' name='option' value='".$gets['id']."' /> <input type='hidden' name='art' value='".$gets['art']."' /><h1><font color='#CECFF3'>".$gets['bonusname']."</font></h1>".$gets['description']."{$lang['bonus_op_username2']}".$otheroption."</td><td align=center class='".$class."'>{$lang['bonus_op_min']}".$gets['points']."{$lang['bonus_op_max']}666</td>";
    break;
     case (
$gets['id'] == 9):
           
$HTMLOUT .="<tr><td class='colhead'align='left' class='".$class."'><form action='{$TBDEV['baseurl']}/mybonus.php?exchange=1' method='post'><input type='hidden' name='option' value='".$gets['id']."' /> <input type='hidden' name='art' value='".$gets['art']."' /><h1><font color='#CECFF3'>".$gets['bonusname']."</font></h1>".$gets['description']."</td><td align='center' class='".$class."'>{$lang['bonus_op_min']}".$gets['points']."</td>";
    break;
     case (
$gets['id'] == 10):
           
$HTMLOUT .="<tr><td class='colhead'align='left' class='".$class."'><form action='{$TBDEV['baseurl']}/mybonus.php?exchange=1' method='post'><input type='hidden' name='option' value='".$gets['id']."' /> <input type='hidden' name='art' value='".$gets['art']."' /><h1><font color='#CECFF3'>".$gets['bonusname']."</font></h1>".$gets['description']."{$lang['bonus_op_idnum']}<input type='text' name='torrent_id' size='4' maxlength='8' />{$lang['bonus_op_idnum2']}</td><td align='center' class='".$class."'>{$lang['bonus_op_min']}".$gets['points']."</td>";
    break;
    default:
          
$HTMLOUT .="<tr><td class='colhead'align='left' class='".$class."'><form action='{$TBDEV['baseurl']}/mybonus.php?exchange=1' method='post'><input type='hidden' name='option' value='".$gets['id']."' /> <input type='hidden' name='art' value='".$gets['art']."' /><h1><font color='#CECFF3'>".$gets['bonusname']."</font></h1>".$gets['description']."</td><td align='center' class='".$class."'>".$gets['points']."</td>";
}
    if(
$bonus >= $gets['points']) {
          switch (
true){
    case (
$gets['id'] == 7):
          
$HTMLOUT .="<td class='colhead' class='".$class."'><input class='button' type='submit' name='submit' value='Karma Gift!' /></td></form>";
    break;
    default:
          
$HTMLOUT .="<td class='colhead' class='".$class."'><input class='button' type='submit' name='submit' value='Exchange!' /></td></form>";
}
          } else
          
$HTMLOUT .="<td class='colhead' class='".$class."' align='center'>{$lang['bonus_op_more']}</td></form>";
}
           
$HTMLOUT .="</tr></table>
                <div style='background:transparent;height:25px;'>
                <span style='font-weight:bold;font-size:12pt;'>
{$lang['bonus_table_hell']}</span></div>
                <table align='center' width='100%'>
                <tr>
                <td class='colhead'>
{$lang['bonus_table_rest_of']}
                <div align='center'>
                <a class='altlink' href='
{$TBDEV['baseurl']}/index.php'><b>{$lang['bonus_table_go_back']}</b></a></div></td></tr></table></div>";
    print 
stdhead('Karma Bonus Page') . $HTMLOUT stdfoot();
?>

lang_mybonus

PHP Code:

    <?php

    $lang 
= array(

    
#bonus errors
    
'bonus_error_msg' => "Error",
    
'bonus_rat_msg' => "I smell a rat!",
    
'bonus_nouser_msg' => " No User with that username ",
    
'bonus_notid_msg' => "That is not your user ID!",
    
'bonus_notthere_msg' => "How can we remove a warning that isn't there?go back to your <a class='altlink' href='{$TBDEV['baseurl']}/mybonus.php'>Karma Bonus Point</a> page and think that one over.",
    
'bonus_lower_msg' => "Now why would you want to lower yourself to VIP?go back to your <a class='altlink' href='{$TBDEV['baseurl']}/mybonus.php'>Karma Bonus Point</a> page and think that one over.",
    
'bonus_notorrent_msg' => "No torrent with that ID!Back to your <a class='altlink' href='{$TBDEV['baseurl']}/mybonus.php'>Karma Bonus Point</a> page.",
    
'bonus_notenough_msg' => " you don\'t have enough Karma points.",
    
'bonus_fineratio_msg' => "Your ratio on that torrent is fine, you must have selected the wrong torrent ID.Back to your <a class='altlink' href='{$TBDEV['baseurl']}/mybonus.php'>Karma Bonus Point</a> page.",


    
#bonus message
    
'bonus_system' => " Karma Bonus Point's system :",
    
'bonus_goodies' => " ] for goodies!",
    
'bonus_no_buttons' => "[ If no buttons appear, you have not earned enough bonus points to trade. ]",
    
'bonus_exchangepoints' => "Exchange your <a class='altlink' href='{$TBDEV['baseurl']}/mybonus.php'>Karma Bonus Points</a> [ current ",
    
'bonus_success' => "Success!",
    
'bonus_sorry' => "Sorry",
    
'bonus_karma' => "Karma Bonus",
    
'bonus_congrat' => "Congratulations! ",
    
'bonus_by' => "</b> Karma points by ",
    
'bonus_also' => "You may also ",
    
'bonus_send' => "send ",
    
'bonus_orgoback' => " a message as well</a>, or go back to your <a class='altlink' href='mybonus.php'>Karma Bonus Point</a> page.",
    
'bonus_spread' => "you have spread the Karma well.Member <b>",
    
'bonus_love' => " will be pleased with your kindness!This is the message that was sent:<b>Subject:</b> Someone Loves you! <p>You have been given a gift of <b>",
    
'bonus_fancy' => "Not so fast there Mr. fancy pants!",
    
'bonus_cannot' => " you can not spread the karma to yourself...If you want to spread the love, pick another user! ",
    
'bonus_uploadinc' => " you have just increased your upload amount by ",
    
'bonus_smilies' => " you have got yourself a set of custom smilies for one month! ",
    
'bonus_warning' => " you have removed your warning for the low price of 1000 points!! ",
    
'bonus_invites' => " you have got your self 3 new invites! ",
    
'bonus_knownas' => " you are now known as ",
    
'bonus_ratio' => " you have gained a 1 to 1 ratio on the selected torrent, and the difference in MB has been added to your total upload! ",
    
'bonus_vip' => " you have got yourself VIP Status for one month! ",
    
'bonus_goback' => " Click to go back to your <a class='altlink' href='{$TBDEV['baseurl']}/mybonus.php'>Karma Bonus Point</a> page.",
     
    
#bonus img alternates
    
'bonus_img_karma' => "Good Karma",
    
'bonus_img_bad' => "Bad Karma",
    
'bonus_img_woot' => "wOOt",

    
#bonus headers
    
'bonus_head_descr' => "Description",
    
'bonus_head_points' => "Points",
    
'bonus_head_trade' => "Trade",
     
    
#bonus options
    
'bonus_op_username' => "Username:",
    
'bonus_op_username2' => "Enter the <b>username</b> of the person you would like to send karma to, and select how many points you want to send and click Exchange!",
    
'bonus_op_given' => "to be given: ",
    
'bonus_op_karma' => " Karma Points!",
    
'bonus_op_title' => "Enter the <b>Special Title</b> you would like to have ",
    
'bonus_op_click' => " click Exchange! ",
    
'bonus_op_min' => "min.",
    
'bonus_op_max' => "max.",
    
'bonus_op_idnum' => "Enter the <b>ID number of the Torrent:</b> ",
    
'bonus_op_idnum2' => " you would like to buy a 1 to 1 ratio on.</b> ",
    
'bonus_op_more' => "<b>more points needed</b>",
     
    
#bonus table
    
'bonus_table_hell' => "What the hell are these Karma Bonus points, and how do I get them?",
    
'bonus_table_rest_of' => "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! 
      <h1>Other things that will get you karma points : </h1>
      - Uploading a new torrent = 15 points
      - Putting up an offer = 10 points
      - Filling a request = 10 points
      - Comment on torrent = 3 points
      - Saying thanks = 2 points
      - Rating a torrent = 2 points
      - Making a post = 1 point
      - Starting a topic = 2 points 
      
      <h1>Some things that will cost you karma points:</h1>
      - Upload credit
      - Custom title
      - One month VIP status
      - 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 15 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.
      "
,
    
'bonus_table_go_back' => "Back to homepage",
     
     
    
#bonus page name
    
'bonus_page_name' => "Karma Bonus Points page",
     
    );
     
    
?>

PHP Code:

    CREATE TABLE `bonus` (
     `
idINT(5NOT NULL AUTO_INCREMENT,
     `
bonusnameVARCHAR(50NOT NULL DEFAULT '',
     `
pointsDECIMAL(10,1NOT NULL DEFAULT '0.0',
     `
descriptiontext NOT NULL,
     `
artVARCHAR(10NOT NULL DEFAULT 'traffic',
     `
mengeBIGINT(20UNSIGNED NOT NULL DEFAULT '0',
     
PRIMARY KEY (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

PHP Code:

INSERT INTO `bonusVALUES (1'1.0GB Uploaded'75.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);
INSERT INTO `bonusVALUES (2'2.5GB Uploaded'150.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);
INSERT INTO `bonusVALUES (3'5GB Uploaded'250.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);
INSERT INTO `bonusVALUES (4'3 Invites'20.0'With enough bonus points acquired, you are able to exchange them for a few invites. The points are then removed from your Bonus Bank and the invitations are added to your invites amount.''invite'3);
INSERT INTO `bonusVALUES (5'Remove Warning'1000.0'With enough bonus points acquired... So you''ve been naughty... tsk tsk Yep now for the Low Low price of only 1000 points you can have that warning taken away lol.!''warning'1); 

PHP Code:

ALTER TABLE `usersADD `seedbonusdecimal(10,1NOT NULL DEFAULT '200.0'

PHP Code:

ALTER TABLE `usersADD `bonuscommenttext

Find
@userdetails.php
PHP Code:

$modcomment htmlspecialchars($user["modcomment"]); 

under Add

PHP Code:

        $bonuscomment htmlspecialchars($user["bonuscomment"]);
        
$HTMLOUT .= "<tr><td class='rowhead'>{$lang['userdetails_bonus_comment']}</td><td class='col1' colspan='2' align='left'><textarea cols='60' rows='6' name='bonuscomment' readonly='readonly' style='background:purple;color:yellow;'>$bonuscomment</textarea></td></tr>\n"

modtask Add

PHP Code:

          if ((isset($_POST['seedbonus'])) && (($seedbonus $_POST['seedbonus']) != $user['seedbonus']))
         {
         
$modcomment get_datetime(), 'DATE') . " - Seeding bonus set to $seedbonus by " $CURUSER['username'] . ".\n" $modcomment;
         
$updateset[] = "seedbonus = " sqlesc($seedbonus);
         } 

you will have to set all css to your needs

Viny 8th May 2016 14:37

This line is where are ?

PHP Code:

$modcomment htmlspecialchars($user["modcomment"]); 

this line is not in mybonus.php

Napon 8th May 2016 20:50

userdetails.php in there forgot to say where:friend:

Viny 8th May 2016 23:33

in userdetail.php there
Code:

modcomment htmlsafechars = $ ( $ user [ " modcomment " ] ) ;
it is?

firefly007 14th May 2016 23:44

Thank you for modding TbDev but please change the name, this is not TbDev 2016 this is either 2009 or the unfinished 2010.

I'm not trying to discourage you from modding sources, please go wild but its a little disingenuous to call it something that is really little different from 2009 or 2010.



Quote:

Originally Posted by Napon (Post 48442)
Read the install to set this tracker up:drink:
this i wanted to work on ill get back to moding it some time too many jobs on the go at min but have fun nice tracker

Set Up Instructions :


Repo Aadded geshi libaries

Set Up Instructions :
First upload the code to your server and chmod
chmod 0777 Folder/cache And all files
chmod 0777 Folder/logs
chmod 0777 Folder/include/config
chmod 0777 Folder/torrents
chmod 0777 Folder/install/announce_dist/config_dist
Create a new database user and password via phpmyadmin - Point to http://yoursite.com/install/index.php - fill in all the required data

MODS

Home page
new user
polls and tools to make polls
shotbox
users online

cronclean
cronclean for seedbonus and trade seedbonus page

class colurs
overall class colurs from staff to users and class icons from staff to users

Profiles
up dated profiles with connectable,agent,seedbonus,class icons

i have no more time to fully mod this TBDev_2016 too many jobs on the go


Napon 25th July 2016 12:59

i will do a repo of it in a few days as im working on something else at min but will do it:muscle:

MasterMan 1st August 2016 14:22

works great and installed smooth with many thanx for the improvement all-over.

i have 2 things to ask;

1. how to make a mode in the admin panel to disable registration and/ or limit max users mode?

2. how to remove that small rectangle login panel in the header banner area??

wongsa 15th August 2016 14:13

[Req] I want Mod freetorrent tbdev2016
 
[Req] I want Mod freetorrent in tbdev2016 or tbdev 2010 please help me.
:ok:

DND 15th August 2016 18:40

you sure you dont want to win the lottery ?:coffee:

wongsa 16th August 2016 03:34

Let me know about it. I still do not understand it.

Bump:
Quote:

Originally Posted by DND (Post 49204)
you sure you dont want to win the lottery ?:coffee:


Let me know about it. I still do not understand it.

bg 23rd August 2016 03:16

Fatal Error
 
Why do I get fatal error when im trying to sign up?


All times are GMT +2. The time now is 03:54.

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