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


# Author Rev Line
1 djmaze 1.1 <?php
2 djmaze 1.1 /*********************************************
3 djmaze 9.3 CPG Dragonfly™ CMS
4 djmaze 1.1 ********************************************
5 nanocaio 9.20 Copyright © 2004 - 2007 by CPG-Nuke Dev Team
6 djmaze 9.11 http://dragonflycms.org
7 djmaze 1.1  
8 djmaze 8.13 Dragonfly is released under the terms and conditions
9 djmaze 8.4 of the GNU GPL version 2 or any later version
10 djmaze 1.1  
11 djmaze 9.0 $Source: /cvs/html/footer.php,v $
12 nanocaio 10.2 $Revision: 10.1 $
13 nanocaio 10.2 $Author: nanocaiordo $
14 nanocaio 10.2 $Date: 2011/04/17 06:43:31 $
15 djmaze 8.13 **********************************************/
16 trevor 8.7 if (!defined('CPG_NUKE')) { exit; }
17 nanocaio 10.2 global $db, $SESS, $cpgtpl, $Blocks;
18 djmaze 1.1  
19 djmaze 1.1 function footmsg() {
20 nanocaio 10.2 global $db, $foot1, $foot2, $foot3, $total_time, $start_mem, $MAIN_CFG;
21 nanocaio 10.2  
22 nanocaio 10.2 $foot = array($MAIN_CFG['global']['foot1'], $MAIN_CFG['global']['foot2'], $MAIN_CFG['global']['foot3']);
23 nanocaio 10.2  
24 nanocaio 10.1 if (CPG_DEBUG || is_admin()) {
25 djmaze 9.33 $total_time = (microtime(true) - START_TIME - $db->time);
26 nanocaio 10.2 $foot[] = sprintf(_PAGEFOOTER, round($total_time,4), $db->num_queries, round($db->time,4));
27 trevor 9.4 // only works if your PHP is compiled with the --enable-memory-limit configuration option
28 trevor 9.4 if (function_exists('memory_get_usage') && $start_mem > 0) {
29 trevor 9.4 $total_mem = memory_get_usage()-$start_mem;
30 nanocaio 10.2 $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'));
31 trevor 9.4 }
32 nanocaio 10.2 $foot[] = '';
33 nanocaio 10.2 $GLOBALS['cpgtpl']->assign_var('S_DEBUG_SQL', (CPG_DEBUG || $GLOBALS['MAIN_CFG']['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false));
34 nanocaio 10.2 $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PHP', $GLOBALS['cpgdebugger']->get_report('php'));
35 trevor 9.4 }
36 nanocaio 10.2 return '<div style="text-align:center;" class="core_footer">'.implode("<br />\n", $foot).'
37 phoenix 9.21 Interactive software released under <a href="http://dragonflycms.org/GNUGPL.html" target="_blank" title="GNU Public License Agreement">GNU GPL</a>,
38 nanocaio 9.28 <a href="'.URL::index('credits').'">Code Credits</a>,
39 nanocaio 9.28 <a href="'.URL::index('privacy_policy').'">Privacy Policy</a></div>';
40 djmaze 1.1 }
41 djmaze 1.1  
42 nanocaio 9.22 $Blocks->display('d');
43 nanocaio 10.2 themefooter();
44 nanocaio 10.2 $cpgtpl->__destruct(); // FORCING closure now
45 djmaze 1.14 $SESS->write_close();
46 djmaze 1.14 $db->sql_close();
47 djmaze 1.14 exit;


Code Credits - Privacy Policy