[BUGFIX] remove wrong code suggestion from GMENU
[Packages/TYPO3.CMS.git] / typo3 / tce_db.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 * TCE gateway (TYPO3 Core Engine) for database handling
17 * This script is a gateway for POST forms to \TYPO3\CMS\Core\DataHandling\DataHandler
18 * that manipulates all information in the database!!
19 * For syntax and API information, see the document 'TYPO3 Core APIs'
20 *
21 * @author Kasper Skårhøj <kasperYYYY@typo3.com>
22 */
23 require __DIR__ . '/init.php';
24
25 \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
26 '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. This script will be removed in TYPO3 CMS 8.'
27 );
28
29 $simpleDataHandlerController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::class);
30
31 $formprotection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
32 if ($formprotection->validateToken(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('formToken'), 'tceAction')) {
33 $simpleDataHandlerController->initClipboard();
34 $simpleDataHandlerController->main();
35 }
36 $simpleDataHandlerController->finish();