X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fwebmail.php;h=2cd7885d7f277190555829a290af96779e936f04;hb=44e227c2a2abc47dadd5833774d5777f5b42400b;hp=095493020d1b52f36a6ce148cdef0bfd269cfc06;hpb=71fd53839430c7fb5171a80cddb72e3f639555bc;p=squirrelmail.git diff --git a/src/webmail.php b/src/webmail.php index 09549302..2cd7885d 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -1,55 +1,65 @@ - - -\n"; echo ""; echo "$org_title"; echo ""; - echo ""; + $ishelp = substr(getenv(REQUEST_URI),-8); // If calling help, set left frame to 300 + + if (ishelp == 'help.php') + $bar_size = 300; + else + $bar_size = $left_size; + + if ($location_of_bar == 'right') + { + echo ""; + } else { + echo ""; + } /** There are three ways to call webmail.php 1. webmail.php - - this just loads the default entry screen. + - This just loads the default entry screen. 2. webmail.php?right_frame=right_main.php&sort=X&startMessage=X&mailbox=XXXX - This loads the frames starting at the given values. 3. webmail.php?right_frame=folders.php @@ -60,16 +70,27 @@ **/ if ($right_frame == "right_main.php") { $urlMailbox = urlencode($mailbox); - echo ""; - echo ""; + $right_frame_url = "right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage"; + } else if ($right_frame == "options.php") { + $right_frame_url = "options.php"; } else if ($right_frame == "folders.php") { - $urlMailbox = urlencode($mailbox); - echo ""; - echo ""; + $right_frame_url = "folders.php"; } else { - echo ""; - echo ""; + if (!isset($just_logged_in)) $just_logged_in = 0; + $right_frame_url = "right_main.php?just_logged_in=$just_logged_in"; + } + + if ($location_of_bar == 'right') + { + echo ""; + echo ""; } + else + { + echo ""; + echo ""; + } + ?>