Rearranging (2)
[squirrelmail.git] / index.php
index 45e3f8370d272e1445cc4de96682ced8866974ce..e01ff86cd3b677239f8ac980c5b1c85b9636f045 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,8 +1,19 @@
 <?php
-   $headers = getallheaders();
-   $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
-   $location = $headers["Host"] . $path;
 
-   header("Location: http://$location/src/login.php\n\n");
+   /**
+    **  index.php -- Displays the main frameset
+    **
+    **  Copyright (c) 1999-2000 The SquirrelMail development team
+    **  Licensed under the GNU GPL. For full terms see the file COPYING.
+    **
+    **  Redirects to the login page.
+    **
+    **  $Id$
+    **/
+
+   require_once('./functions/strings.php');
+
+   $location = get_location();
+   header("Location: $location/src/login.php\n\n");
    exit();
-?>
+?>
\ No newline at end of file