X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fright_main.php;h=f77c21aa1b1a4e0246e783d6af9d35fd3bf528bb;hp=f007b888704bee6adc9427e43485a651bd5ee38c;hb=8cc8ec794a4111845258794961df8cb093ab2b3f;hpb=8cc72ada75e8997f52dd775a453784d10a2e9bb8 diff --git a/src/right_main.php b/src/right_main.php index f007b888..f77c21aa 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -1,29 +1,33 @@ ' . $note .'', 'center' ) . "
\n"; } -if (isset($_SESSION['just_logged_in'])) { - $just_logged_in = $_SESSION['just_logged_in']; +if ( sqgetGlobalVar('just_logged_in', $just_logged_in, SQ_SESSION) ) { if ($just_logged_in == true) { $just_logged_in = false; + sqsession_register($just_logged_in, 'just_logged_in'); if (strlen(trim($motd)) > 0) { echo html_tag( 'table', html_tag( 'tr', - html_tag( 'td', + html_tag( 'td', html_tag( 'table', html_tag( 'tr', html_tag( 'td', $motd, 'center' ) @@ -194,10 +246,6 @@ if (isset($_SESSION['just_logged_in'])) { } } -if (isset($newsort)) { - $sort = $newsort; - sqsession_register($sort, 'sort'); -} /********************************************************************* * Check to see if we can use cache or not. Currently the only time * @@ -210,7 +258,10 @@ if (! isset($use_mailbox_cache)) { } if ($use_mailbox_cache && sqsession_is_registered('msgs')) { - showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color, $show_num, $use_mailbox_cache); + showMessagesForMailbox($imapConnection,$aLastSelectedMailbox); +// showMessagesForMailbox($imapConnection, $mailbox, $numMessages, +// $startMessage, $sort, $color, $show_num, +// $use_mailbox_cache, '',$aMbxResponse); } else { if (sqsession_is_registered('msgs')) { unset($msgs); @@ -224,28 +275,27 @@ if ($use_mailbox_cache && sqsession_is_registered('msgs')) { unset($numMessages); } - $numMessages = sqimap_get_num_messages ($imapConnection, $mailbox); + $numMessages = $aMbxResponse['EXISTS']; - showMessagesForMailbox($imapConnection, $mailbox, $numMessages, - $startMessage, $sort, $color, $show_num, - $use_mailbox_cache); + showMessagesForMailbox($imapConnection,$aLastSelectedMailbox); +// showMessagesForMailbox($imapConnection, $mailbox, $numMessages, +// $startMessage, $sort, $color, $show_num, +// $use_mailbox_cache,'',$aMbxResponse); if (sqsession_is_registered('msgs') && isset($msgs)) { sqsession_register($msgs, 'msgs'); - $_SESSION['msgs'] = $msgs; } if (sqsession_is_registered('msort') && isset($msort)) { sqsession_register($msort, 'msort'); - $_SESSION['msort'] = $msort; } sqsession_register($numMessages, 'numMessages'); - $_SESSION['numMessages'] = $numMessages; } do_hook('right_main_bottom'); sqimap_logout ($imapConnection); - echo ''; +sqsession_register($aLastSelectedMailbox,'aLastSelectedMailbox'); + ?>