Work around the fact that /src/style.php depends on a logged in user, thus breaking...
[squirrelmail.git] / functions / htmlentities / index.php
index 4be5a592d8433b8b7fe0cd4a4f29e82216d85687..29d66d8b3b1aa83a4eb22ca12131222e0d442ef9 100644 (file)
@@ -1,13 +1,19 @@
 <?php
+
 /**
- * Redirects to the login page.
+ * index.php
  *
- * @copyright (c) 1999-2005 The SquirrelMail Project Team
+ * This file simply takes any attempt to view source files and sends those
+ * people to the login screen. At this point no attempt is made to see if the
+ * person is logged in or not.
+ *
+ * @copyright &copy; 1999-2006 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage strings
  */
-header("Location:../../src/login.php\n\n");
-exit();
+
+header('Location: ../index.php');
+
 ?>
\ No newline at end of file