X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fwebmail.php;h=a9b1cdb4e0bd60a765aca32ac5765be9a9d40d5a;hb=9669833431103d4467075c4fbe59ba26238a657d;hp=255d45cff4a6b9900e85a7c2d7edb5b623737a35;hpb=ff767bedddfd7a45660745769c50aeb4f624bf0a;p=squirrelmail.git
diff --git a/src/webmail.php b/src/webmail.php
index 255d45cf..a9b1cdb4 100644
--- a/src/webmail.php
+++ b/src/webmail.php
@@ -1,88 +1,47 @@
'.
- "
\n" .
- "$org_title";
+if (!sqgetGlobalVar('mailbox', $mailbox)) {
+ $mailbox = 'INBOX';
+}
-$left_size = getPref($data_dir, $username, 'left_size');
-$location_of_bar = getPref($data_dir, $username, 'location_of_bar');
+sqgetGlobalVar('right_frame', $right_frame, SQ_GET);
-if (isset($languages[$squirrelmail_language]['DIR']) &&
- strtolower($languages[$squirrelmail_language]['DIR']) == 'rtl') {
- $temp_location_of_bar = 'right';
+if (sqgetGlobalVar('mailtodata', $mailtodata)) {
+ $mailtourl = 'mailtodata='.urlencode($mailtodata);
} else {
- $temp_location_of_bar = 'left';
+ $mailtourl = '';
}
-if ($location_of_bar == '') {
- $location_of_bar = $temp_location_of_bar;
-}
-$temp_location_of_bar = '';
-
+// Determine the size of the left frame
+$left_size = getPref($data_dir, $username, 'left_size');
if ($left_size == "") {
if (isset($default_left_size)) {
$left_size = $default_left_size;
@@ -92,13 +51,25 @@ if ($left_size == "") {
}
}
-if ($location_of_bar == 'right') {
- echo "