Croatian Credits
[squirrelmail.git] / index.php
index 45e3f8370d272e1445cc4de96682ced8866974ce..1ece875f6c09d8f297a47d91b1f6ce7898ede7cf 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,8 +1,20 @@
 <?php
-   $headers = getallheaders();
-   $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
-   $location = $headers["Host"] . $path;
 
-   header("Location: http://$location/src/login.php\n\n");
-   exit();
+/**
+ * index.php -- Displays the main frameset
+ *
+ * Copyright (c) 1999-2001 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();
+
 ?>