X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fwebmail.php;h=2ff4115f6f34e58e4fbd277ebb5e792ba7ffe24d;hp=41cf17c25ab07d53b35da0957b42c659b5464c01;hb=ef1696ec64e298e7d3fe4d36d9b1fb7843347f42;hpb=e146912692c921160f93dcb6da97dc6246bf95d2
diff --git a/src/webmail.php b/src/webmail.php
index 41cf17c2..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, $imapPort, 0);
-
- include ("../src/load_prefs.php");
-
- echo "";
- echo "$org_title";
- echo "";
- echo "