Verzeichnisstruktur phpBB-2.0.0
- Veröffentlicht
- 03.04.2002
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
page_tail.php
01 <?php
02 /***************************************************************************
03 * page_tail.php
04 * -------------------
05 * begin : Saturday, Feb 13, 2001
06 * copyright : (C) 2001 The phpBB Group
07 * email : support@phpbb.com
08 *
09 * $Id$
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
23 if ( !defined('IN_PHPBB') )
24 {
25 die('Hacking attempt');
26 }
27
28 global $do_gzip_compress;
29
30 //
31 // Show the overall footer.
32 //
33 $admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '&p_sid=' . $userdata['priv_session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
34
35 $template->set_filenames(array(
36 'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
37 );
38
39 $template->assign_vars(array(
40 'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''),
41 'ADMIN_LINK' => $admin_link)
42 );
43
44 $template->pparse('overall_footer');
45
46 //
47 // Close our DB connection.
48 //
49 $db->sql_close();
50
51 //
52 // Compress buffered output if required and send to browser
53 //
54 if ( $do_gzip_compress )
55 {
56 //
57 // Borrowed from php.net!
58 //
59 $gzip_contents = ob_get_contents();
60 ob_end_clean();
61
62 $gzip_size = strlen($gzip_contents);
63 $gzip_crc = crc32($gzip_contents);
64
65 $gzip_contents = gzcompress($gzip_contents, 9);
66 $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
67
68 echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
69 echo $gzip_contents;
70 echo pack('V', $gzip_crc);
71 echo pack('V', $gzip_size);
72 }
73
74 exit;
75
76 ?>