(file) Return to page_tail.php CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / phpBB2 / includes

 1 rizwank 1.1 <?php
 2             /***************************************************************************
 3              *                              page_tail.php
 4              *                            -------------------
 5              *   begin                : Saturday, Feb 13, 2001
 6              *   copyright            : (C) 2001 The phpBB Group
 7              *   email                : support@phpbb.com
 8              *
 9              *   $Id: page_tail.php,v 1.27.2.2 2002/11/26 11:42:12 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             $admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
32             
33             $template->set_filenames(array(
34             	'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
35             );
36             
37             $template->assign_vars(array(
38             	'PHPBB_VERSION' => '2' . $board_config['version'],
39             	'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '', 
40             	'ADMIN_LINK' => $admin_link)
41             );
42             
43 rizwank 1.1 $template->pparse('overall_footer');
44             
45             //
46             // Close our DB connection.
47             //
48             $db->sql_close();
49             
50             //
51             // Compress buffered output if required and send to browser
52             //
53             if ( $do_gzip_compress )
54             {
55             	//
56             	// Borrowed from php.net!
57             	//
58             	$gzip_contents = ob_get_contents();
59             	ob_end_clean();
60             
61             	$gzip_size = strlen($gzip_contents);
62             	$gzip_crc = crc32($gzip_contents);
63             
64 rizwank 1.1 	$gzip_contents = gzcompress($gzip_contents, 9);
65             	$gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
66             
67             	echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
68             	echo $gzip_contents;
69             	echo pack('V', $gzip_crc);
70             	echo pack('V', $gzip_size);
71             }
72             
73             exit;
74             
75             ?>

Rizwan Kassim
Powered by
ViewCVS 0.9.2