6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * This contains all messages, including information, error, and just
10 * about any other message you can think of.
15 function error_username_password_incorrect() {
16 global $frame_top, $color;
18 if (!isset($frame_top)) {
23 '<TABLE COLS=1 WIDTH="75%" NOBORDER BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
24 '<TR BGCOLOR="' . $color[0] . '">'.
25 '<TH>' . _("ERROR") . '</TH>'.
28 '<CENTER><BR>' . _("Unknown user or password incorrect.") .
29 '<BR><A HREF="login.php" TARGET='.$frame_top.'>' .
30 _("Click here to try again") .
37 function general_info($motd, $org_logo, $version, $org_name, $color) {
40 "<TABLE COLS=1 WIDTH=\"80%\" CELLSPACING=0 CELLPADDING=2 NOBORDER ALIGN=CENTER><TR><TD BGCOLOR=\"$color[9]\">".
41 '<TABLE COLS=1 WIDTH="100%" CELLSPACING=0 CELLPADDING=3 NOBORDER BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
43 "<TD BGCOLOR=\"$color[0]\">" .
45 printf (_("Welcome to %s's WebMail system"), $org_name);
47 '<TR><TD BGCOLOR="' . $color[4] . '">'.
48 '<TABLE COLS=2 WIDTH="90%" CELLSPACING=0 CELLPADDING=3 NOBORDER align="center">'.
50 '<TD BGCOLOR="' . $color[4] . '"><CENTER>';
51 if ( strlen($org_logo) > 3 ) {
52 echo "<IMG SRC=\"$org_logo\">";
54 echo "<B>$org_name</B>";
57 printf (_("Running SquirrelMail version %s (c) 1999-2001."), $version);
59 '</CENTER></TD></TR><TR>' .
60 '<TD BGCOLOR="' . $color[4] . '">' .
70 function error_message($message, $mailbox, $sort, $startMessage, $color) {
71 $urlMailbox = urlencode($mailbox);
74 "<TABLE COLS=1 WIDTH=\"70%\" NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
76 "<TD BGCOLOR=\"$color[0]\">".
77 "<FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . '</CENTER></B></FONT>'.
79 "<CENTER><BR>$message<BR>\n".
81 "<A HREF=\"right_main.php?sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\">";
82 printf (_("Click here to return to %s"), $mailbox);
88 function plain_error_message($message, $color) {
90 "<TABLE COLS=1 WIDTH=\"70%\" NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
92 "<TD BGCOLOR=\"$color[0]\">".
93 "<FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . '</CENTER></B></FONT>'.
95 "<CENTER><BR>$message".