X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fwebmail.php;h=a2bc1c2e670d2454e360ec9c7ab06614331ad0ba;hp=dcfaec86dfa90f81a34b9c8d219564ea6bae5a61;hb=1411972c35809b94d9a499545e82e8a0b7a749b6;hpb=d76f6440e2754a3726669f2abf3d6609a1799905 diff --git a/src/webmail.php b/src/webmail.php index dcfaec86..a2bc1c2e 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -1,103 +1,122 @@ setDelayedErrors(true); - include ("../src/load_prefs.php"); +$oTemplate->assign('nav_size', $left_size); +$oTemplate->assign('nav_on_left', $location_of_bar=='left'); +$oTemplate->assign('right_frame_url', $right_frame_url); - echo "\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 ""; - } +do_hook('webmail_top', $null); -/** - There are three 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. +displayHtmlHeader($org_title, '', false, true); - 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 == "options.php") { - echo ""; - echo ""; - } else if ($right_frame == "folders.php") { - $urlMailbox = urlencode($mailbox); - echo ""; - echo ""; - } else { - echo ""; - if (!isset($just_logged_in)) $just_logged_in = 0; - echo ""; - } +$oTemplate->display('webmail.tpl'); -?> - - +$oTemplate->display('footer.tpl');