Changeset 1011 for branches/branch-1_5/include
- Timestamp:
- Jan 21, 2006, 9:32:09 PM (19 years ago)
- Location:
- branches/branch-1_5/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_5/include/functions.inc.php
r894 r1011 431 431 function pwg_query($query) 432 432 { 433 global $conf,$page ;433 global $conf,$page,$debug; 434 434 435 435 $start = get_moment(); … … 453 453 $output.= "\n".$query; 454 454 $output.= "\n".'(this query time : '; 455 $output.= number_format($time, 3, '.', ' ').' s)</b>';455 $output.= '<b>'.number_format($time, 3, '.', ' ').' s)</b>'; 456 456 $output.= "\n".'(total SQL time : '; 457 457 $output.= number_format($page['queries_time'], 3, '.', ' ').' s)'; 458 $output.= '</pre>';458 $output.= "</pre>\n"; 459 459 460 echo$output;460 $debug .= $output; 461 461 } 462 462 … … 472 472 $now2 = $now[1].'.'.$now2[1]; 473 473 $time = number_format( $now2 - $t2, 3, '.', ' ').' s'; 474 $debug .= '<p>'; 474 475 $debug.= '['.$time.', '; 475 476 $debug.= $count_queries.' queries] : '.$string; 476 $debug.= " \n";477 $debug.= "</p>\n"; 477 478 } 478 479 -
branches/branch-1_5/include/page_tail.php
r993 r1011 55 55 } 56 56 57 if ($conf['show_queries']) 58 { 59 $template->assign_block_vars( 60 'debug', 61 array('QUERIES_LIST' => $debug) 62 ); 63 } 64 57 65 //--------------------------------------------------------------------- contact 58 66
Note: See TracChangeset
for help on using the changeset viewer.