Skip to content

Commit 8ba9edd

Browse files
committed
Add Web/index.php
1 parent 5c06309 commit 8ba9edd

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

typo3f-3.0/Web/index.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/* *
4+
* This script belongs to the TYPO3 Flow framework. *
5+
* *
6+
* It is free software; you can redistribute it and/or modify it under *
7+
* the terms of the GNU Lesser General Public License, either version 3 *
8+
* of the License, or (at your option) any later version. *
9+
* *
10+
* The TYPO3 project - inspiring people to share! *
11+
* */
12+
13+
putenv("FLOW_CONTEXT=Production");
14+
15+
$rootPath = isset($_SERVER['FLOW_ROOTPATH']) ? $_SERVER['FLOW_ROOTPATH'] : FALSE;
16+
if ($rootPath === FALSE && isset($_SERVER['REDIRECT_FLOW_ROOTPATH'])) {
17+
$rootPath = $_SERVER['REDIRECT_FLOW_ROOTPATH'];
18+
}
19+
if ($rootPath === FALSE) {
20+
$rootPath = dirname(__FILE__) . '/../';
21+
} elseif (substr($rootPath, -1) !== '/') {
22+
$rootPath .= '/';
23+
}
24+
25+
require($rootPath . 'Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Core/Bootstrap.php');
26+
27+
$context = \TYPO3\Flow\Core\Bootstrap::getEnvironmentConfigurationSetting('FLOW_CONTEXT') ?: 'Development';
28+
$bootstrap = new \TYPO3\Flow\Core\Bootstrap($context);
29+
$bootstrap->run();

0 commit comments

Comments
 (0)