[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/phpbb/install/controller/ -> installer_index.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  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  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1