X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fwebmail.php;h=1f1362da1bed1515a528215e0b4083d3bfb3034b;hb=8c3c46341eaa006f503344e05c74c87dd078aff2;hp=ee37c639bc3585edac470e70ec5f4f6c4a4b2370;hpb=c36ed9cfc1635cd9a8f80d9cdf8200628777903f;p=squirrelmail.git
diff --git a/src/webmail.php b/src/webmail.php
index ee37c639..1f1362da 100644
--- a/src/webmail.php
+++ b/src/webmail.php
@@ -1,106 +1,120 @@
\n" .
+ "$org_title";
- if (!session_is_registered("user_is_logged_in") || $logged_in != 1) {
- do_hook ("login_before");
- // verify that username and password are correct
- $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
- do_hook ("login_verified");
- }
+$left_size = getPref($data_dir, $username, 'left_size');
+$location_of_bar = getPref($data_dir, $username, 'location_of_bar');
- session_register ("user_is_logged_in");
- $user_is_logged_in = true;
+if (isset($languages[$squirrelmail_language]['DIR']) &&
+ strtolower($languages[$squirrelmail_language]['DIR']) == 'rtl') {
+ $temp_location_of_bar = 'right';
+} else {
+ $temp_location_of_bar = 'left';
+}
- include ("../src/load_prefs.php");
+if ($location_of_bar == '') {
+ $location_of_bar = $temp_location_of_bar;
+}
+$temp_location_of_bar = '';
- echo "\n";
- echo "";
- echo "$org_title";
- echo "";
- $ishelp = substr(getenv(REQUEST_URI),-8); // If calling help, set left frame to 300
- if ($ishelp == "help.php") {
- echo "