Bravo List

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

Napon 8th October 2016 18:33

My Modded TBDev
 
1 Attachment(s)
Alot of member have ask me by pm to up date the TBDev_2016

so here it is now back to TBDev_2010 please do not us any code from the TBDev_2016 as it be no good to you all TBDev_2010 as hed a overall of everything from mysql too sql also a new users cp and new bonus read the readme

RikT 8th October 2016 18:43

Quote:

Originally Posted by Napon (Post 49489)
Alot of member have ask me by pm to up date the TBDev_2016

so here it is now back to TBDev_2010 please do not us any code from the TBDev_2016 as it be no good to you all TBDev_2010 as hed a overall of everything from mysql too sql also a new users cp and new bonus read the readme

there has never been an official TBDev 2010 let alone TBDEV 2016

again more fantasy

son 8th October 2016 19:32

Quote:

Originally Posted by Napon (Post 49489)
Alot of member have ask me by pm to up date the TBDev_2016

so here it is now back to TBDev_2010 please do not us any code from the TBDev_2016 as it be no good to you all TBDev_2010 as hed a overall of everything from mysql too sql also a new users cp and new bonus read the readme

Are you for real:lol:
So with your advanced fantasy coding are going to support this.

Napon 9th October 2016 00:24

i will be the one to ask for work for this
As for the rest of you gtaff ok

fireknight 9th October 2016 01:39

A couple of quick and serious questions for you.

Quote:

Originally Posted by Napon (Post 49489)
TBDev_2010 as hed a overall of everything from mysql too sql


1:
While you were doing a full overall and changed over from mysql to sql.
Why did you not just simply update from myqsl to mysqli at the same time.
I would have thought anyone releasing a new source these days would make it mysqli ( more secure ).
And not mysql which is not as secure, not to mention been depreciated over the next few years. ( according to all the reports out there )

2:
While you were doing a full overall.
I thought you would have added.
D.O.B & Country to the registration form, for when new members sign up.

joeroberts 9th October 2016 04:06

All I can say is WOW!

OK
#1 why are you not closing sql conections?
#2 why are you not clearing sql querys?
#3 Your calling this tbdev 2010 here but in your code your calling it torrentstrike.net
PHP Code:

