X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fwebmail.php;h=c02846cb87666a2a16a983ebe99caddbd5bfd9fe;hb=95dcee50e4d7ffe1d0b686377042ff3b735bc81c;hp=9a6fff73c720c61ca4854862e7855ce44577ffb4;hpb=165829a378d4e41c1a47b46be08fdbd20315077f;p=squirrelmail.git diff --git a/src/webmail.php b/src/webmail.php index 9a6fff73..c02846cb 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -1,33 +1,56 @@ \n"; -echo ''; -echo $org_title; -echo ''; - +echo ''. + "\n" . + "$org_title"; + $left_size = getPref($data_dir, $username, 'left_size'); $location_of_bar = getPref($data_dir, $username, 'location_of_bar'); + +if (isset($languages[$squirrelmail_language]['DIR']) && + strtolower($languages[$squirrelmail_language]['DIR']) == 'rtl') { + $temp_location_of_bar = 'right'; +} else { + $temp_location_of_bar = 'left'; +} + if ($location_of_bar == '') { - $location_of_bar = 'left'; + $location_of_bar = $temp_location_of_bar; } +$temp_location_of_bar = ''; + if ($left_size == "") { if (isset($default_left_size)) { $left_size = $default_left_size; @@ -58,13 +90,13 @@ if ($left_size == "") { else { $left_size = 200; } -} - +} + if ($location_of_bar == 'right') { - echo ""; + echo ""; } else { - echo ""; + echo ""; } /* @@ -80,36 +112,31 @@ else { * we would like to use as little Javascript as possible. */ if (!isset($right_frame)) { - $right_frame = ""; -} - + $right_frame = ''; +} if ($right_frame == 'right_main.php') { $urlMailbox = urlencode($mailbox); $right_frame_url = - "right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage"; -} -elseif ($right_frame == 'options.php') { + "right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage"; +} elseif ($right_frame == 'options.php') { $right_frame_url = 'options.php'; -} -elseif ($right_frame == 'folders.php') { +} elseif ($right_frame == 'folders.php') { $right_frame_url = 'folders.php'; -} -elseif ($right_frame == 'compose.php') { - $right_frame_url = "compose.php?send_to=$rcptaddress"; -} -else { +} else if ($right_frame == '') { $right_frame_url = 'right_main.php'; +} else { + $right_frame_url = urldecode($right_frame); } if ($location_of_bar == 'right') { - echo ""; - echo ''; + echo "" . + ''; } else { - echo ''; - echo ""; + echo ''. + ""; } - +do_hook('webmail_bottom'); ?>