[BUGFIX] ScriptPreviewRenderer make use of protected function
[Packages/TYPO3.CMS.git] / typo3 / logout.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 * Logout script for the backend
17 * This script saves the interface positions and calls the closeTypo3Windows in the frameset
18 *
19 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
20 */
21 define('TYPO3_MODE', 'BE');
22
23 require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';
24 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->run('typo3/');
25
26 \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
27 'The entry point to logout was moved to an own module. Please use BackendUtility::getModuleUrl(\'logout\') to link to logout.php. This script will be removed in TYPO3 CMS 8.'
28 );
29
30 $logoutController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\LogoutController::class);
31 $logoutController->logout();