1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 05:07:27 +02:00

Support debug of popups; support css for debug output

This commit is contained in:
mrpete
2007-01-17 13:03:53 +00:00
parent fbb621e55a
commit ee1c30fdef

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/footer.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/footer.php,v $
| $Revision: 1.4 $ | $Revision: 1.5 $
| $Date: 2006-12-09 06:53:05 $ | $Date: 2007-01-17 13:03:53 $
| $Author: e107coders $ | $Author: mrpete $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@@ -76,7 +76,7 @@ if (ADMIN == TRUE) {
// //
// B.2 Send footer template // B.2 Send footer template, stop timers and send basic page info
// //
if(varset($e107_popup)!=1){ if(varset($e107_popup)!=1){
@@ -85,9 +85,6 @@ if (strpos(e_SELF.'?'.e_QUERY, 'menus.php?configure') === FALSE) {
} }
//
// C Dump all debug and traffic information
//
$eTimingStop = microtime(); $eTimingStop = microtime();
global $eTimingStart; global $eTimingStart;
$rendertime = number_format($eTraffic->TimeDelta( $eTimingStart, $eTimingStop ), 4); $rendertime = number_format($eTraffic->TimeDelta( $eTimingStart, $eTimingStop ), 4);
@@ -100,7 +97,11 @@ $rinfo = '';
if(isset($pref['displaycacheinfo']) && $pref['displaycacheinfo']){ $rinfo .= $cachestring."."; } if(isset($pref['displaycacheinfo']) && $pref['displaycacheinfo']){ $rinfo .= $cachestring."."; }
echo ($rinfo ? "\n<div style='text-align:center' class='smalltext'>{$rinfo}</div>\n" : ""); echo ($rinfo ? "\n<div style='text-align:center' class='smalltext'>{$rinfo}</div>\n" : "");
} // End of regular-page footer (the above NOT done for popups)
//
// C Dump all debug and traffic information
//
if ((ADMIN || $pref['developer']) && E107_DEBUG_LEVEL) { if ((ADMIN || $pref['developer']) && E107_DEBUG_LEVEL) {
global $db_debug; global $db_debug;
echo "\n<!-- DEBUG -->\n"; echo "\n<!-- DEBUG -->\n";
@@ -128,8 +129,6 @@ $rinfo = '';
echo "</table>"; echo "</table>";
} }
} // End of regular-page footer (the above NOT done for popups)
// //
// D Close DB connection. We're done talking to underlying MySQL // D Close DB connection. We're done talking to underlying MySQL
// //
@@ -169,7 +168,7 @@ if ($pref['developer']) {
if((ADMIN == true || $pref['developer']) && $error_handler->debug == true) { if((ADMIN == true || $pref['developer']) && $error_handler->debug == true) {
echo " echo "
<br /><br /> <br /><br />
<div> <div class='e107_debug php_err'>
<h3>PHP Errors:</h3><br /> <h3>PHP Errors:</h3><br />
".$error_handler->return_errors()." ".$error_handler->return_errors()."
</div> </div>