Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

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

startup.php

Zuletzt modifiziert: 02.04.2025, 15:01 - Dateigröße: 2.93 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  if (!defined('IN_PHPBB'))
17  {
18      exit;
19  }
20   
21  // Report all errors, except notices and deprecation messages
22  $level = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
23  error_reporting($level);
24   
25  /**
26  * Minimum Requirement: PHP 7.2.0
27  */
28  if (version_compare(PHP_VERSION, '7.2.0', '<'))
29  {
30      die('You are running an unsupported PHP version (' . PHP_VERSION . '). Please upgrade to PHP 7.2.0 or higher before trying to install or update to phpBB 3.3');
31  }
32  // Register globals and magic quotes have been dropped in PHP 5.4 so no need for extra checks
33   
34   
35  // In PHP 5.3.0 the error level has been raised to E_WARNING which causes problems
36  // because we show E_WARNING errors and do not set a default timezone.
37  // This is because we have our own timezone handling and work in UTC only anyway.
38   
39  // So what we basically want to do is set our timezone to UTC,
40  // but we don't know what other scripts (such as bridges) are involved,
41  // so we check whether a timezone is already set by calling date_default_timezone_get().
42   
43  // Unfortunately, date_default_timezone_get() itself might throw E_WARNING
44  // if no timezone has been set, so we have to keep it quiet with @.
45   
46  // date_default_timezone_get() tries to guess the correct timezone first
47  // and then falls back to UTC when everything fails.
48  // We just set the timezone to whatever date_default_timezone_get() returns.
49  date_default_timezone_set(@date_default_timezone_get());
50   
51  // Autoloading of dependencies.
52  // Three options are supported:
53  // 1. If dependencies are installed with Composer, Composer will create a
54  //    vendor/autoload.php. If this file exists it will be
55  //    automatically used by phpBB. This is the default mode that phpBB
56  //    will use when shipped.
57  // 2. To disable composer autoloading, PHPBB_NO_COMPOSER_AUTOLOAD can be specified.
58  //       Additionally specify PHPBB_AUTOLOAD=/path/to/autoload.php in the
59  //    environment. This is useful for running CLI scripts and tests.
60  //    /path/to/autoload.php should define and register class loaders
61  //    for all of phpBB's dependencies.
62  // 3. You can also set PHPBB_NO_COMPOSER_AUTOLOAD without setting PHPBB_AUTOLOAD.
63  //    In this case autoloading needs to be defined before running any phpBB
64  //    script. This might be useful in cases when phpBB is integrated into a
65  //    larger program.
66  if (getenv('PHPBB_NO_COMPOSER_AUTOLOAD'))
67  {
68      if (getenv('PHPBB_AUTOLOAD'))
69      {
70          require(getenv('PHPBB_AUTOLOAD'));
71      }
72  }
73  else
74  {
75      if (!file_exists($phpbb_root_path . 'vendor/autoload.php'))
76      {
77          trigger_error(
78              'Composer dependencies have not been set up yet, run ' .
79              "'php ../composer.phar install' from the phpBB directory to do so.",
80              E_USER_ERROR
81          );
82      }
83      require($phpbb_root_path . 'vendor/autoload.php');
84  }
85   
86  $starttime = microtime(true);
87