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 '<BR>'.
- '<TABLE COLS=1 WIDTH="75%" NOBORDER BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
+ '<TABLE COLS=1 WIDTH="75%" BORDER="0" BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
'<TR BGCOLOR="' . $color[0] . '">'.
'<TH>' . _("ERROR") . '</TH>'.
'</TR>' .
function general_info($motd, $org_logo, $version, $org_name, $color) {
echo '<BR>'.
- "<TABLE COLS=1 WIDTH=\"80%\" CELLSPACING=0 CELLPADDING=2 NOBORDER ALIGN=CENTER><TR><TD BGCOLOR=\"$color[9]\">".
- '<TABLE COLS=1 WIDTH="100%" CELLSPACING=0 CELLPADDING=3 NOBORDER BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
+ "<TABLE COLS=1 WIDTH=\"80%\" CELLSPACING=0 CELLPADDING=2 BORDER=\"0\" ALIGN=CENTER><TR><TD BGCOLOR=\"$color[9]\">".
+ '<TABLE COLS=1 WIDTH="100%" CELLSPACING=0 CELLPADDING=3 BORDER="0" BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
'<TR>' .
"<TD BGCOLOR=\"$color[0]\">" .
'<B><CENTER>';
printf (_("Welcome to %s's WebMail system"), $org_name);
echo '</CENTER></B>'.
'<TR><TD BGCOLOR="' . $color[4] . '">'.
- '<TABLE COLS=2 WIDTH="90%" CELLSPACING=0 CELLPADDING=3 NOBORDER align="center">'.
+ '<TABLE COLS=2 WIDTH="90%" CELLSPACING=0 CELLPADDING=3 BORDER="0" align="center">'.
'<TR>'.
'<TD BGCOLOR="' . $color[4] . '"><CENTER>';
if ( strlen($org_logo) > 3 ) {
$urlMailbox = urlencode($mailbox);
echo '<BR>'.
- "<TABLE COLS=1 WIDTH=\"70%\" NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
+ "<TABLE COLS=1 WIDTH=\"70%\" BORDER=\"0\" BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
'<TR>'.
"<TD BGCOLOR=\"$color[0]\">".
"<FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . '</CENTER></B></FONT>'.
function plain_error_message($message, $color) {
echo '<BR>'.
- "<TABLE COLS=1 WIDTH=\"70%\" NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
+ "<TABLE COLS=1 WIDTH=\"70%\" BORDER=\"0\" BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
'<TR>'.
"<TD BGCOLOR=\"$color[0]\">".
"<FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . '</CENTER></B></FONT>'.
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, */
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);
}
}
-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 *