2fe6bd4a6a14dd4d0358fea35cc08acc7a498cda
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;
17 /* XXX: Should really not start the HTML before this, or close off more
20 if (!isset($frame_top)) {
25 '<TABLE COLS=1 WIDTH="75%" BORDER="0" BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
26 '<TR BGCOLOR="' . $color[0] . '">'.
27 '<TH>' . _("ERROR") . '</TH>'.
30 '<CENTER><BR>' . _("Unknown user or password incorrect.") .
31 '<BR><A HREF="login.php" TARGET='.$frame_top.'>' .
32 _("Click here to try again") .
39 function general_info($motd, $org_logo, $version, $org_name, $color) {
42 "<TABLE COLS=1 WIDTH=\"80%\" CELLSPACING=0 CELLPADDING=2 BORDER=\"0\" ALIGN=CENTER><TR><TD BGCOLOR=\"$color[9]\">".
43 '<TABLE COLS=1 WIDTH="100%" CELLSPACING=0 CELLPADDING=3 BORDER="0" BGCOLOR="' . $color[4] . '" ALIGN=CENTER>'.
45 "<TD BGCOLOR=\"$color[0]\">" .
47 printf (_("Welcome to %s's WebMail system"), $org_name);
49 '<TR><TD BGCOLOR="' . $color[4] . '">'.
50 '<TABLE COLS=2 WIDTH="90%" CELLSPACING=0 CELLPADDING=3 BORDER="0" align="center">'.
52 '<TD BGCOLOR="' . $color[4] . '"><CENTER>';
53 if ( strlen($org_logo) > 3 ) {
54 echo "<IMG SRC=\"$org_logo\">";
56 echo "<B>$org_name</B>";
59 printf (_("Running SquirrelMail version %s (c) 1999-2001."), $version);
61 '</CENTER></TD></TR><TR>' .
62 '<TD BGCOLOR="' . $color[4] . '">' .
72 function error_message($message, $mailbox, $sort, $startMessage, $color) {
73 $urlMailbox = urlencode($mailbox);
76 "<TABLE COLS=1 WIDTH=\"70%\" BORDER=\"0\" BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
78 "<TD BGCOLOR=\"$color[0]\">".
79 "<FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . '</CENTER></B></FONT>'.
81 "<CENTER><BR>$message<BR>\n".
83 "<A HREF=\"right_main.php?sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\">";
84 printf (_("Click here to return to %s"), $mailbox);
90 function plain_error_message($message, $color) {
92 "<TABLE COLS=1 WIDTH=\"70%\" BORDER=\"0\" BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
94 "<TD BGCOLOR=\"$color[0]\">".
95 "<FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . '</CENTER></B></FONT>'.
97 "<CENTER><BR>$message".