| [ PHPXref.com ] | [ Generated: Sun Jul 20 17:21:20 2008 ] | [ Dragonfly CMS 9.0.6.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /********************************************* 3 CPG Dragonfly™ CMS 4 ******************************************** 5 Copyright © 2004 - 2005 by CPG-Nuke Dev Team 6 http://dragonflycms.org 7 8 Dragonfly is released under the terms and conditions 9 of the GNU GPL version 2 or any later version 10 11 $Source: /cvs/html/footer.php,v $ 12 $Revision: 9.11 $ 13 $Author: djmaze $ 14 $Date: 2005/08/29 15:10:45 $ 15 **********************************************/ 16 if (!defined('CPG_NUKE')) { exit; } 17 18 function footmsg() { 19 global $db, $foot1, $foot2, $foot3, $total_time, $start_time, $start_mem; 20 if ($foot1 != '') { $foot1 .= "<br />\n"; } 21 if ($foot2 != '') { $foot1 .= "$foot2<br />\n"; } 22 if ($foot3 != '') { $foot1 .= "$foot3<br />\n"; } 23 if (is_admin()) { 24 $total_time = (get_microtime() - $start_time - $db->time); 25 $foot1 .= sprintf(_PAGEFOOTER, round($total_time,4), $db->num_queries, round($db->time,4)); 26 // only works if your PHP is compiled with the --enable-memory-limit configuration option 27 if (function_exists('memory_get_usage') && $start_mem > 0) { 28 $total_mem = memory_get_usage()-$start_mem; 29 $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 } 31 $foot1 .= '<br />'; 32 } 33 // MS-Analysis Entry 34 // require( "modules/MS_Analysis/mstrack.php" ); 35 $foot1 = '<div align="center">'.$foot1.' 36 Interactive software released under <a href="http://dragonflycms.org/GNUGPL.html" target="_new" title="GNU Public License Agreement">GNU GPL</a>, 37 <a href="'.getlink('credits').'">Code Credits</a>, 38 <a href="'.getlink('privacy_policy').'">Privacy Policy</a></div>'; 39 40 global $MAIN_CFG, $cpgtpl, $cpgdebugger; 41 $debug_php = $debug_sql = false; 42 if (is_admin() || CPG_DEBUG) { 43 $strstart = strlen(BASEDIR); 44 if ($MAIN_CFG['debug']['database']) { 45 $debug_sql = '<span class="genmed"><strong>SQL Queries:</strong></span><br /><br />'; 46 foreach ($db->querylist as $file => $queries) { 47 $file = substr($file, $strstart); 48 if (empty($file)) $file = 'unknown file'; 49 $debug_sql .= '<b>'.$file.'</b><ul>'; 50 foreach ($queries as $query) { $debug_sql .= "<li>$query</li>"; } 51 $debug_sql .= '</ul>'; 52 } 53 } 54 $report = $cpgdebugger->stop(); 55 if (is_array($report)) { 56 foreach ($report as $file => $errors) { 57 $debug_php .= '<b>'.substr($file, $strstart).'</b><ul>'; 58 foreach ($errors as $error) { $debug_php .= "<li>$error</li>"; } 59 $debug_php .= '</ul>'; 60 } 61 } 62 } 63 if (THEME_USES_TPL) { 64 $cpgtpl->assign_vars(array( 65 'S_DEBUG_PHP' => $debug_php, 66 'S_DEBUG_SQL' => $debug_sql 67 )); 68 unset($debug_php, $debug_sql); 69 } 70 if (!THEME_USES_TPL) echo $foot1; 71 return $foot1; 72 } 73 74 global $db, $home, $do_gzip_compress, $SESS, $cpgtpl; 75 if ($home) { blocks('Down'); } 76 77 if (!function_exists('themefooter')) { 78 global $sitename, $nukeurl; 79 echo "<div align=\"center\">Content received from: $sitename, $nukeurl</div>"; 80 } else { 81 themefooter(); 82 // $cpgtpl->assign_vars(array('S_FOOTER' => footmsg())); 83 // $cpgtpl->set_filenames(array('footer' => 'footer.html')); 84 // $cpgtpl->display('footer'); 85 } 86 $cpgtpl->destroy(); 87 if (!THEME_USES_TPL) { echo '</body></html>'; } 88 $SESS->write_close(); 89 $db->sql_close(); 90 if($do_gzip_compress) { 91 // Copied from php.net! 92 $gzip_contents = ob_get_contents(); 93 ob_end_clean(); 94 $gzip_size = strlen($gzip_contents); 95 $gzip_crc = crc32($gzip_contents); 96 $gzip_contents = gzcompress($gzip_contents, 9); 97 $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); 98 echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; 99 echo $gzip_contents; 100 echo pack('V', $gzip_crc); 101 echo pack('V', $gzip_size); 102 } 103 exit;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |