X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fwebmail.php;h=2ff4115f6f34e58e4fbd277ebb5e792ba7ffe24d;hb=ef1696ec64e298e7d3fe4d36d9b1fb7843347f42;hp=50d8c6119711092bd29613b36fc5ff2f0fab0268;hpb=19acd99fabdc29d6e87eebb355f5f8c6b0fac4da;p=squirrelmail.git
diff --git a/src/webmail.php b/src/webmail.php
index 50d8c611..2ff4115f 100644
--- a/src/webmail.php
+++ b/src/webmail.php
@@ -1,64 +1,142 @@
-
- /**
- ** webmail.php
- **
- ** This simply creates the frames.
- **
- **/
-
- if(!isset($username)) {
- echo _("You need a valid user and password to access this page!");
- exit;
- }
-
- setcookie("username", $username, 0, "/");
- setcookie("key", $key, 0, "/");
- setcookie("logged_in", 1, 0, "/");
- // Refresh the language cookie.
- if (isset($squirrelmail_language))
- setcookie("squirrelmail_language", $squirrelmail_language,
- time()+2592000);
-?>
-
-
- include ("../config/config.php");
- include ("../functions/prefs.php");
- include ("../functions/imap.php");
-
- // verify that username and password are correct
- $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
-
- include ("../src/load_prefs.php");
-
- echo "";
- echo "$org_title";
- echo "";
- echo "