--- html/footer.php:10.4 Sat Oct 15 23:28:44 2011
+++ html/footer.php Tue Nov 1 02:38:19 2011
@@ -9,9 +9,9 @@
of the GNU GPL version 2 or any later version
$Source: /cvs/html/footer.php,v $
- $Revision: 10.4 $
+ $Revision: 10.5 $
$Author: nanocaiordo $
- $Date: 2011/10/15 23:28:44 $
+ $Date: 2011/11/01 02:38:19 $
**********************************************/
if (!defined('CPG_NUKE')) { exit; }
global $db, $SESS, $cpgtpl, $Blocks, $DF;
@@ -28,10 +28,13 @@
$foot[] = 'Memory Usage: '.(($total_mem >= 1048576) ? round((round($total_mem / 1048576 * 100) / 100), 2).' MB' : (($total_mem >= 1024) ? round((round($total_mem / 1024 * 100) / 100), 2).' KB' : $total_mem.' Bytes'));
}
$foot[] = '';
- $GLOBALS['cpgtpl']->assign_var('S_DEBUG_SQL', $MAIN_CFG['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false);
- $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PHP', $MAIN_CFG['debug']['error_level'] ? $GLOBALS['cpgdebugger']->get_report('php') : false);
- $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PER', PerformanceLog::stop());
+ $S_DEBUG_SQL = $MAIN_CFG['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false;
+ $S_DEBUG_PHP = $MAIN_CFG['debug']['error_level'] ? $GLOBALS['cpgdebugger']->get_report('php') : false;
+ $S_DEBUG_PER = PerformanceLog::stop();
}
+ $GLOBALS['cpgtpl']->assign_var('S_DEBUG_SQL', isset($S_DEBUG_SQL) ? $S_DEBUG_SQL : false);
+ $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PHP', isset($S_DEBUG_PHP) ? $S_DEBUG_PHP : false);
+ $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PER', isset($S_DEBUG_PER) ? $S_DEBUG_PER : false);
return '<div style="text-align:center;" class="core_footer">'.implode("<br />\n", $foot).'
Interactive software released under <a href="http://dragonflycms.org/GNUGPL.html" target="_blank" title="GNU Public License Agreement">GNU GPL</a>,
<a href="'.URL::index('credits').'">Code Credits</a>,