[TASK] Introduce unified RequestHandling for all requests
[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 * Please note that this file might be removed in the future in favor of adding these lines to all entry
39 * scripts as well.
40 *
41 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
42 */
43 define('TYPO3_MODE', 'BE');
44
45 require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';
46 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->run('typo3/');