Changed language-code link.
[squirrelmail.git] / index.php
index 45e3f8370d272e1445cc4de96682ced8866974ce..2e5cde837e0ebdde689db7fe57fbc1b8b58748b0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,8 +1,7 @@
 <?php
-   $headers = getallheaders();
-   $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
-   $location = $headers["Host"] . $path;
+   include "functions/strings.php";
 
-   header("Location: http://$location/src/login.php\n\n");
+   $location = get_location();
+   header("Location: $location/src/login.php\n\n");
    exit();
 ?>