Revision 7
Added by Manuela about 7 years ago
index.php | ||
---|---|---|
33 | 33 |
* of the host and absolute path as the argument of location. Some, but |
34 | 34 |
* not all clients will accept relative URIs also. |
35 | 35 |
*/ |
36 |
|
|
37 |
$_SERVER['REQUEST_SCHEME'] = isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME'] : 'http'; |
|
36 | 38 |
$host = $_SERVER['HTTP_HOST']; |
37 | 39 |
$uri = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\'); |
38 | 40 |
$file = 'install/index.php'; |
39 |
$target_url = 'http://'.$host.$uri.'/'.$file;
|
|
41 |
$target_url = $_SERVER['REQUEST_SCHEME'].'://'.$host.$uri.'/'.$file;
|
|
40 | 42 |
$sResponse = $_SERVER['SERVER_PROTOCOL'].' 307 Temporary Redirect'; |
41 | 43 |
header($sResponse); |
42 | 44 |
header('Location: '.$target_url); |
43 | 45 |
exit; // make sure that subsequent code will not be executed |
44 | 46 |
} |
45 | 47 |
|
46 |
if (!class_exists('frontend')) { require(WB_PATH.'/framework/class.frontend.php'); }
|
|
48 |
// if (!class_exists('frontend')) { require WB_PATH.'/framework/class.frontend.php'; }
|
|
47 | 49 |
// Create new frontend object |
48 | 50 |
if (!isset($wb) || !($wb instanceof frontend)) { $wb = new frontend(); } |
49 | 51 |
|
Also available in: Unified diff
added new class Autoloader