[TASK] Remove tslib directory
[Packages/TYPO3.CMS.git] / index.php
index 1d52a83..1a4da31 100644 (file)
--- a/index.php
+++ b/index.php
  * This is the MAIN DOCUMENT of the TypoScript driven standard frontend.
  * Basically this is the "index.php" script which all requests for TYPO3
  * delivered pages goes to in the frontend (the website)
- *
- * @author RenĂ© Fritz <r.fritz@colorcube.de>
  */
 
+define('TYPO3_MODE', 'FE');
+
 require __DIR__ . '/typo3/sysext/core/Classes/Core/Bootstrap.php';
 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()
        ->baseSetup('')
-       ->redirectToInstallerIfEssentialConfigurationDoesNotExist();
+       ->redirectToInstallerIfEssentialConfigurationDoesNotExist()
+       ->startOutputBuffering()
+       ->loadConfigurationAndInitialize();
 
-require(PATH_tslib . 'index_ts.php');
+$frontendRequestHandler = new \TYPO3\CMS\Frontend\FrontendRequestHandler();
+$frontendRequestHandler->handleRequest();