|
#11
|
|||
|
|||
Quote:
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 |
#12
|
||||
|
||||
Attention
|
#13
|
|||
|
|||
Quote:
|
#14
|
||||
|
||||
Quote:
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; 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; } 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; } Last edited by fireknight; 10th October 2016 at 07:26. Reason: Tidied up the code boxes |
#15
|
||||
|
||||
lmao not like BTManagers
PHP Code:
|
The Following User Says Thank You to joeroberts For This Useful Post: | ||
iforgot (24th May 2017)
|
#16
|
|||
|
|||
OOP :love:
__________________
Need HELP!? I can install:
|
#17
|
||||
|
||||
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; } |
#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 |
#19
|
|||
|
|||
Quote:
You expect to become reputable by insulting others, and other code sources, your making yourself look like a jackass |
#20
|
|||
|
|||
Quote:
|
Tags |
modded , tbdev , tbdev2010 |
|
|