[ Index ]

PHP Cross Reference of phpBB-3.1.10-deutsch

title

Body

[close]

/install/ -> install_main.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * 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  }


Generated: Sun Feb 19 19:52:41 2017 Cross-referenced by PHPXref 0.7.1