X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fwebmail.php;h=94465100f157dab7a45e883e866e47a60303d8c5;hp=42e2b83dc875749767a73f9110e413dafd5d4f82;hb=712a518f5a94d77054bca499038699990fd4a5a2;hpb=82d304a0501324b276cabab1870755d5352bd21c
diff --git a/src/webmail.php b/src/webmail.php
index 42e2b83d..94465100 100644
--- a/src/webmail.php
+++ b/src/webmail.php
@@ -1,102 +1,47 @@
\n".
- "
\n" .
- "$org_title\n".
- "";
-
-// Japanese translation used without mbstring support
-if ($err==2) {
- echo "\n".
- "You need to have php4 installed with the multibyte string function \n".
- "enabled (using configure option --enable-mbstring).
\n".
- "System assumed that you accidently switched to Japanese translation \n".
- "and reverted your language preference to English.
\n".
- "Please refresh this page in order to use webmail.
\n".
- "";
- return;
+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';
-}
-
-if ($location_of_bar == '') {
- $location_of_bar = $temp_location_of_bar;
+ $mailtourl = '';
}
-$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;
@@ -106,13 +51,25 @@ if ($left_size == "") {
}
}
-if ($location_of_bar == 'right') {
- echo "