[TASK] Include jQuery with bower and update it to 1.11.3
[Packages/TYPO3.CMS.git] / typo3 / tce_db.php
index 9d547d8..34e4552 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/**
+/*
  * This file is part of the TYPO3 CMS project.
  *
  * It is free software; you can redistribute it and/or modify it under
  *
  * @author Kasper Skårhøj <kasperYYYY@typo3.com>
  */
-require __DIR__ . '/init.php';
+call_user_func(function() {
+       $classLoader = require __DIR__ . '/contrib/vendor/autoload.php';
+       (new \TYPO3\CMS\Backend\Http\Application($classLoader))->run(function() {
+               \TYPO3\CMS\Core\Utility\GeneralUtility::deprecationLog(
+                       '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.'
+               );
 
-$simpleDataHandlerController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::class);
+               $simpleDataHandlerController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::class);
 
-$formprotection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
-if ($formprotection->validateToken(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('formToken'), 'tceAction')) {
-       $simpleDataHandlerController->initClipboard();
-       $simpleDataHandlerController->main();
-}
-$simpleDataHandlerController->finish();
+               $formprotection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get();
+               if ($formprotection->validateToken(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('formToken'), 'tceAction')) {
+                       $simpleDataHandlerController->initClipboard();
+                       $simpleDataHandlerController->main();
+               }
+               $simpleDataHandlerController->finish();
+       });
+});