Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
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 |
installer_index.php
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 namespace phpbb\install\controller;
15
16 class installer_index
17 {
18 /**
19 * @var helper
20 */
21 protected $helper;
22
23 /**
24 * @var \phpbb\language\language
25 */
26 protected $language;
27
28 /**
29 * @var \phpbb\template\template
30 */
31 protected $template;
32
33 /**
34 * @var string
35 */
36 protected $phpbb_root_path;
37
38 /**
39 * Constructor
40 *
41 * @param helper $helper
42 * @param \phpbb\language\language $language
43 * @param \phpbb\template\template $template
44 * @param string $phpbb_root_path
45 */
46 public function __construct(helper $helper, \phpbb\language\language $language, \phpbb\template\template $template, $phpbb_root_path)
47 {
48 $this->helper = $helper;
49 $this->language = $language;
50 $this->template = $template;
51 $this->phpbb_root_path = $phpbb_root_path;
52 }
53
54 public function handle($mode)
55 {
56 $this->helper->handle_language_select();
57
58 switch ($mode)
59 {
60 case "intro":
61 $title = $this->language->lang('INTRODUCTION_TITLE');
62 $body = $this->language->lang('INTRODUCTION_BODY');
63 break;
64 case "support":
65 $title = $this->language->lang('SUPPORT_TITLE');
66 $body = $this->language->lang('SUPPORT_BODY');
67 break;
68 case "license":
69 $title = $this->language->lang('LICENSE_TITLE');
70 $body = implode("<br/>\n", file($this->phpbb_root_path . 'docs/LICENSE.txt'));
71 break;
72 }
73
74 $this->template->assign_vars(array(
75 'TITLE' => $title,
76 'BODY' => $body,
77 ));
78
79 return $this->helper->render('installer_main.html', $title, true);
80 }
81 }
82