[ Index ]

PHP Cross Reference of phpBB-3.2.0-deutsch

title

Body

[close]

/install/ -> app.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   * @ignore
  16   */
  17  define('IN_PHPBB', true);
  18  define('IN_INSTALL', true);
  19  define('PHPBB_ENVIRONMENT', 'production');
  20  $phpbb_root_path = '../';
  21  $phpEx = substr(strrchr(__FILE__, '.'), 1);
  22  
  23  $startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startup.' . $phpEx;
  24  $startup_path = (file_exists($startup_new_path)) ? $startup_new_path : $phpbb_root_path . 'install/startup.' . $phpEx;
  25  require($startup_path);
  26  
  27  /** @var \phpbb\filesystem\filesystem $phpbb_filesystem */
  28  $phpbb_filesystem = $phpbb_installer_container->get('filesystem');
  29  
  30  /** @var \phpbb\template\template $template */
  31  $template = $phpbb_installer_container->get('template');
  32  
  33  // Path to templates
  34  $paths = array($phpbb_root_path . 'install/update/new/adm/style', $phpbb_admin_path . 'style');
  35  $paths = array_filter($paths, 'is_dir');
  36  
  37  $template->set_custom_style(array(
  38      array(
  39          'name'         => 'adm',
  40          'ext_path'     => 'adm/style/',
  41      ),
  42  ), $paths);
  43  
  44  /** @var $phpbb_dispatcher \phpbb\event\dispatcher */
  45  $phpbb_dispatcher = $phpbb_installer_container->get('dispatcher');
  46  
  47  /** @var \phpbb\language\language $language */
  48  $language = $phpbb_installer_container->get('language');
  49  $language->add_lang(array('common', 'acp/common', 'acp/board', 'install', 'posting'));
  50  
  51  /** @var $http_kernel \Symfony\Component\HttpKernel\HttpKernel */
  52  $http_kernel = $phpbb_installer_container->get('http_kernel');
  53  
  54  /** @var $symfony_request \phpbb\symfony_request */
  55  $symfony_request = $phpbb_installer_container->get('symfony_request');
  56  $response = $http_kernel->handle($symfony_request);
  57  $response->send();
  58  $http_kernel->terminate($symfony_request, $response);


Generated: Sun Feb 19 19:47:08 2017 Cross-referenced by PHPXref 0.7.1