From c4a926b4e201380a45e0c4ebe76fba49fa6b42f1 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 14 Jul 2002 14:41:55 +0000 Subject: Same as last commits, updates for various changes git-svn-id: file:///svn/phpbb/trunk@2671 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/page_tail.php | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'phpBB/includes/page_tail.php') diff --git a/phpBB/includes/page_tail.php b/phpBB/includes/page_tail.php index c2507bac8b..6c87ecdcb1 100644 --- a/phpBB/includes/page_tail.php +++ b/phpBB/includes/page_tail.php @@ -8,7 +8,6 @@ * * $Id$ * - * ***************************************************************************/ /*************************************************************************** @@ -25,34 +24,25 @@ if ( !defined('IN_PHPBB') ) die('Hacking attempt'); } -// -// Show the overall footer. -// -$admin_link = ( $userdata['user_level'] == ADMIN ) ? '' . $lang['Admin_panel'] . '

' : ''; - -$template->set_filenames(array( - 'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl') -); - // // Output page creation time // -if ( DEBUG ) +if ( defined('DEBUG') ) { $mtime = microtime(); $mtime = explode(' ', $mtime); $totaltime = ( $mtime[1] + $mtime[0] ) - $starttime; - $gzip_text = ( $board_config['gzip_compress'] ) ? 'GZIP compression enabled' : 'GZIP compression disabled'; + + $debug_output = sprintf('

[ Time : %.3fs | ' . $db->sql_num_queries() . ' Queries | GZIP : ' . ( ( $board_config['gzip_compress'] ) ? 'On' : 'Off' ) . ' | Load : ' . (( $session->load ) ? $session->load : 'N/A') . ' ]', $totaltime); } $template->assign_vars(array( - 'PHPBB_VERSION' => '2' . $board_config['version'], - 'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '', - 'ADMIN_LINK' => $admin_link, - 'DEBUG_OUTPUT' => ( DEBUG ) ? sprintf('

phpBB Created this page in %f seconds : ' . $db->sql_num_queries() . ' queries executed : ' . $gzip_text, $totaltime) : '') + 'PHPBB_VERSION' => $board_config['version'], + 'ADMIN_LINK' => ( $acl->get_acl_admin() ) ? '' . $lang['Admin_panel'] . '

' : '', + 'DEBUG_OUTPUT' => ( defined('DEBUG') ) ? $debug_output : '') ); -$template->pparse('overall_footer'); +$template->display('body'); // // Close our DB connection. -- cgit v1.2.1