Skip to content

Instantly share code, notes, and snippets.

@johnzuh
Created October 21, 2013 13:23
Show Gist options
  • Save johnzuh/7083807 to your computer and use it in GitHub Desktop.
Save johnzuh/7083807 to your computer and use it in GitHub Desktop.
index.php after restarting browser.
<?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();
?>
@johnzuh
Copy link
Author

johnzuh commented Oct 21, 2013

I get this same result when i type localhost in my browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment