1 rizwank 1.1 <?php
2 /***************************************************************************
3 * page_footer_admin.php
4 * -------------------
5 * begin : Saturday, Jul 14, 2001
6 * copyright : (C) 2001 The phpBB Group
7 * email : support@phpbb.com
8 *
9 * $Id: page_footer_admin.php,v 1.9.2.2 2002/05/12 15:57:45 psotfx Exp $
10 *
11 *
12 ***************************************************************************/
13
14 /***************************************************************************
15 *
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.
20 *
21 ***************************************************************************/
22 rizwank 1.1
23 if ( !defined('IN_PHPBB') )
24 {
25 die("Hacking attempt");
26 }
27
28 //
29 // Show the overall footer.
30 //
31 $template->set_filenames(array(
32 'page_footer' => 'admin/page_footer.tpl')
33 );
34
35 $template->assign_vars(array(
36 'PHPBB_VERSION' => '2' . $board_config['version'],
37 'TRANSLATION_INFO' => $lang['TRANSLATION_INFO'])
38 );
39
40 $template->pparse('page_footer');
41
42 //
43 rizwank 1.1 // Close our DB connection.
44 //
45 $db->sql_close();
46
47 //
48 // Compress buffered output if required
49 // and send to browser
50 //
51 if( $do_gzip_compress )
52 {
53 //
54 // Borrowed from php.net!
55 //
56 $gzip_contents = ob_get_contents();
57 ob_end_clean();
58
59 $gzip_size = strlen($gzip_contents);
60 $gzip_crc = crc32($gzip_contents);
61
62 $gzip_contents = gzcompress($gzip_contents, 9);
63 $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
64 rizwank 1.1
65 echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
66 echo $gzip_contents;
67 echo pack('V', $gzip_crc);
68 echo pack('V', $gzip_size);
69 }
70
71 exit;
72
73 ?>
|