X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fwebmail.php;h=cdd66223fd5247f0a91258a673b4bea1ecfdb6b4;hp=2831999e267d1267d933b038016c192482bd8f51;hb=ef3e6c1f1e141e58944ef9abf9e242351806b2a3;hpb=a37f3771b11544a29ebd521a69599381c90e7df2 diff --git a/src/webmail.php b/src/webmail.php index 2831999e..cdd66223 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -1,103 +1,121 @@ 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'); -?> - -