Changeset 1033 for trunk/include/functions.inc.php
- Timestamp:
- Feb 11, 2006, 8:36:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r1029 r1033 431 431 function pwg_query($query) 432 432 { 433 global $conf,$page,$debug ;433 global $conf,$page,$debug,$t2; 434 434 435 435 $start = get_moment(); … … 456 456 $output.= "\n".'(total SQL time : '; 457 457 $output.= number_format($page['queries_time'], 3, '.', ' ').' s)'; 458 $output.= "\n".'(total time : '; 459 $output.= number_format( ($time+$start-$t2), 3, '.', ' ').' s)'; 458 460 $output.= "</pre>\n"; 459 461 … … 466 468 function pwg_debug( $string ) 467 469 { 468 global $debug,$t2,$ count_queries;470 global $debug,$t2,$page; 469 471 470 472 $now = explode( ' ', microtime() ); … … 474 476 $debug .= '<p>'; 475 477 $debug.= '['.$time.', '; 476 $debug.= $ count_queries.' queries] : '.$string;478 $debug.= $page['count_queries'].' queries] : '.$string; 477 479 $debug.= "</p>\n"; 478 480 } … … 975 977 976 978 /** 977 * returns the $str in current language if possible or $str enclosed978 * in special chars979 */980 function get_lang($str)981 {982 global $lang;983 if ( isset($lang[$str]) )984 {985 return $lang[$str];986 }987 return '@@'.$str.'@@';988 }989 990 /**991 979 * which upgrades are available ? 992 980 *
Note: See TracChangeset
for help on using the changeset viewer.