Changed default value for SpamFilters_YourHop
[squirrelmail.git] / functions / display_messages.php
CommitLineData
59177427 1<?php
2ba13803 2
3302d0d4 3 /**
7350889b 4 * display_messages.php
5 *
6 * Copyright (c) 1999-2001 The Squirrelmail Development Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * This contains all messages, including information, error, and just
10 * about any other message you can think of.
11 *
12 * $Id$
13 */
3302d0d4 14
f8f9bed9 15 function error_username_password_incorrect($color) {
2ba13803 16
17 echo '<BR>'.
18 "<TABLE COLS=1 WIDTH=75% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>".
19 '<TR>'.
20 "<TD BGCOLOR=\"$color[0]\">".
21 '<B><CENTER>ERROR</CENTER></B>'.
22 '</TD></TR><TR><TD>'.
23 '<CENTER><BR>' . _("Unknown user or password incorrect.") .
24 '<BR><A HREF="login.php" TARGET=_top>' .
25 _("Click here to try again") .
26 '</A>.</CENTER>'.
27 '</TD></TR>'.
28 '</TABLE>'.
29 '</BODY></HTML>';
30
3302d0d4 31 }
32
f8f9bed9 33 function general_info($motd, $org_logo, $version, $org_name, $color) {
066c374f 34 echo '<BR>';
06913e08 35 echo "<TABLE COLS=1 WIDTH=80% CELLSPACING=0 CELLPADDING=2 NOBORDER ALIGN=CENTER><TR><TD BGCOLOR=\"$color[9]\">";
066c374f 36 echo '<TABLE COLS=1 WIDTH=100% CELLSPACING=0 CELLPADDING=3 NOBORDER BGCOLOR="#FFFFFF" ALIGN=CENTER>';
37 echo ' <TR>';
f8f9bed9 38 echo " <TD BGCOLOR=\"$color[0]\">";
066c374f 39 echo ' <B><CENTER>';
1943425e 40 printf (_("Welcome to %s's WebMail system"), $org_name);
066c374f 41 echo ' </CENTER></B>';
42 echo ' <TR><TD BGCOLOR="#FFFFFF">';
43 echo ' <TABLE COLS=2 WIDTH=90% CELLSPACING=0 CELLPADDING=3 NOBORDER align="center">';
44 echo ' <TR>';
45 echo ' <TD BGCOLOR="#FFFFFF"><CENTER>';
3302d0d4 46 if (strlen($org_logo) > 3)
47 echo " <IMG SRC=\"$org_logo\">";
48 else
aae41ae9 49 echo " <B>$org_name</B>";
066c374f 50 echo ' <BR><CENTER>';
1943425e 51 printf (_("Running SquirrelMail version %s (c) 1999-2000."), $version);
066c374f 52 echo ' </CENTER><BR>';
53 echo ' </CENTER></TD></TR><TR>';
54 echo ' <TD BGCOLOR="#FFFFFF">';
aae41ae9 55 echo " $motd";
066c374f 56 echo ' </TD>';
57 echo ' </TR>';
58 echo ' </TABLE>';
59 echo ' </TD></TR>';
60 echo '</TABLE>';
61 echo '</TD></TR></TABLE>';
3302d0d4 62 }
aa4c3749 63
f8f9bed9 64 function error_message($message, $mailbox, $sort, $startMessage, $color) {
de80e95e 65 $urlMailbox = urlencode($mailbox);
2a32fc83 66
066c374f 67 echo '<BR>';
f8f9bed9 68 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
066c374f 69 echo ' <TR>';
f8f9bed9 70 echo " <TD BGCOLOR=\"$color[0]\">";
066c374f 71 echo " <FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . '</CENTER></B></FONT>';
72 echo ' </TD></TR><TR><TD>';
aae41ae9 73 echo " <CENTER><BR>$message<BR>\n";
066c374f 74 echo ' <BR>';
1195c340 75 echo " <A HREF=\"right_main.php?sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\">";
1943425e 76 printf (_("Click here to return to %s"), $mailbox);
066c374f 77 echo '</A>.';
78 echo ' </TD></TR>';
79 echo '</TABLE>';
aa4c3749 80 }
a0c694f0 81
f8f9bed9 82 function plain_error_message($message, $color) {
066c374f 83 echo '<BR>';
f8f9bed9 84 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
066c374f 85 echo ' <TR>';
f8f9bed9 86 echo " <TD BGCOLOR=\"$color[0]\">";
066c374f 87 echo " <FONT COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . '</CENTER></B></FONT>';
88 echo ' </TD></TR><TR><TD>';
aae41ae9 89 echo " <CENTER><BR>$message";
066c374f 90 echo ' </CENTER>';
91 echo ' </TD></TR>';
92 echo '</TABLE>';
a0c694f0 93 }
d46b103b 94?>