[BUGFIX] Improve dependency check in extension manager
[Packages/TYPO3.CMS.git] / typo3 / tce_file.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 * Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms.
17 * This script serves as the fileadministration part of the TYPO3 Core Engine.
18 * Basically it includes two libraries which are used to manipulate files on the server.
19 *
20 * For syntax and API information, see the document 'TYPO3 Core APIs'
21 *
22 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
23 */
24 require __DIR__ . '/init.php';
25
26 \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
27 'File handling entry point was moved an own module. Please use BackendUtility::getModuleUrl(\'tce_file\') to link to tce_file.php. This script will be removed in TYPO3 CMS 8.'
28 );
29
30 $fileController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\File\FileController::class);
31
32 $formprotection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
33 if ($formprotection->validateToken(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('formToken'), 'tceAction')) {
34 $fileController->main();
35 }
36
37 $fileController->finish();