"Cosmetic" patch change in commented module information.
[squirrelmail.git] / index.php
index 45e3f8370d272e1445cc4de96682ced8866974ce..436e8e20d33d5eb60348c07bd4745199c9b86350 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,8 +1,7 @@
 <?php
 <?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();
 ?>
    exit();
 ?>