Revision 1450
Added by DarkViper over 14 years ago
| index.php | ||
|---|---|---|
| 27 | 27 |
} |
| 28 | 28 |
|
| 29 | 29 |
// Check if the config file has been set-up |
| 30 |
if(!defined('WB_PATH'))
|
|
| 30 |
if(!defined('TABLE_PREFIX'))
|
|
| 31 | 31 |
{
|
| 32 | 32 |
/* |
| 33 |
* Anmerkung: HTTP/1.1 verlangt einen absoluten URI inklusive dem Schema,
|
|
| 34 |
* Hostnamen und absoluten Pfad als Argument von Location:, manche aber nicht alle
|
|
| 35 |
* Clients akzeptieren jedoch auch relative URIs.
|
|
| 33 |
* Remark: HTTP/1.1 requires a qualified URI incl. the scheme, name
|
|
| 34 |
* of the host and absolute path as the argument of location. Some, but
|
|
| 35 |
* not all clients will accept relative URIs also.
|
|
| 36 | 36 |
*/ |
| 37 | 37 |
$host = $_SERVER['HTTP_HOST']; |
| 38 | 38 |
$uri = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\'); |
| 39 | 39 |
$file = 'install/index.php'; |
| 40 | 40 |
$target_url = 'http://'.$host.$uri.'/'.$file; |
| 41 |
$sResponse = $_SERVER['SERVER_PROTOCOL'].' 307 Temporary Redirect'; |
|
| 42 |
header($sResponse); |
|
| 41 | 43 |
header('Location: '.$target_url);
|
| 42 | 44 |
exit; // make sure that subsequent code will not be executed |
| 43 | 45 |
} |
| ... | ... | |
| 145 | 147 |
$output = filter_frontend_output($output); |
| 146 | 148 |
} |
| 147 | 149 |
} |
| 148 |
|
|
| 149 | 150 |
// move css definitions into head section |
| 150 |
$output = moveCssToHead($output); |
|
| 151 |
if(function_exists('moveCssToHead')) {
|
|
| 152 |
$output = moveCssToHead($output); |
|
| 153 |
} |
|
| 154 |
// now send complete page to the browser |
|
| 151 | 155 |
echo $output; |
| 152 | 156 |
// end of wb-script |
| 153 | 157 |
exit; |
Also available in: Unified diff
local sync