X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fwebmail.php;h=d17cd636daac87969def839fb7c805758db8b46f;hb=4445e6b3214d838e98104c5906f7fe27fa6048ea;hp=41cf17c25ab07d53b35da0957b42c659b5464c01;hpb=e146912692c921160f93dcb6da97dc6246bf95d2;p=squirrelmail.git
diff --git a/src/webmail.php b/src/webmail.php
index 41cf17c2..d17cd636 100644
--- a/src/webmail.php
+++ b/src/webmail.php
@@ -1,64 +1,169 @@
-
- /**
- ** 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 "