Dragonfly CMS logo Server sponsored and hosted by
DedicatedNOW
CVS logo  
.:: Home :: Dev. Resources :: Forums ::.
Dragonfly CMS CVS Repository
 Location: / cvs / html / footer.php
This is a web interface to the Dragonfly CMS CVS tree. You can browse the file hierarchy by picking directories. If you pick a file, you will see the revision history for that file.
Selecting a revision number will show that revision of the file. There are links at each revision to display diffs, annotate and download.
Note: Info about CVS and our commits can be found at our CVS Info Forum
File name: html/footer.php
Revision : 10.4 => 10.5 (2 years 5 months 3 weeks 1 days 17 hours 33 minutes 46 seconds ago) by nanocaiordo
Changed : +8 -5 lines
Comment: Fixed debug tpl undefined indexes.

--- 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>,


Code Credits - Privacy Policy