+------------------------------------------------
|   
BitTorrent Tracker PHP
|   =============================================
|   
by Cod3r
|   (c2015 2016 torrentstrike.net
|   http://torrentstrike.net
|   =============================================
|   
Licence InfoGPL
+------------------------------------------------ 

and there there are headers from old tbdev
PHP Code:

+------------------------------------------------
|   
TBDev.net BitTorrent Tracker PHP
|   =============================================
|   
by CoLdFuSiOn
|   (c2003 2011 TBDev.Net
|   http://www.tbdev.net
|   =============================================
|   
svnhttp://sourceforge.net/projects/tbdevnet/
|   Licence InfoGPL
+------------------------------------------------
|   
$Date$
|   
$Revision$
|   
$Author$
|   
$URL$
+------------------------------------------------ 

You have files in there dating back to 2011

#4 this part is going to throw allot of errors
PHP Code:

ob_start("ob_gzhandler"); 

this
PHP Code:

error_reporting(E_ALL); 

is not 100% reliable on all servers if php.ini is suppressing errors and if its not then I can tell you users are going to see allot of E_NOTICE errors and some E_DEPRECATED and that is only from looking over a few files man

son 9th October 2016 11:49

Quote:

Originally Posted by Napon (Post 49494)
i will be the one to ask for work for this
As for the rest of you gtaff ok

So in your cryptic post, let me see if I get the translation right, your the only one that can be contacted for help on this, aside from staff on here.

Someone should give you a nudge so that you can wake up from dreamland.

Napon 9th October 2016 12:12

template
 
1 Attachment(s)
here is a fix for the recover and signup replace the template with the one here
@fireknight you should Now before any msqli can be done it as to be sql for starts
@joeroberts yes it is old code too your above commets about this the code base was took from ghub for starts chap and all will be fixed in time as i code this base up it is given out for members on here to have and play with code as time gose on ill am doing it all as you now with your tracker code it takes time alot of time the reason ive done this i have hed alot of members on here pm me for updates for this in time there will be more croms put on for hnr so on

son 9th October 2016 12:58

Quote:

Originally Posted by Napon (Post 49501)
here is a fix for the recover and signup replace the template with the one here
@fireknight you should Now before any msqli can be done it as to be sql for starts
@joeroberts yes it is old code too your above commets about this the code base was took from ghub for starts chap and all will be fixed in time as i code this base up it is given out for members on here to have and play with code as time gose on ill am doing it all as you now with your tracker code it takes time alot of time the reason ive done this i have hed alot of members on here pm me for updates for this in time there will be more croms put on for hnr so on

Why not update your first rar file instead off making people search for any changes or so called updates you make.

Are you serious, now your giving fireknight and joeroberts pointers, when it should be you that take note, not the other way around.

Here you go again promising a code base, will you ever learn, no body wants your headache.

DND 9th October 2016 13:05

@Napon
1.you realize that sql = mysql ? its just called sql because it is easier
2. sql_query as it is in u-232, and you ripped the code from there, it is used because they made a function called sql_query which does what mysqli is supposed to do and also because they have another function that show some stats used by mysql server
instead of mysqli_query they have sql_query just because of that function

PHP Code:

function mysql_fetch_all($query$default_value = Array())                       {                           $r = @sql_query($query);                           $result = Array();                           if ($err = ((is_object($GLOBALS["___mysqli_ston"])) ? mysqli_error($GLOBALS["___mysqli_ston"]) : (($___mysqli_res mysqli_connect_error()) ? $___mysqli_res false)))return $err;                           if (@mysqli_num_rows($r))                               while ($row mysqli_fetch_array($r))$result[] = $row;                           if (count($result) == 0)                               return $default_value;                           return $result;                       } 

PHP Code:

function sql_query($query)                       {                           global $query_stat;                           $query_start_time microtime(true); // Start time                           $result = mysqli_query($GLOBALS["___mysqli_ston"], $query);                           $query_end_time = microtime(true); // End time                           $querytime = ($query_end_time - $query_start_time);                           $query_stat[] = array(                               'seconds' => number_format($query_end_time - $query_start_time, 6) ,                               'query' => $query                           );                           return $result;                       } 

:coffee:

Mysqli is not such a huge thing, i dunno what ya keep blabbering about. There are a lot of converters which will convert simple mysql code into mysqli
If you want to blabber about something just do what joeroberts and I did which is to use PDO
I dont care, really, about anything you do, but at least make it right

MasterMan 9th October 2016 13:54

Quote:

Originally Posted by son (Post 49502)
Why not update your first rar file instead off making people search for any changes or so called updates you make.

Are you serious, now your giving fireknight and joeroberts pointers, when it should be you that take note, not the other way around.

Here you go again promising a code base, will you ever learn, no body wants your headache.

totally agree with you dude...!

i had some pointers too but our coder DUDE did not bother on replying instead he makes new updates to make others who instead saying thanks for the hard work ...! WHAT DA ..... ???

anywho, thanks for all useful smart replies guys to make things better

Fynnon 9th October 2016 14:41

attention

Attention



I have changed the name of this topic to My Modded tbdev to better reflect the content of this release
Just so there is no misunderstanding from now on we will have to change the names of these unofficial & modded site sources to something more descriptive for what they are





pinpointing coding mistakes is also greatly appreciated and desired in this kind of topics so i wanna thank fireknight, joe and the other guys for keeping it nice & clean. having a quality debate is in our interest

Napon 9th October 2016 18:33

Quote:

Originally Posted by DND (Post 49503)
@Napon
1.you realize that sql = mysql ? its just called sql because it is easier
2. sql_query as it is in u-232, and you ripped the code from there, it is used because they made a function called sql_query which does what mysqli is supposed to do and also because they have another function that show some stats used by mysql server
instead of mysqli_query they have sql_query just because of that function

PHP Code:

function mysql_fetch_all($query$default_value = Array())                       {                           $r = @sql_query($query);                           $result = Array();                           if ($err = ((is_object($GLOBALS["___mysqli_ston"])) ? mysqli_error($GLOBALS["___mysqli_ston"]) : (($___mysqli_res mysqli_connect_error()) ? $___mysqli_res false)))return $err;                           if (@mysqli_num_rows($r))                               while ($row mysqli_fetch_array($r))$result[] = $row;                           if (count($result) == 0)                               return $default_value;                           return $result;                       } 

PHP Code:

function sql_query($query)                       {                           global $query_stat;                           $query_start_time microtime(true); // Start time                           $result = mysqli_query($GLOBALS["___mysqli_ston"], $query);                           $query_end_time = microtime(true); // End time                           $querytime = ($query_end_time - $query_start_time);                           $query_stat[] = array(                               'seconds' => number_format($query_end_time - $query_start_time, 6) ,                               'query' => $query                           );                           return $result;                       } 

:coffee:

Mysqli is not such a huge thing, i dunno what ya keep blabbering about. There are a lot of converters which will convert simple mysql code into mysqli
If you want to blabber about something just do what joeroberts and I did which is to use PDO
I dont care, really, about anything you do, but at least make it right

it as not been riped from u232 at all that what you think i now its not so do not go on what you think as its wrong have a nice day

fireknight 10th October 2016 07:24

Quote:

Originally Posted by Napon (Post 49509)
it as not been riped from u232 at all that what you think i now its not so do not go on what you think as its wrong have a nice day

I have to agree with DND
It is a direct copy.

Just like FreeTSP V1.0.
That is a direct copy from U232 V2 code.

Napon's My Modded TBDev

Code:

function sql_query($query) {
    global $queries, $q, $querytime, $query_stat;
          $q = isset($q) && is_array($q) ? $q : array();
          $q['query_stat']= isset($q['query_stat']) && is_array($q['query_stat']) ? $q['query_stat'] : array();
          $queries++;
          $query_start_time  = microtime(true); // Start time
          $result = mysql_query($query);
          $query_end_time  = microtime(true); // End time
          $query_time  = ($query_end_time - $query_start_time);
          $querytime = $querytime + $query_time;
          $q['querytime']  = (isset($q['querytime']) ? $q['querytime'] : 0) + $query_time;
          $query_time  = substr($query_time, 0, 8);
          $q['query_stat'][] = array('seconds' => $query_time, 'query' => $query);
    return $result;

U232 V2

Code:

function sql_query($query) {
    global $queries, $q, $querytime, $query_stat;
      $q = isset($q) && is_array($q) ? $q : array();
      $q['query_stat']= isset($q['query_stat']) && is_array($q['query_stat']) ? $q['query_stat'] : array();
    $queries++;
    $query_start_time  = microtime(true); // Start time
    $result            = mysql_query($query);
    $query_end_time    = microtime(true); // End time
    $query_time        = ($query_end_time - $query_start_time);
    $querytime = $querytime + $query_time;
    $q['querytime']    = (isset($q['querytime']) ? $q['querytime'] : 0) + $query_time;
    $query_time        = substr($query_time, 0, 8);
    $q['query_stat'][] = array('seconds' => $query_time, 'query' => $query);
    return $result;
    }

FTSP( copied U232 code )
Code:

function sql_query ($querytme)
{
    global $queries, $qtme, $querytime, $query_stat;

    $qtme              = isset($qtme) && is_array($qtme) ? $qtme : array();
    $qtme['query_stat'] = isset($qtme['query_stat']) && is_array($qtme['query_stat']) ? $qtme['query_stat'] : array();

    $queries++;
    $query_start_time    = microtime(true); //-- Start Time --//
    $result              = mysql_query($querytme);
    $query_end_time      = microtime(true); //-- End Time --//
    $query_time          = ($query_end_time - $query_start_time);
    $querytime            = $querytime + $query_time;
    $qtme['querytime']    = (isset($qtme['querytime']) ? $qtme['querytime'] : 0) + $query_time;
    $query_time          = substr($query_time, 0, 8);
    $qtme['query_stat'][] = array('seconds' => $query_time,
                                  'query'  => $querytme);
    return $result;
}


joeroberts 10th October 2016 12:54

lmao not like BTManagers
PHP Code:

    function sql_query($query ''$cache_ttl 0)
    {
            global 
$TheQueryCount;
            
$TheQueryCount ++;
        if (
$query != '')
        {
            global 
$cache;
            
$this->query_result =  false;
            
$this->sql_add_num_queries($this->query_result);

            if (
$this->query_result === false)
            {
                if ((
$this->query_result = @mysqli_query($this->db_connect_id$query)) === false)
                {
                    
$this->sql_error($query);
                }
            }
        }
        else
        {
            return 
false;
        }

        return 
$this->query_result;
    } 

:lol:

DND 10th October 2016 13:13

OOP :love::sun:

fireknight 10th October 2016 13:27

Personally I cannot stand the query stats.
I think they are a waste of time. ( they look cool the first couple of times seeing them, then they just look crap )
I would never include them in a source release ( yes they are in FreeTSP - added by Krypto )
I would include an add on mod for integrating them into the source code in the forums, for members who wanted them.

Then the sql_query(); function would become a lot simpler.

Code:

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

    return $result;
}


Napon 10th October 2016 17:18

@joe ive already done mysqli on one of my code already and in not puting a code base on for all with the mysqli on at all its like everyone else on here i can name a few who are in the thread who do not thay know who thay are and fireknight the v1 v2 will not work on this as its memcach lol and for freesp noone wants it chap and ive not took the crap from it as bigjoos look at hes old very old base case to see what you can do with it so do not call him for what he says to members chap and that is for all when members put the basecode on with mysqli i will $this-> shoot up lol

the codebase as now been update with a hnr and full croms

son 10th October 2016 17:40

Quote:

Originally Posted by Napon (Post 49514)
@joe ive already done mysqli on one of my code already and in not puting a code base on for all with the mysqli on at all its like everyone else on here i can name a few who are in the thread who do not thay know who thay are and fireknight the v1 v2 will not work on this as its memcach lol and for freesp noone wants it chap and ive not took the crap from it as bigjoos look at hes old very old base case to see what you can do with it so do not call him for what he says to members chap and that is for all when members put the basecode on with mysqli i will $this-> shoot up lol

the codebase as now been update with a hnr and full croms

:lol:

You expect to become reputable by insulting others, and other code sources, your making yourself look like a jackass

thartley55 10th October 2016 18:32

Quote:

Originally Posted by son (Post 49515)
:lol:

You expect to become reputable by insulting others, and other code sources, your making yourself look like a jackass

I don't know how you can understand his gibberish enough to determine he is insulting anyone.

:wallbash:

fireknight 11th October 2016 10:47

OK to answer your reply to me regarding the sql_query function.

1:
I never said you used one of Bigjoos old U232 versions for your code.
The sql_query function I posted from U232 V2 will work on a code regardless of whether it uses memcach or not.
End of the day it is a simple replacement function.

2:
I never said to use FreeTSP code, I just showed you that we had used the sql_query function from U232.
And guess what ??
FreeTSP does not use memcach !!! ( so it does work with a standard code - that throws your argument out of the window ).

If you look at the sql_query function from your code.
And compare it to the one from U232 V2.

It is 100% identical, word for word, symbol for symbol.
It is a direct copy.

The chances of you coding your own sql_query function.
And it been 100% identical to the U232 V2 sql_query function.
The odds would be impossible to calculate.

But instead of you manning up and admitting it is a copy, after my last post proves it beyond a shadow of a doubt.
You try to distract the comparison of the 2 codes.
By posting a train wreck of total gibberish.

You say you want to be taken seriously and be shown some respect on these forums.
Then it is time you did the same thing.

BamBam0077 28th June 2022 11:44

Quote:

Originally Posted by DND (Post 49503)
@Napon
1.you realize that sql = mysql ? its just called sql because it is easier
2. sql_query as it is in u-232, and you ripped the code from there, it is used because they made a function called sql_query which does what mysqli is supposed to do and also because they have another function that show some stats used by mysql server
instead of mysqli_query they have sql_query just because of that function

PHP Code:

function mysql_fetch_all($query$default_value = Array())                       {                           $r = @sql_query($query);                           $result = Array();                           if ($err = ((is_object($GLOBALS["___mysqli_ston"])) ? mysqli_error($GLOBALS["___mysqli_ston"]) : (($___mysqli_res mysqli_connect_error()) ? $___mysqli_res false)))return $err;                           if (@mysqli_num_rows($r))                               while ($row mysqli_fetch_array($r))$result[] = $row;                           if (count($result) == 0)                               return $default_value;                           return $result;                       } 

PHP Code:

function sql_query($query)                       {                           global $query_stat;                           $query_start_time microtime(true); // Start time                           $result = mysqli_query($GLOBALS["___mysqli_ston"], $query);                           $query_end_time = microtime(true); // End time                           $querytime = ($query_end_time - $query_start_time);                           $query_stat[] = array(                               'seconds' => number_format($query_end_time - $query_start_time, 6) ,                               'query' => $query                           );                           return $result;                       } 

:coffee:

Mysqli is not such a huge thing, i dunno what ya keep blabbering about. There are a lot of converters which will convert simple mysql code into mysqli
If you want to blabber about something just do what joeroberts and I did which is to use PDO
I dont care, really, about anything you do, but at least make it right

:chch: :ok:

Elena 2nd July 2022 09:16

Quote:

Originally Posted by fireknight (Post 49510)
I have to agree with DND
It is a direct copy.

Just like FreeTSP V1.0.
That is a direct copy from U232 V2 code.

Napon's My Modded TBDev

Code:

function sql_query($query) {
    global $queries, $q, $querytime, $query_stat;
          $q = isset($q) && is_array($q) ? $q : array();
          $q['query_stat']= isset($q['query_stat']) && is_array($q['query_stat']) ? $q['query_stat'] : array();
          $queries++;
          $query_start_time  = microtime(true); // Start time
          $result = mysql_query($query);
          $query_end_time  = microtime(true); // End time
          $query_time  = ($query_end_time - $query_start_time);
          $querytime = $querytime + $query_time;
          $q['querytime']  = (isset($q['querytime']) ? $q['querytime'] : 0) + $query_time;
          $query_time  = substr($query_time, 0, 8);
          $q['query_stat'][] = array('seconds' => $query_time, 'query' => $query);
    return $result;

U232 V2

Code:

function sql_query($query) {
    global $queries, $q, $querytime, $query_stat;
      $q = isset($q) && is_array($q) ? $q : array();
      $q['query_stat']= isset($q['query_stat']) && is_array($q['query_stat']) ? $q['query_stat'] : array();
    $queries++;
    $query_start_time  = microtime(true); // Start time
    $result            = mysql_query($query);
    $query_end_time    = microtime(true); // End time
    $query_time        = ($query_end_time - $query_start_time);
    $querytime = $querytime + $query_time;
    $q['querytime']    = (isset($q['querytime']) ? $q['querytime'] : 0) + $query_time;
    $query_time        = substr($query_time, 0, 8);
    $q['query_stat'][] = array('seconds' => $query_time, 'query' => $query);
    return $result;
    }

FTSP( copied U232 code )
Code:

function sql_query ($querytme)
{
    global $queries, $qtme, $querytime, $query_stat;

    $qtme              = isset($qtme) && is_array($qtme) ? $qtme : array();
    $qtme['query_stat'] = isset($qtme['query_stat']) && is_array($qtme['query_stat']) ? $qtme['query_stat'] : array();

    $queries++;
    $query_start_time    = microtime(true); //-- Start Time --//
    $result              = mysql_query($querytme);
    $query_end_time      = microtime(true); //-- End Time --//
    $query_time          = ($query_end_time - $query_start_time);
    $querytime            = $querytime + $query_time;
    $qtme['querytime']    = (isset($qtme['querytime']) ? $qtme['querytime'] : 0) + $query_time;
    $query_time          = substr($query_time, 0, 8);
    $qtme['query_stat'][] = array('seconds' => $query_time,
                                  'query'  => $querytme);
    return $result;
}


LoLi v4.1:
Code:

function sql_query($query, $detect = true){
if($detect == true){detect_sqlinjection($query);}
global $queries, $query_stat, $querytime;
$queries++;$query_start_time = timer();
$result = mysql_query($query);$query_end_time = timer();
$query_time = ($query_end_time - $query_start_time);
$querytime = $querytime + $query_time;
$query_stat[] = array("seconds" => $query_time, "query" => $query);
return $result;}

:coffee:


All times are GMT +2. The time now is 01:37.

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