22 use TYPO3\CMS\Backend\Controller;
24 call_user_func(
function () {
25 $classLoader = require __DIR__ .
'/../vendor/autoload.php';
26 (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run(
function () {
28 $originalRequestedFilenameParts = parse_url(GeneralUtility::getIndpEnv(
'TYPO3_REQUEST_URL'));
29 $originalRequestedFilename = basename($originalRequestedFilenameParts[
'path']);
31 switch ($originalRequestedFilename) {
33 GeneralUtility::deprecationLog(
34 'The entry point to ajax.php was moved to index.php with ajaxID given. Please use BackendUtility::getAjaxUrl(\'myAjaxKey\') to link to the AJAX Call.'
38 case 'alt_clickmenu.php':
39 GeneralUtility::deprecationLog(
40 'alt_clickmenu.php is deprecated, and will not work anymore, please use the AJAX functionality as used in the TYPO3 Core.'
43 $clickMenuController = GeneralUtility::makeInstance(Controller\ClickMenuController::class);
44 $clickMenuController->main();
45 $clickMenuController->printContent();
48 case 'alt_db_navframe.php':
49 GeneralUtility::deprecationLog(
50 'Usage of alt_db_navframe.php is deprecated since TYPO3 CMS 7, and will be removed in TYPO3 CMS 8'
54 $pageTreeNavigationController = GeneralUtility::makeInstance(Controller\PageTreeNavigationController::class);
55 $pageTreeNavigationController->initPage();
56 $pageTreeNavigationController->main();
57 $pageTreeNavigationController->printContent();
61 GeneralUtility::deprecationLog(
62 'The entry point to FormEngine was moved to an own module. Please use BackendUtility::getModuleUrl(\'record_edit\') to link to alt_doc.php.'
64 \TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords();
67 $editDocumentController = GeneralUtility::makeInstance(Controller\EditDocumentController::class);
70 $editDocumentController->preInit();
73 if ($editDocumentController->doProcessData()) {
74 $formProtection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
75 if ($formProtection->validateToken(GeneralUtility::_GP(
'formToken'),
'editRecord')) {
76 $editDocumentController->processData();
80 $editDocumentController->init();
81 $editDocumentController->main();
82 $editDocumentController->printContent();
85 case 'alt_file_navframe.php':
86 GeneralUtility::deprecationLog(
87 'The entry point to the folder tree was moved to an own module. Please use BackendUtility::getModuleUrl(\'file_navframe\') to link to alt_file_navframe.php.'
90 $fileSystemNavigationFrameController = GeneralUtility::makeInstance(Controller\FileSystemNavigationFrameController::class);
91 $fileSystemNavigationFrameController->initPage();
92 $fileSystemNavigationFrameController->main();
93 $fileSystemNavigationFrameController->printContent();
97 GeneralUtility::deprecationLog(
98 'The entry point to the file/record browser window was moved to an own module. Please use BackendUtility::getModuleUrl(\'browser\') to link to browser.php.'
101 $elementBrowserFramesetController = GeneralUtility::makeInstance(\TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController::class);
102 $elementBrowserFramesetController->main();
103 $elementBrowserFramesetController->printContent();
107 GeneralUtility::deprecationLog(
108 'The entry point to create a new database entry was moved to an own module. Please use BackendUtility::getModuleUrl(\'db_new\') to link to db_new.php.'
111 $newRecordController = GeneralUtility::makeInstance(Controller\NewRecordController::class);
112 $newRecordController->main();
113 $newRecordController->printContent();
117 GeneralUtility::deprecationLog(
118 'The entry point to the dummy window was moved to an own module. Please use BackendUtility::getModuleUrl(\'dummy\') to link to dummy.php.'
121 $dummyController = GeneralUtility::makeInstance(Controller\DummyController::class);
122 $dummyController->main();
123 $dummyController->printContent();
127 GeneralUtility::deprecationLog(
128 'Usage of typo3/init.php is deprecated. Use index.php with Routing or the Backend Application class directly. See index.php for usage'
132 case 'login_frameset.php':
133 GeneralUtility::deprecationLog(
134 'Login frameset is moved to an own module. Please use BackendUtility::getModuleUrl(\'login_frameset\') to link to login_frameset.php.'
138 $loginFramesetController = GeneralUtility::makeInstance(Controller\LoginFramesetController::class);
139 $loginFramesetController->main();
140 $loginFramesetController->printContent();
144 GeneralUtility::deprecationLog(
145 'The entry point to logout was moved to an own module. Please use BackendUtility::getModuleUrl(\'logout\') to link to logout.php.'
148 $logoutController = GeneralUtility::makeInstance(Controller\LogoutController::class);
149 $logoutController->logout();
151 $redirect = GeneralUtility::sanitizeLocalUrl(GeneralUtility::_GP(
'redirect'));
152 $redirectUrl = $redirect ?:
'index.php';
153 \TYPO3\CMS\Core\Utility\HttpUtility::redirect($redirectUrl);
157 GeneralUtility::deprecationLog(
158 'The entry point to mod.php was moved to index.php with "M" given. Please use BackendUtility::getModuleUrl(\'myModuleKey\') to link to a module.'
163 GeneralUtility::deprecationLog(
164 'Moving an element is moved to an own module. Please use BackendUtility::getModuleUrl(\'move_element\') to link to move_el.php.'
167 $moveElementController = GeneralUtility::makeInstance(Controller\ContentElement\MoveElementController::class);
168 $moveElementController->main();
169 $moveElementController->printContent();
172 case 'show_item.php':
173 GeneralUtility::deprecationLog(
174 'The entry point to show_item was moved to an own module. Please use BackendUtility::getModuleUrl(\'show_item\') to link to show_item.php.'
177 $elementInformationController = GeneralUtility::makeInstance(Controller\ContentElement\ElementInformationController::class);
178 $elementInformationController->main();
179 $elementInformationController->printContent();
183 GeneralUtility::deprecationLog(
184 'The entry point to data handling via DataHandler was moved to an own module. Please use BackendUtility::getModuleUrl(\'tce_db\') to link to tce_db.php / DataHandler.'
187 $simpleDataHandlerController = GeneralUtility::makeInstance(Controller\SimpleDataHandlerController::class);
189 $formProtection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
190 if ($formProtection->validateToken(GeneralUtility::_GP(
'formToken'),
'tceAction')) {
191 $simpleDataHandlerController->initClipboard();
192 $simpleDataHandlerController->main();
194 $simpleDataHandlerController->finish();
198 GeneralUtility::deprecationLog(
199 'File handling entry point was moved an own module. Please use BackendUtility::getModuleUrl(\'tce_file\') to link to tce_file.php.'
202 $fileController = GeneralUtility::makeInstance(Controller\
File\FileController::class);
204 $formProtection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
205 if ($formProtection->validateToken(GeneralUtility::_GP(
'formToken'),
'tceAction')) {
206 $fileController->main();
209 $fileController->finish();
213 GeneralUtility::deprecationLog(
214 'thumbs.php is no longer in use, please use the corresponding Resource objects to generate a preview functionality for thumbnails.'
216 $GLOBALS[
'SOBE'] = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\View\ThumbnailView::class);
222 throw new \RuntimeException(
'You cannot call this script directly.');