X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fright_main.php;h=f4173981cce97f9cc66c64231720467dc3bb7cc9;hb=5e9a440becde2c0c0983821622779e309276ee30;hp=ca0a4fbe41ad9b73566dd66fd3776e09e70e4cc3;hpb=9b761dbdd92259ef09affe9b8f8b62362d0d7bb2;p=squirrelmail.git diff --git a/src/right_main.php b/src/right_main.php index ca0a4fbe..f4173981 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -1,28 +1,30 @@ ' . $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' ) @@ -193,10 +188,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 * @@ -225,22 +216,22 @@ if ($use_mailbox_cache && sqsession_is_registered('msgs')) { $numMessages = sqimap_get_num_messages ($imapConnection, $mailbox); - showMessagesForMailbox($imapConnection, $mailbox, $numMessages, + showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color, $show_num, $use_mailbox_cache); if (sqsession_is_registered('msgs') && isset($msgs)) { sqsession_register($msgs, 'msgs'); - $_SESSION['msgs'] = $msgs; + //$_SESSION['msgs'] = $msgs; } if (sqsession_is_registered('msort') && isset($msort)) { sqsession_register($msort, 'msort'); - $_SESSION['msort'] = $msort; + //$_SESSION['msort'] = $msort; } sqsession_register($numMessages, 'numMessages'); - $_SESSION['numMessages'] = $numMessages; + //$_SESSION['numMessages'] = $numMessages; } do_hook('right_main_bottom'); sqimap_logout ($imapConnection);