2001-02-21 07:38:38 +00:00
|
|
|
<?php
|
2001-04-19 06:24:23 +00:00
|
|
|
/***************************************************************************
|
2001-02-21 07:38:38 +00:00
|
|
|
* page_tail.php
|
2001-04-19 06:24:23 +00:00
|
|
|
* -------------------
|
|
|
|
* begin : Saturday, Feb 13, 2001
|
|
|
|
* copyright : (C) 2001 The phpBB Group
|
|
|
|
* email : support@phpbb.com
|
|
|
|
*
|
2001-02-21 07:38:38 +00:00
|
|
|
* $Id$
|
2001-04-19 06:24:23 +00:00
|
|
|
*
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2001-02-21 07:38:38 +00:00
|
|
|
|
|
|
|
|
2001-04-19 06:24:23 +00:00
|
|
|
/***************************************************************************
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2001-02-21 07:38:38 +00:00
|
|
|
|
2001-04-15 17:44:46 +00:00
|
|
|
//
|
2001-02-22 07:53:34 +00:00
|
|
|
// Show the overall footer.
|
2001-04-15 17:44:46 +00:00
|
|
|
//
|
2001-05-31 22:57:38 +00:00
|
|
|
if($userdata['user_level'] == ADMIN)
|
2001-02-22 07:53:34 +00:00
|
|
|
{
|
2001-05-03 22:10:23 +00:00
|
|
|
$admin_link = "<a href=\"admin/index.$phpEx\">Administration Panel</a>";
|
2001-02-22 07:53:34 +00:00
|
|
|
}
|
2001-04-19 06:24:23 +00:00
|
|
|
$current_time = time();
|
2001-05-03 22:10:23 +00:00
|
|
|
$template->assign_vars(array(
|
|
|
|
"PHPBB_VERSION" => "2.0-alpha",
|
|
|
|
"ADMIN_LINK" => $admin_link));
|
2001-04-15 17:44:46 +00:00
|
|
|
|
2001-03-17 00:46:26 +00:00
|
|
|
$template->pparse("overall_footer");
|
2001-02-21 07:38:38 +00:00
|
|
|
|
2001-04-15 17:44:46 +00:00
|
|
|
//
|
2001-02-22 21:40:02 +00:00
|
|
|
// Close our DB connection.
|
2001-04-15 17:44:46 +00:00
|
|
|
//
|
2001-02-23 01:31:43 +00:00
|
|
|
$db->sql_close();
|
|
|
|
|
2001-04-15 17:44:46 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Output page creation time
|
|
|
|
//
|
2001-02-23 01:31:43 +00:00
|
|
|
$mtime = microtime();
|
|
|
|
$mtime = explode(" ",$mtime);
|
|
|
|
$mtime = $mtime[1] + $mtime[0];
|
|
|
|
$endtime = $mtime;
|
|
|
|
$totaltime = ($endtime - $starttime);
|
|
|
|
|
|
|
|
printf("<center><font size=-2>phpBB Created this page in %f seconds.</font></center>", $totaltime);
|
|
|
|
|
2001-06-30 23:36:10 +00:00
|
|
|
//
|
|
|
|
// Compress buffered output if required
|
|
|
|
// and send to browser
|
|
|
|
//
|
|
|
|
if($do_gzip_compress)
|
|
|
|
{
|
|
|
|
$gzip_contents = ob_get_contents();
|
|
|
|
ob_end_clean();
|
|
|
|
|
|
|
|
$gzip_size = strlen($gzip_contents);
|
|
|
|
$gzip_crc = crc32($gzip_contents);
|
|
|
|
|
|
|
|
$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 $gzip_contents;
|
|
|
|
echo pack("V", $gzip_crc);
|
|
|
|
echo pack("V", $gzip_size);
|
|
|
|
}
|
|
|
|
|
2001-04-15 17:44:46 +00:00
|
|
|
exit;
|
|
|
|
|
2001-06-30 23:36:10 +00:00
|
|
|
?>
|