diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-04 11:53:13 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-04 11:53:13 +0000 |
commit | 6200b07830a51e607c618ed8c568b2fd85dc1900 (patch) | |
tree | 2a1b36ccbbf358c2cacf921025df1601f5590b24 /phpBB/includes/page_tail.php | |
parent | 212515e02ccdc8f53d655c6087327fb38ef11b35 (diff) | |
download | forums-6200b07830a51e607c618ed8c568b2fd85dc1900.tar forums-6200b07830a51e607c618ed8c568b2fd85dc1900.tar.gz forums-6200b07830a51e607c618ed8c568b2fd85dc1900.tar.bz2 forums-6200b07830a51e607c618ed8c568b2fd85dc1900.tar.xz forums-6200b07830a51e607c618ed8c568b2fd85dc1900.zip |
Remove timing and other details for final release ...can always be put back for those that want it
git-svn-id: file:///svn/phpbb/trunk@2481 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/page_tail.php')
-rw-r--r-- | phpBB/includes/page_tail.php | 65 |
1 files changed, 15 insertions, 50 deletions
diff --git a/phpBB/includes/page_tail.php b/phpBB/includes/page_tail.php index af9773cca3..9efc5d820d 100644 --- a/phpBB/includes/page_tail.php +++ b/phpBB/includes/page_tail.php @@ -22,70 +22,35 @@ if ( !defined('IN_PHPBB') ) { - die("Hacking attempt"); + die('Hacking attempt'); } // // Show the overall footer. // -if($userdata['user_level'] == ADMIN) -{ - $admin_link = "<a href=\"" . append_sid("admin/index.$phpEx") . "\">" . $lang['Admin_panel'] . "</a><br /><br />"; -} -else -{ - $admin_link = ""; -} -$current_time = time(); +$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : ''; -if( empty($gen_simple_header) ) -{ - $template->set_filenames(array( - "overall_footer" => "overall_footer.tpl") - ); -} -else -{ - $template->set_filenames(array( - "overall_footer" => "simple_footer.tpl") - ); -} +$template->set_filenames(array( + 'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl') +); $template->assign_vars(array( - "PHPBB_VERSION" => "2.0 " . $board_config['version'], - "TRANSLATION_INFO" => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : "", - "ADMIN_LINK" => $admin_link) + 'PHPBB_VERSION' => '2' . $board_config['version'], + 'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '', + 'ADMIN_LINK' => $admin_link) ); -$template->pparse("overall_footer"); - -// -// Output page creation time -// -$mtime = microtime(); -$mtime = explode(" ",$mtime); -$mtime = $mtime[1] + $mtime[0]; -$endtime = $mtime; -$totaltime = ($endtime - $starttime); - -$gzip_text = ($board_config['gzip_compress']) ? "GZIP compression enabled" : "GZIP compression disabled"; -$debug_mode = (DEBUG) ? " : Debug Mode" : ""; - -printf("<br /><center><font size=\"-2\">phpBB Created this page in %f seconds : " . $db->num_queries . " queries executed : $gzip_text".$debug_mode."</font></center>", $totaltime); +$template->pparse('overall_footer'); // // Close our DB connection. // $db->sql_close(); -//for($i=0;$i<count($db->query_array);$i++) -// echo $db->query_array[$i] . "<BR>"; - // -// Compress buffered output if required -// and send to browser +// Compress buffered output if required and send to browser // -if($do_gzip_compress) +if ( $do_gzip_compress ) { // // Borrowed from php.net! @@ -99,12 +64,12 @@ if($do_gzip_compress) $gzip_contents = gzcompress($gzip_contents, 9); $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); - echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; + echo '\x1f\x8b\x08\x00\x00\x00\x00\x00'; echo $gzip_contents; - echo pack("V", $gzip_crc); - echo pack("V", $gzip_size); + echo pack('V', $gzip_crc); + echo pack('V', $gzip_size); } exit; -?> +?>
\ No newline at end of file |