aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/page_tail.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-07-14 14:41:55 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-07-14 14:41:55 +0000
commitc4a926b4e201380a45e0c4ebe76fba49fa6b42f1 (patch)
treea03d8fe778e75d72fe27aec37e00e487ed2e210b /phpBB/includes/page_tail.php
parent53a03e33bcd33fa46843ecdcb51b71ed19f4b1d7 (diff)
downloadforums-c4a926b4e201380a45e0c4ebe76fba49fa6b42f1.tar
forums-c4a926b4e201380a45e0c4ebe76fba49fa6b42f1.tar.gz
forums-c4a926b4e201380a45e0c4ebe76fba49fa6b42f1.tar.bz2
forums-c4a926b4e201380a45e0c4ebe76fba49fa6b42f1.tar.xz
forums-c4a926b4e201380a45e0c4ebe76fba49fa6b42f1.zip
Same as last commits, updates for various changes
git-svn-id: file:///svn/phpbb/trunk@2671 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/page_tail.php')
-rw-r--r--phpBB/includes/page_tail.php24
1 files changed, 7 insertions, 17 deletions
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$
*
- *
***************************************************************************/
/***************************************************************************
@@ -26,33 +25,24 @@ if ( !defined('IN_PHPBB') )
}
//
-// Show the overall footer.
-//
-$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
-
-$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('<br /><br />[ 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('<br /><br />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() ) ? '<a href="' . "admin/index.$phpEx$SID" . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '',
+ 'DEBUG_OUTPUT' => ( defined('DEBUG') ) ? $debug_output : '')
);
-$template->pparse('overall_footer');
+$template->display('body');
//
// Close our DB connection.