X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=index.php;h=ffc8ee5b9e573c29ffe42ee4fee9ae4bd3aef4d1;hp=cf5ba7655d81a1287c3147171e4dd2cd0e5defb9;hb=c4a27bf244e6f716db5c618db72ac3b9719e6da9;hpb=7051c4300d4be70543edab7d42272d92b0070870 diff --git a/index.php b/index.php index cf5ba765..ffc8ee5b 100644 --- a/index.php +++ b/index.php @@ -1,27 +1,25 @@

ERROR: Config file \"config/config.php\" not found. " . + "You need to configure SquirrelMail before you can use it.

"; + exit; +} - // Get the hostname from the Host header or server config. - // Fallback is to omit the server name and use a relative URI, - // although this is not RFC 2616 compliant. - if(isset($HTTP_HOST) && !empty($HTTP_HOST)) { - $location = $proto . $HTTP_HOST . $path; - } else if(isset($SERVER_NAME) && !empty($SERVER_NAME)) { - $location = $proto . $SERVER_NAME . $path; - } else { - $location = $path; - } +// if we are, go ahead to the login page. +header("Location: src/login.php\n\n"); - // Redirect - header("Location: $location/src/login.php\n\n"); - exit(); ?> +