mirror of
https://github.com/ManfredAabye/OpenSim-Viewer-Webinterface.git
synced 2026-08-14 08:53:07 +00:00
17 lines
482 B
PHP
17 lines
482 B
PHP
<?php
|
|
// Check if configuration files exist
|
|
if (!file_exists(__DIR__ . '/config.php')) {
|
|
// Redirect to setup assistant
|
|
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
|
|
$host = $_SERVER['HTTP_HOST'];
|
|
$path = dirname($_SERVER['REQUEST_URI']);
|
|
$setupUrl = $protocol . '://' . $host . $path . '/setup.php';
|
|
|
|
header("Location: $setupUrl");
|
|
exit;
|
|
}
|
|
|
|
require_once 'config.php';
|
|
include HEADER_FILE;
|
|
?>
|