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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

page_header_admin.php

Zuletzt modifiziert: 09.10.2024, 12:51 - Dateigröße: 4.97 KiB


001  <?php
002  /***************************************************************************
003   *                           page_header_admin.php
004   *                            -------------------
005   *   begin                : Saturday, Feb 13, 2001
006   *   copyright            : (C) 2001 The phpBB Group
007   *   email                : support@phpbb.com
008   *
009   *   $Id$
010   *
011   *
012   ***************************************************************************/
013   
014  /***************************************************************************
015   *
016   *   This program is free software; you can redistribute it and/or modify
017   *   it under the terms of the GNU General Public License as published by
018   *   the Free Software Foundation; either version 2 of the License, or
019   *   (at your option) any later version.
020   *
021   ***************************************************************************/
022   
023  if ( !defined('IN_PHPBB') )
024  {
025      die("Hacking attempt");
026  }
027   
028  define('HEADER_INC', true);
029   
030  //
031  // gzip_compression
032  //
033  $do_gzip_compress = FALSE;
034  if ( $board_config['gzip_compress'] )
035  {
036      $phpver = phpversion();
037   
038      $useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');
039   
040      if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
041      {
042          if ( extension_loaded('zlib') )
043          {
044              ob_start('ob_gzhandler');
045          }
046      }
047      else if ( $phpver > '4.0' )
048      {
049          if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
050          {
051              if ( extension_loaded('zlib') )
052              {
053                  $do_gzip_compress = TRUE;
054                  ob_start();
055                  ob_implicit_flush(0);
056   
057                  header('Content-Encoding: gzip');
058              }
059          }
060      }
061  }
062   
063  $template->set_filenames(array(
064      'header' => 'admin/page_header.tpl')
065  );
066   
067  // Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
068  $l_timezone = explode('.', $board_config['board_timezone']);
069  $l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
070   
071  //
072  // The following assigns all _common_ variables that may be used at any point
073  // in a template. Note that all URL's should be wrapped in append_sid, as
074  // should all S_x_ACTIONS for forms.
075  //
076  $template->assign_vars(array(
077      'SITENAME' => $board_config['sitename'],
078      'PAGE_TITLE' => $page_title,
079   
080      'L_ADMIN' => $lang['Admin'], 
081      'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),
082      'L_FAQ' => $lang['FAQ'],
083   
084      'U_INDEX' => append_sid('../index.'.$phpEx),
085   
086      'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone),
087      'S_LOGIN_ACTION' => append_sid('../login.'.$phpEx),
088      'S_JUMPBOX_ACTION' => append_sid('../viewforum.'.$phpEx),
089      'S_CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 
090      'S_CONTENT_DIRECTION' => $lang['DIRECTION'], 
091      'S_CONTENT_ENCODING' => $lang['ENCODING'], 
092      'S_CONTENT_DIR_LEFT' => $lang['LEFT'], 
093      'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], 
094   
095      'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],
096      'T_BODY_BACKGROUND' => $theme['body_background'],
097      'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'],
098      'T_BODY_TEXT' => '#'.$theme['body_text'],
099      'T_BODY_LINK' => '#'.$theme['body_link'],
100      'T_BODY_VLINK' => '#'.$theme['body_vlink'],
101      'T_BODY_ALINK' => '#'.$theme['body_alink'],
102      'T_BODY_HLINK' => '#'.$theme['body_hlink'],
103      'T_TR_COLOR1' => '#'.$theme['tr_color1'],
104      'T_TR_COLOR2' => '#'.$theme['tr_color2'],
105      'T_TR_COLOR3' => '#'.$theme['tr_color3'],
106      'T_TR_CLASS1' => $theme['tr_class1'],
107      'T_TR_CLASS2' => $theme['tr_class2'],
108      'T_TR_CLASS3' => $theme['tr_class3'],
109      'T_TH_COLOR1' => '#'.$theme['th_color1'],
110      'T_TH_COLOR2' => '#'.$theme['th_color2'],
111      'T_TH_COLOR3' => '#'.$theme['th_color3'],
112      'T_TH_CLASS1' => $theme['th_class1'],
113      'T_TH_CLASS2' => $theme['th_class2'],
114      'T_TH_CLASS3' => $theme['th_class3'],
115      'T_TD_COLOR1' => '#'.$theme['td_color1'],
116      'T_TD_COLOR2' => '#'.$theme['td_color2'],
117      'T_TD_COLOR3' => '#'.$theme['td_color3'],
118      'T_TD_CLASS1' => $theme['td_class1'],
119      'T_TD_CLASS2' => $theme['td_class2'],
120      'T_TD_CLASS3' => $theme['td_class3'],
121      'T_FONTFACE1' => $theme['fontface1'],
122      'T_FONTFACE2' => $theme['fontface2'],
123      'T_FONTFACE3' => $theme['fontface3'],
124      'T_FONTSIZE1' => $theme['fontsize1'],
125      'T_FONTSIZE2' => $theme['fontsize2'],
126      'T_FONTSIZE3' => $theme['fontsize3'],
127      'T_FONTCOLOR1' => '#'.$theme['fontcolor1'],
128      'T_FONTCOLOR2' => '#'.$theme['fontcolor2'],
129      'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],
130      'T_SPAN_CLASS1' => $theme['span_class1'],
131      'T_SPAN_CLASS2' => $theme['span_class2'],
132      'T_SPAN_CLASS3' => $theme['span_class3'])
133  );
134   
135  // Work around for "current" Apache 2 + PHP module which seems to not
136  // cope with private cache control setting
137  if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
138  {
139      header ('Cache-Control: no-cache, pre-check=0, post-check=0');
140  }
141  else
142  {
143      header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
144  }
145  header ('Expires: 0');
146  header ('Pragma: no-cache');
147   
148  $template->pparse('header');
149   
150  ?>
151