diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-04 21:51:32 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-04 21:51:32 +0000 |
| commit | 65aa92182826eb06830626df49ab7a0210b06718 (patch) | |
| tree | a45003d69eb073ca7e1086b4d73dfcb8d0cbec65 /phpBB/includes/page_tail.php | |
| parent | f5b2f6067ae086d4b9b03e791594bc2db165e1f8 (diff) | |
| download | forums-65aa92182826eb06830626df49ab7a0210b06718.tar forums-65aa92182826eb06830626df49ab7a0210b06718.tar.gz forums-65aa92182826eb06830626df49ab7a0210b06718.tar.bz2 forums-65aa92182826eb06830626df49ab7a0210b06718.tar.xz forums-65aa92182826eb06830626df49ab7a0210b06718.zip | |
Update a few things for 2.1 CVS
git-svn-id: file:///svn/phpbb/trunk@2489 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/page_tail.php')
| -rw-r--r-- | phpBB/includes/page_tail.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/includes/page_tail.php b/phpBB/includes/page_tail.php index 9efc5d820d..d49195fed7 100644 --- a/phpBB/includes/page_tail.php +++ b/phpBB/includes/page_tail.php @@ -48,6 +48,20 @@ $template->pparse('overall_footer'); $db->sql_close(); // +// 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); + +// // Compress buffered output if required and send to browser // if ( $do_gzip_compress ) |
