TYPO3 CMS  TYPO3_7-6
index.php
Go to the documentation of this file.
1 <?php
2 
3 // This is a stub file for redirecting the user to the proper Install Tool URL
4 
5 call_user_func(function () {
6 
7  // We leverage the class loader here to get the static functionality of GeneralUtility and HttpUtility.
8  // This way we do not need to copy all the code here to cope with correct location header URL generation correctly
9  // as those two classes can already correctly deal with all known edge cases.
10 
11  require __DIR__ . '/../../vendor/autoload.php';
12 
13  // We ensure that possible notices from Core code do not kill our redirect due to PHP output
14  error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_DEPRECATED));
15 
16  \TYPO3\CMS\Core\Utility\HttpUtility::redirect('../sysext/install/Start/Install.php', \TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_307);
17 });
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
Definition: HttpUtility.php:76