[BUGFIX] Fix RTE width
[Packages/TYPO3.CMS.git] / typo3 / init.php
1 <?php
2 /**
3 * This file is part of the TYPO3 CMS project.
4 *
5 * It is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License, either version 2
7 * of the License, or any later version.
8 *
9 * For the full copyright and license information, please read the
10 * LICENSE.txt file that was distributed with this source code.
11 *
12 * The TYPO3 project - inspiring people to share!
13 */
14
15 /**
16 * TYPO3 Backend initialization
17 *
18 * This script is called by every backend script.
19 * The script authenticates the backend user.
20 * In addition this script also initializes the database and other depending on LocalConfiguration.php
21 *
22 * IMPORTANT:
23 * This script exits if no user is logged in!
24 * If you want the script to return even if no user is logged in,
25 * you must define the constant TYPO3_PROCEED_IF_NO_USER=1
26 * before you include this script.
27 *
28 *
29 * This script does the following:
30 * - extracts and defines path's
31 * - includes certain libraries
32 * - authenticates the user
33 * - load the groupdata for the user and set filemounts / webmounts
34 *
35 * For a detailed description of this script, the scope of constants and variables in it,
36 * please refer to the document "Inside TYPO3"
37 *
38 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
39 */
40 define('TYPO3_MODE', 'BE');
41
42 require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';
43
44 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()
45 ->baseSetup('typo3/')
46 ->redirectToInstallerIfEssentialConfigurationDoesNotExist('../')
47 ->startOutputBuffering()
48 ->loadConfigurationAndInitialize()
49 ->loadTypo3LoadedExtAndExtLocalconf(TRUE)
50 ->applyAdditionalConfigurationSettings()
51 ->initializeTypo3DbGlobal()
52 ->checkLockedBackendAndRedirectOrDie()
53 ->checkBackendIpOrDie()
54 ->checkSslBackendAndRedirectIfNeeded()
55 ->checkValidBrowserOrDie()
56 ->loadExtensionTables(TRUE)
57 ->initializeSpriteManager()
58 ->initializeBackendUser()
59 ->initializeBackendAuthentication()
60 ->initializeBackendUserMounts()
61 ->initializeLanguageObject()
62 ->initializeBackendTemplate()
63 ->endOutputBufferingAndCleanPreviousOutput()
64 ->initializeOutputCompression()
65 ->sendHttpHeaders();