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.1 => 10.2 (2 years 6 months 2 weeks 5 days 6 hours 23 minutes 55 seconds ago) by nanocaiordo
Changed : +16 -25 lines
Comment: Introducing DFSubject and DFService interface

--- html/footer.php:10.1 Sun Apr 17 06:43:31 2011
+++ html/footer.php Thu Oct 6 13:32:32 2011
@@ -9,48 +9,39 @@
of the GNU GPL version 2 or any later version
$Source: /cvs/html/footer.php,v $
- $Revision: 10.1 $
+ $Revision: 10.2 $
$Author: nanocaiordo $
- $Date: 2011/04/17 06:43:31 $
+ $Date: 2011/10/06 13:32:32 $
**********************************************/
if (!defined('CPG_NUKE')) { exit; }
+global $db, $SESS, $cpgtpl, $Blocks;
function footmsg() {
- global $db, $foot1, $foot2, $foot3, $total_time, $start_mem;
- if ($foot1 != '') { $foot1 .= '<br />'."\n"; }
- if ($foot2 != '') { $foot1 .= $foot2.'<br />'."\n"; }
- if ($foot3 != '') { $foot1 .= $foot3.'<br />'."\n"; }
+ global $db, $foot1, $foot2, $foot3, $total_time, $start_mem, $MAIN_CFG;
+
+ $foot = array($MAIN_CFG['global']['foot1'], $MAIN_CFG['global']['foot2'], $MAIN_CFG['global']['foot3']);
+
if (CPG_DEBUG || is_admin()) {
$total_time = (microtime(true) - START_TIME - $db->time);
- $foot1 .= sprintf(_PAGEFOOTER, round($total_time,4), $db->num_queries, round($db->time,4));
+ $foot[] = sprintf(_PAGEFOOTER, round($total_time,4), $db->num_queries, round($db->time,4));
// only works if your PHP is compiled with the --enable-memory-limit configuration option
if (function_exists('memory_get_usage') && $start_mem > 0) {
$total_mem = memory_get_usage()-$start_mem;
- $foot1 .= '<br />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[] = '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'));
}
- $foot1 .= '<br />';
+ $foot[] = '';
+ $GLOBALS['cpgtpl']->assign_var('S_DEBUG_SQL', (CPG_DEBUG || $GLOBALS['MAIN_CFG']['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false));
+ $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PHP', $GLOBALS['cpgdebugger']->get_report('php'));
}
-// MS-Analysis Entry
-// require( "modules/MS_Analysis/mstrack.php" );
- $foot1 = '<div style="text-align:center;">'.$foot1.'
+ 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>,
<a href="'.URL::index('privacy_policy').'">Privacy Policy</a></div>';
-
- if (is_admin() || CPG_DEBUG) {
- $GLOBALS['cpgtpl']->assign_var('S_DEBUG_SQL', (CPG_DEBUG || $GLOBALS['MAIN_CFG']['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false));
- $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PHP', $GLOBALS['cpgdebugger']->get_report('php'));
- }
- return $foot1;
}
-global $db, $SESS, $cpgtpl, $Blocks;
$Blocks->display('d');
- themefooter();
-// $cpgtpl->assign_vars(array('S_FOOTER' => footmsg()));
-// $cpgtpl->set_filenames(array('footer' => 'footer.html'));
-// $cpgtpl->display('footer');
-$cpgtpl->__destruct();
+themefooter();
+$cpgtpl->__destruct(); // FORCING closure now
$SESS->write_close();
$db->sql_close();
exit;


Code Credits - Privacy Policy