Created
October 21, 2013 13:23
-
-
Save johnzuh/7083807 to your computer and use it in GitHub Desktop.
index.php after restarting browser.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* * | |
* This script belongs to the TYPO3 Flow framework. * | |
* * | |
* It is free software; you can redistribute it and/or modify it under * | |
* the terms of the GNU Lesser General Public License, either version 3 * | |
* of the License, or (at your option) any later version. * | |
* * | |
* The TYPO3 project - inspiring people to share! * | |
* */ | |
$rootPath = isset($_SERVER['FLOW_ROOTPATH']) ? $_SERVER['FLOW_ROOTPATH'] : FALSE; | |
if ($rootPath === FALSE && isset($_SERVER['REDIRECT_FLOW_ROOTPATH'])) { | |
$rootPath = $_SERVER['REDIRECT_FLOW_ROOTPATH']; | |
} | |
if ($rootPath === FALSE) { | |
$rootPath = dirname(__FILE__) . '/../'; | |
} elseif (substr($rootPath, -1) !== '/') { | |
$rootPath .= '/'; | |
} | |
require($rootPath . 'Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Bootstrap.php'); | |
$context = getenv('FLOW_CONTEXT') ?: (getenv('REDIRECT_FLOW_CONTEXT') ?: 'Development'); | |
$bootstrap = new \TYPO3\Flow\Core\Bootstrap($context); | |
$bootstrap->run(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this same result when i type localhost in my browser.