2 /***************************************************************************
3 * page_footer_admin.php
5 * begin : Saturday, Jul 14, 2001
6 * copyright : (C) 2001 The phpBB Group
7 * email : support@phpbb.com
9 * $Id: page_footer_admin.php,v 1.9.2.2 2002/05/12 15:57:45 psotfx Exp $
12 ***************************************************************************/
14 /***************************************************************************
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
21 ***************************************************************************/
23 if ( !defined('IN_PHPBB') )
25 die("Hacking attempt");
29 // Show the overall footer.
31 $template->set_filenames(array(
32 'page_footer' => 'admin/page_footer.tpl')
35 $template->assign_vars(array(
36 'PHPBB_VERSION' => '2' . $board_config['version'],
37 'TRANSLATION_INFO' => $lang['TRANSLATION_INFO'])
40 $template->pparse('page_footer');
43 // Close our DB connection.
48 // Compress buffered output if required
49 // and send to browser
51 if( $do_gzip_compress )
54 // Borrowed from php.net!
56 $gzip_contents = ob_get_contents();
59 $gzip_size = strlen($gzip_contents);
60 $gzip_crc = crc32($gzip_contents);
62 $gzip_contents = gzcompress($gzip_contents, 9);
63 $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
65 echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
67 echo pack('V', $gzip_crc);
68 echo pack('V', $gzip_size);