X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fright_main.php;h=d706044314632ada5592f2c9a13fce4e757043f5;hb=11307a4c707a22ef7dc2530b0e33c2afa5329e58;hp=1def94edfdb5ffb4280ea0ed82db1001b205d77a;hpb=d92b6f319c3ca67ff701db9da869b42c298ef9a4;p=squirrelmail.git diff --git a/src/right_main.php b/src/right_main.php index 1def94ed..d7060443 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -29,8 +29,6 @@ include("../functions/mailbox_display.php"); include("../functions/display_messages.php"); - echo "\n"; - echo ""; ///////////////////////////////////////////////////////////////////////////////// // // incoming variables from URL: @@ -49,6 +47,11 @@ // open a connection on the imap port (143) $imapConnection = loginToImapServer($username, $key, $imapServerAddress); + /** If it was a successful login, lets load their preferences **/ + include("../src/load_prefs.php"); + echo "\n"; + echo ""; + // If the page has been loaded without a specific mailbox, // just show a page of general info. if (!isset($mailbox)) { @@ -65,7 +68,7 @@ displayPageHeader($color, $mailbox); // Get the list of messages for this mailbox - showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort); + showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color); // close the connection fputs($imapConnection, "1 logout\n");