From: philippe_mingo Date: Wed, 12 Dec 2001 09:10:45 +0000 (+0000) Subject: Small html headers fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5a545dda36125e9f8978dd42315680cebb68e3f0;hp=9c737111a3bebfe76e78072e811addf83c8c1e76;p=squirrelmail.git Small html headers fix git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1852 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/redirect.php b/src/redirect.php index 4d0a02ea..516b0427 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -35,6 +35,7 @@ require_once('../functions/prefs.php'); require_once('../functions/imap.php'); require_once('../functions/plugin.php'); require_once('../functions/constants.php'); +require_once('../functions/page_header.php'); function attachment_common_parse($str, $debug) { global $attachment_common_types, $attachment_common_types_parsed; @@ -42,8 +43,7 @@ function attachment_common_parse($str, $debug) { $attachment_common_types_parsed[$str] = true; $types = explode(', ', $str); - foreach ($types as $val) - { + foreach ($types as $val) { // Ignore the ";q=1.0" stuff if (strpos($val, ';') !== false) $val = substr($val, 0, strpos($val, ';')); @@ -78,7 +78,8 @@ set_up_language($squirrelmail_language, true); setcookie('squirrelmail_language', $squirrelmail_language, time()+2592000,$base_uri); if (!isset($login_username)) { - echo "\n" . + displayHtmlHeader( _("You must be logged in to access this page.") ); + echo "\n" . "
 
\n" . "
\n" . '' . _("You must be logged in to access this page.") . "
" . @@ -102,7 +103,8 @@ if (!session_is_registered('user_is_logged_in')) { $imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0); if (!$imapConnection) { - echo "\n". + displayHtmlHeader( _("There was an error contacting the mail server.") ); + echo "\n". "

\n". "
\n". '' . _("There was an error contacting the mail server.") . "
\n".