From 76b684a5e8035dd5781262fab912c18ef2998ec9 Mon Sep 17 00:00:00 2001 From: brong Date: Thu, 28 Mar 2002 12:40:19 +0000 Subject: [PATCH] Little bit of tidying up git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2641 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/display_messages.php | 14 ++++++++------ src/left_main.php | 2 +- src/right_main.php | 15 ++++++--------- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/functions/display_messages.php b/functions/display_messages.php index ec88fb69..2fe6bd4a 100644 --- a/functions/display_messages.php +++ b/functions/display_messages.php @@ -14,13 +14,15 @@ function error_username_password_incorrect() { global $frame_top, $color; + /* XXX: Should really not start the HTML before this, or close off more + cleanly. */ if (!isset($frame_top)) { $frame_top = '_top'; } echo '
'. - ''. + '
'. ''. ''. '' . @@ -37,15 +39,15 @@ function error_username_password_incorrect() { function general_info($motd, $org_logo, $version, $org_name, $color) { echo '
'. - "
' . _("ERROR") . '
". - ''. + "
". + ''. '' . "
" . '
'; printf (_("Welcome to %s's WebMail system"), $org_name); echo '
'. '
'. - ''. + '
'. ''. '
'; if ( strlen($org_logo) > 3 ) { @@ -71,7 +73,7 @@ function error_message($message, $mailbox, $sort, $startMessage, $color) { $urlMailbox = urlencode($mailbox); echo '
'. - "". + "
". ''. "
". "
" . _("ERROR") . '
'. @@ -87,7 +89,7 @@ function error_message($message, $mailbox, $sort, $startMessage, $color) { function plain_error_message($message, $color) { echo '
'. - "". + "
". ''. "
". "
" . _("ERROR") . '
'. diff --git a/src/left_main.php b/src/left_main.php index 6090b935..f1a58680 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -341,8 +341,8 @@ for ($i = 0; $i < count($boxes); $i++) { } } -sqimap_logout($imapConnection); do_hook('left_main_after'); +sqimap_logout($imapConnection); echo "\n"; diff --git a/src/right_main.php b/src/right_main.php index 37be5905..0fd724bf 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -45,6 +45,8 @@ if( isset( $PG_SHOWNUM ) ) { if (isset($newsort) && $newsort != $sort) { setPref($data_dir, $username, 'sort', $newsort); + $sort = $newsort; + session_register('sort'); } /* If the page has been loaded without a specific mailbox, */ @@ -63,11 +65,11 @@ if ($imap_server_type == 'uw' && (strstr($mailbox, '../') || substr($mailbox, 0, 1) == '/')) { $mailbox = 'INBOX'; } - global $color; +global $color; - if( isset($do_hook) && $do_hook ) { - do_hook ("generic_header"); - } +if( isset($do_hook) && $do_hook ) { + do_hook ("generic_header"); +} sqimap_mailbox_select($imapConnection, $mailbox); @@ -109,11 +111,6 @@ if ($just_logged_in == true) { } } -if (isset($newsort)) { - $sort = $newsort; - session_register('sort'); -} - /********************************************************************* * Check to see if we can use cache or not. Currently the only time * * when you will not use it is when a link on the left hand frame is * -- 2.25.1