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.0 (3 years 5 months 2 weeks 1 hours 48 minutes 49 seconds ago) by djmaze
Changed : +3 -3 lines
Comment:
Upgraded version number


# 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 djmaze 10.0 $Revision: 9.33 $
13 djmaze 10.0 $Author: djmaze $
14 djmaze 10.0 $Date: 2010/11/03 22:16:32 $
15 djmaze 8.13 **********************************************/
16 trevor 8.7 if (!defined('CPG_NUKE')) { exit; }
17 djmaze 1.1  
18 djmaze 1.1 function footmsg() {
19 djmaze 9.13 global $db, $foot1, $foot2, $foot3, $total_time, $start_mem;
20 nanocaio 9.17 if ($foot1 != '') { $foot1 .= '<br />'."\n"; }
21 nanocaio 9.17 if ($foot2 != '') { $foot1 .= $foot2.'<br />'."\n"; }
22 nanocaio 9.17 if ($foot3 != '') { $foot1 .= $foot3.'<br />'."\n"; }
23 trevor 9.4 if (is_admin()) {
24 djmaze 9.33 $total_time = (microtime(true) - START_TIME - $db->time);
25 djmaze 9.7 $foot1 .= sprintf(_PAGEFOOTER, round($total_time,4), $db->num_queries, round($db->time,4));
26 trevor 9.4 // only works if your PHP is compiled with the --enable-memory-limit configuration option
27 trevor 9.4 if (function_exists('memory_get_usage') && $start_mem > 0) {
28 trevor 9.4 $total_mem = memory_get_usage()-$start_mem;
29 trevor 9.4 $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'));
30 trevor 9.4 }
31 trevor 9.4 $foot1 .= '<br />';
32 trevor 9.4 }
33 djmaze 1.1 // MS-Analysis Entry
34 trevor 9.4 // require( "modules/MS_Analysis/mstrack.php" );
35 phoenix 9.19 $foot1 = '<div style="text-align:center;">'.$foot1.'
36 phoenix 9.21 Interactive software released under <a href="http://dragonflycms.org/GNUGPL.html" target="_blank" title="GNU Public License Agreement">GNU GPL</a>,
37 nanocaio 9.28 <a href="'.URL::index('credits').'">Code Credits</a>,
38 nanocaio 9.28 <a href="'.URL::index('privacy_policy').'">Privacy Policy</a></div>';
39 djmaze 9.6  
40 djmaze 9.6 if (is_admin() || CPG_DEBUG) {
41 nanocaio 9.31 $GLOBALS['cpgtpl']->assign_var('S_DEBUG_SQL', (CPG_DEBUG || $GLOBALS['MAIN_CFG']['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false));
42 nanocaio 9.29 $GLOBALS['cpgtpl']->assign_var('S_DEBUG_PHP', $GLOBALS['cpgdebugger']->get_report('php'));
43 djmaze 9.6 }
44 trevor 9.4 return $foot1;
45 djmaze 1.1 }
46 djmaze 1.1  
47 nanocaio 9.22 global $db, $SESS, $cpgtpl, $Blocks;
48 nanocaio 9.22 $Blocks->display('d');
49 trevor 9.4 themefooter();
50 djmaze 9.6 // $cpgtpl->assign_vars(array('S_FOOTER' => footmsg()));
51 djmaze 9.6 // $cpgtpl->set_filenames(array('footer' => 'footer.html'));
52 djmaze 9.6 // $cpgtpl->display('footer');
53 phoenix 9.32 $cpgtpl->__destruct();
54 djmaze 1.14 $SESS->write_close();
55 djmaze 1.14 $db->sql_close();
56 djmaze 1.14 exit;


Code Credits - Privacy Policy