X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fwebmail.php;h=42e2b83dc875749767a73f9110e413dafd5d4f82;hp=095493020d1b52f36a6ce148cdef0bfd269cfc06;hb=fd181f534c2c598516e6f5f50fa7acb636225244;hpb=71fd53839430c7fb5171a80cddb72e3f639555bc
diff --git a/src/webmail.php b/src/webmail.php
index 09549302..42e2b83d 100644
--- a/src/webmail.php
+++ b/src/webmail.php
@@ -1,75 +1,161 @@
-
- /**
- ** webmail.php
- **
- ** This simply creates the frames.
- **
- **/
-
- session_start();
-
- 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, "/");
-
- $logged_in = 1;
- session_register("username");
- session_register("key");
- session_register("logged_in");
-
- $PHPSESSID = session_id();
-
- // Refresh the language cookie.
- if (isset($squirrelmail_language)) {
- session_register("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 "