Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

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

faq.php

Zuletzt modifiziert: 09.10.2024, 12:50 - Dateigröße: 1.84 KiB


01  <?php
02  /**
03  *
04  * This file is part of the phpBB Forum Software package.
05  *
06  * @copyright (c) phpBB Limited <https://www.phpbb.com>
07  * @license GNU General Public License, version 2 (GPL-2.0)
08  *
09  * For full copyright and license information, please see
10  * the docs/CREDITS.txt file.
11  *
12  */
13   
14  /**
15  * @ignore
16  */
17  define('IN_PHPBB', true);
18  $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
19  $phpEx = substr(strrchr(__FILE__, '.'), 1);
20  include($phpbb_root_path . 'common.' . $phpEx);
21   
22  // Start session management
23  $user->session_begin();
24  $auth->acl($user->data);
25  $user->setup();
26   
27  $mode = request_var('mode', '');
28   
29  // Load the appropriate faq file
30  switch ($mode)
31  {
32      case 'bbcode':
33          $l_title = $user->lang['BBCODE_GUIDE'];
34          $user->add_lang('bbcode', false, true);
35      break;
36   
37      default:
38          $l_title = $user->lang['FAQ_EXPLAIN'];
39          $user->add_lang('faq', false, true);
40      break;
41  }
42   
43  // Pull the array data from the lang pack
44  $switch_column = $found_switch = false;
45  $help_blocks = array();
46  foreach ($user->help as $help_ary)
47  {
48      if ($help_ary[0] == '--')
49      {
50          if ($help_ary[1] == '--')
51          {
52              $switch_column = true;
53              $found_switch = true;
54              continue;
55          }
56   
57          $template->assign_block_vars('faq_block', array(
58              'BLOCK_TITLE'        => $help_ary[1],
59              'SWITCH_COLUMN'        => $switch_column,
60          ));
61   
62          if ($switch_column)
63          {
64              $switch_column = false;
65          }
66          continue;
67      }
68   
69      $template->assign_block_vars('faq_block.faq_row', array(
70          'FAQ_QUESTION'        => $help_ary[0],
71          'FAQ_ANSWER'        => $help_ary[1])
72      );
73  }
74   
75  // Lets build a page ...
76  $template->assign_vars(array(
77      'L_FAQ_TITLE'                => $l_title,
78      'L_BACK_TO_TOP'                => $user->lang['BACK_TO_TOP'],
79   
80      'SWITCH_COLUMN_MANUALLY'    => (!$found_switch) ? true : false,
81      'S_IN_FAQ'                    => true,
82  ));
83   
84  page_header($l_title);
85   
86  $template->set_filenames(array(
87      'body' => 'faq_body.html')
88  );
89  make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
90   
91  page_footer();
92