- Timestamp:
- 09/02/08 16:21:31 (3 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
plog-admin/plog-admin.php (modified) (1 diff)
-
plog-load-config.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/plog-admin.php
r572 r577 90 90 <div id="content"> 91 91 '.$string.' 92 </div><!-- /content --> 92 </div><!-- /content -->'; 93 93 94 </body> 94 if (defined('PLOGGER_DEBUG') && PLOGGER_DEBUG == '1') { 95 $output .= trace('Queries: '.$GLOBALS['query_count'], false); 96 foreach ($GLOBALS['queries'] as $q) { 97 $output .= trace($q, false); 98 } 99 $output .= trace(plog_timer('end'), false); 100 } 101 102 $output .= "\n\n".'</body> 95 103 </html>'; 96 104 -
trunk/plog-load-config.php
r576 r577 146 146 } 147 147 148 function trace($output ){148 function trace($output, $echo = true){ 149 149 if (defined('PLOGGER_DEBUG')) { 150 150 if (PLOGGER_DEBUG == '1') { 151 151 //echo('*'.vname($output).':'.$output.'*'); 152 echo('*'.$output.'*<br />'); 152 if ($echo === false) { 153 return '*'.$output.'*<br />'; 154 } else { 155 echo '*'.$output.'*<br />'; 156 } 153 157 } 154 158 }
