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

install_main.php

Zuletzt modifiziert: 09.10.2024, 12:51 - Dateigröße: 1.55 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  */
16   
17  if ( !defined('IN_INSTALL') )
18  {
19      // Someone has tried to access the file direct. This is not a good idea, so exit
20      exit;
21  }
22   
23  if (!empty($setmodules))
24  {
25      $module[] = array(
26          'module_type'        => 'install',
27          'module_title'        => 'OVERVIEW',
28          'module_filename'    => substr(basename(__FILE__), 0, -strlen($phpEx)-1),
29          'module_order'        => 0,
30          'module_subs'        => array('INTRO', 'LICENSE', 'SUPPORT'),
31          'module_stages'        => '',
32          'module_reqs'        => ''
33      );
34  }
35   
36  /**
37  * Main Tab - Installation
38  */
39  class install_main extends module
40  {
41      function install_main(&$p_master)
42      {
43          $this->p_master = &$p_master;
44      }
45   
46      function main($mode, $sub)
47      {
48          global $lang, $template, $language;
49   
50          switch ($sub)
51          {
52              case 'intro' :
53                  $title = $lang['SUB_INTRO'];
54                  $body = $lang['OVERVIEW_BODY'];
55              break;
56   
57              case 'license' :
58                  $title = $lang['GPL'];
59                  $body = implode("<br/>\n", file(__DIR__ . '/../docs/LICENSE.txt'));
60              break;
61   
62              case 'support' :
63                  $title = $lang['SUB_SUPPORT'];
64                  $body = $lang['SUPPORT_BODY'];
65              break;
66          }
67   
68          $this->tpl_name = 'install_main';
69          $this->page_title = $title;
70   
71          $template->assign_vars(array(
72              'TITLE'        => $title,
73              'BODY'        => $body,
74   
75              'S_LANG_SELECT'    => '<select id="language" name="language">' . $this->p_master->inst_language_select($language) . '</select>',
76          ));
77      }
78  }
79