Verzeichnisstruktur phpBB-3.0.0


Veröffentlicht
12.12.2007

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:50 - Dateigröße: 1.44 KiB


01  <?php
02  /**
03  *
04  * @package install
05  * @version $Id$
06  * @copyright (c) 2005 phpBB Group
07  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
08  *
09  */
10   
11  /**
12  */
13   
14  if ( !defined('IN_INSTALL') )
15  {
16      // Someone has tried to access the file direct. This is not a good idea, so exit
17      exit;
18  }
19   
20  if (!empty($setmodules))
21  {
22      $module[] = array(
23          'module_type'        => 'install',
24          'module_title'        => 'OVERVIEW',
25          'module_filename'    => substr(basename(__FILE__), 0, -strlen($phpEx)-1),
26          'module_order'        => 0,
27          'module_subs'        => array('INTRO', 'LICENSE', 'SUPPORT'),
28          'module_stages'        => '',
29          'module_reqs'        => ''
30      );
31  }
32   
33  /**
34  * Main Tab - Installation
35  * @package install
36  */
37  class install_main extends module
38  {
39      function install_main(&$p_master)
40      {
41          $this->p_master = &$p_master;
42      }
43   
44      function main($mode, $sub)
45      {
46          global $lang, $template, $language;
47   
48          switch ($sub)
49          {
50              case 'intro' :
51                  $title = $lang['SUB_INTRO'];
52                  $body = $lang['OVERVIEW_BODY'];
53              break;
54   
55              case 'license' :
56                  $title = $lang['GPL'];
57                  $body = implode("<br/>\n", file('../docs/COPYING'));
58              break;
59   
60              case 'support' :
61                  $title = $lang['SUB_SUPPORT'];
62                  $body = $lang['SUPPORT_BODY'];
63              break;
64          }
65   
66          $this->tpl_name = 'install_main';
67          $this->page_title = $title;
68   
69          $template->assign_vars(array(
70              'TITLE'        => $title,
71              'BODY'        => $body,
72   
73              'S_LANG_SELECT'    => '<select id="language" name="language">' . $this->p_master->inst_language_select($language) . '</select>',
74          ));
75      }
76  }
77   
78  ?>