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.8 (2 years 1 months 1 weeks 5 days 15 hours 53 minutes 8 seconds ago) by nanocaiordo
Changed : +5 -5 lines
Comment: Fix display debug.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/*********************************************
  CPG Dragonfly™ CMS
  ********************************************
  Copyright © 2004 - 2007 by CPG-Nuke Dev Team
  http://dragonflycms.org

  Dragonfly is released under the terms and conditions
  of the GNU GPL version 2 or any later version

  $Source: /cvs/html/footer.php,v $
  $Revision: 10.8 $
  $Author: nanocaiordo $
  $Date: 2012/03/12 03:46:47 $
**********************************************/
if (!defined('CPG_NUKE')) { exit; }
global 
$db$SESS$cpgtpl$Blocks$DF;

function 
footmsg() {
    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);
        
$foot[] = sprintf(_PAGEFOOTERround($total_time,4), $db->num_queriesround($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;
            
$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[] = '';
        
$S_DEBUG_SQL CPG_DEBUG || $MAIN_CFG['debug']['database'] ? $GLOBALS['cpgdebugger']->get_report('sql') : false;
        
$S_DEBUG_PHP CPG_DEBUG || $MAIN_CFG['debug']['error_level'] ? $GLOBALS['cpgdebugger']->get_report('php') : false;
        
$S_DEBUG_PER CPG_DEBUG || DF_MODE_DEVELOPER PerformanceLog::stop() : false;
    }
    
$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>,
    <a href="'
.URL::index('privacy_policy').'">Privacy Policy</a></div>';
}

themefooter();
$DF->setState(DF::BOOT_DOWN);
$cpgtpl->destroy();
$SESS->write_close();
exit;


Code Credits - Privacy Policy