X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=index.php;h=061e76ee29522c196c14587a158de11b332323eb;hp=b33834168c3e6549ada0a6f0b8f6003822312bad;hb=8747058aeaa16ece0107b756645abcb8f8a32b5b;hpb=2e8d4c5bd7bc54816b6012d8c284dd0c1849298e diff --git a/index.php b/index.php index b3383416..061e76ee 100644 --- a/index.php +++ b/index.php @@ -1,26 +1,24 @@

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'); - // Redirect - header("Location: $location/src/login.php\n\n"); - exit(); -?>