X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fwebmail.php;h=2bc1caaf507013641b43b9822b5131d2ff54cafa;hb=bb60fa3f2f31a608aeaeb17b01d53e35ba20686c;hp=380e0cf5c39dff8155547e10b3192bf12735eed3;hpb=a09387f473293a14a597f6ee0afc9714700fb040;p=squirrelmail.git diff --git a/src/webmail.php b/src/webmail.php index 380e0cf5..2bc1caaf 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -1,26 +1,103 @@ -\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 ""; + } else { + echo ""; + } + +/** + There are four ways to call webmail.php + 1. webmail.php + - 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 + - Loads the frames with the Folder options in the right frame. + 4. webmail.php?right_frame=help.php + - Lets the left frame set up different menu for help and calls the right frame. + + This was done to create a pure HTML way of refreshing the folder list since + we would like to use as little Javascript as possible. +**/ + if ($right_frame == "right_main.php") { + $urlMailbox = urlencode($mailbox); + echo ""; + echo ""; + } else if ($right_frame == "folders.php") { + $urlMailbox = urlencode($mailbox); + echo ""; + echo ""; + } else if ($right_frame == "help.php") { + echo ""; + echo ""; + } else { + echo ""; + echo ""; + } + ?> - - -OM-USA WebMail - - - -