added step for copying config_default.php to config.php
[squirrelmail.git] / functions / display_messages.php
CommitLineData
3302d0d4 1<?
2 /**
a09387f4 3 ** display_messages.php
3302d0d4 4 **
5 ** This contains all messages, including information, error, and just
6 ** about any other message you can think of.
7 **
8 **/
9
f8f9bed9 10 function error_username_password_incorrect($color) {
3302d0d4 11 echo "<BR>";
97be2168 12 echo "<TABLE COLS=1 WIDTH=75% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
3302d0d4 13 echo " <TR>";
f8f9bed9 14 echo " <TD BGCOLOR=\"$color[0]\">";
3302d0d4 15 echo " <FONT FACE=\"Arial,Helvetica\"><B><CENTER>ERROR</CENTER></B></FONT>";
16 echo " </TD></TR><TR><TD>";
a5b3c10c 17 echo " <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>". _("Unknown user or password incorrect.") ."<BR><A HREF=\"login.php\" TARGET=_top>". _("Click here to try again") ."</A>.</FONT></CENTER>";
3302d0d4 18 echo " </TD></TR>";
19 echo "</TABLE>";
20 echo "</BODY></HTML>";
21 }
22
f8f9bed9 23 function general_info($motd, $org_logo, $version, $org_name, $color) {
3302d0d4 24 echo "<BR>";
06913e08 25 echo "<TABLE COLS=1 WIDTH=80% CELLSPACING=0 CELLPADDING=2 NOBORDER ALIGN=CENTER><TR><TD BGCOLOR=\"$color[9]\">";
1adbc0b9 26 echo "<TABLE COLS=1 WIDTH=100% CELLSPACING=0 CELLPADDING=3 NOBORDER BGCOLOR=\"FFFFFF\" ALIGN=CENTER>";
3302d0d4 27 echo " <TR>";
f8f9bed9 28 echo " <TD BGCOLOR=\"$color[0]\">";
a5b3c10c 29 echo " <FONT FACE=\"Arial,Helvetica\"><B><CENTER>". _("Welcome to $org_name's WebMail system") ."</CENTER></B></FONT>";
2a0ada20 30 echo " <TR><TD BGCOLOR=\"FFFFFF\">";
31 echo " <TABLE COLS=2 WIDTH=90% CELLSPACING=0 CELLPADDING=3 NOBORDER align=\"center\">";
3302d0d4 32 echo " <TR>";
2a0ada20 33 echo " <TD BGCOLOR=\"FFFFFF\"><CENTER>";
3302d0d4 34 if (strlen($org_logo) > 3)
35 echo " <IMG SRC=\"$org_logo\">";
36 else
37 echo " <B><FONT FACE=\"Arial,Helvetica\">$org_name</FONT></B>";
a5b3c10c 38 echo " <BR><FONT FACE=\"Arial,Helvetica\" SIZE=-1><CENTER>". _("Running SquirrelMail version $version (c) 1999-2000.") ."</CENTER></FONT><BR>";
3302d0d4 39 echo " </CENTER></TD></TR><TR>";
2a0ada20 40 echo " <TD BGCOLOR=\"FFFFFF\">";
3302d0d4 41 echo " <FONT FACE=\"Arial,Helvetica\">$motd</FONT>";
42 echo " </TD>";
43 echo " </TR>";
44 echo " </TABLE>";
45 echo " </TD></TR>";
46 echo "</TABLE>";
1adbc0b9 47 echo "</TD></TR></TABLE>";
3302d0d4 48 }
aa4c3749 49
f8f9bed9 50 function messages_deleted_message($mailbox, $sort, $startMessage, $color) {
aa4c3749 51 $urlMailbox = urlencode($mailbox);
52 echo "<BR>";
f8f9bed9 53 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
aa4c3749 54 echo " <TR>";
f8f9bed9 55 echo " <TD BGCOLOR=\"$color[0]\">";
a5b3c10c 56 echo " <FONT FACE=\"Arial,Helvetica\"><B><CENTER>". _("Messages Deleted") ."</CENTER></B></FONT>";
aa4c3749 57 echo " </TD></TR><TR><TD>";
a5b3c10c 58 echo " <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>". _("The selected messages were deleted successfully.") ."<BR>\n";
de80e95e 59 echo " <BR>";
907165ca 60 echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
a5b3c10c 61 echo " ". _("Click here to return to ") ."$mailbox</A>.";
de80e95e 62 echo " </FONT></CENTER>";
63 echo " </TD></TR>";
64 echo "</TABLE>";
65 }
66
f8f9bed9 67 function messages_moved_message($mailbox, $sort, $startMessage, $color) {
de80e95e 68 $urlMailbox = urlencode($mailbox);
69 echo "<BR>";
f8f9bed9 70 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
de80e95e 71 echo " <TR>";
f8f9bed9 72 echo " <TD BGCOLOR=\"$color[0]\">";
a5b3c10c 73 echo " <FONT FACE=\"Arial,Helvetica\"><B><CENTER>". _("Messages Moved") ."</CENTER></B></FONT>";
de80e95e 74 echo " </TD></TR><TR><TD>";
a5b3c10c 75 echo " <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>". _("The selected messages were moved successfully.") ."<BR>\n";
de80e95e 76 echo " <BR>";
77 echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
a5b3c10c 78 echo " ". _("Click here to return to ") ."$mailbox</A>.";
de80e95e 79 echo " </FONT></CENTER>";
80 echo " </TD></TR>";
81 echo "</TABLE>";
82 }
83
f8f9bed9 84 function error_message($message, $mailbox, $sort, $startMessage, $color) {
de80e95e 85 $urlMailbox = urlencode($mailbox);
86 echo "<BR>";
f8f9bed9 87 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
de80e95e 88 echo " <TR>";
f8f9bed9 89 echo " <TD BGCOLOR=\"$color[0]\">";
a5b3c10c 90 echo " <FONT FACE=\"Arial,Helvetica\" COLOR=\"$color[2]\"><B><CENTER>". _("ERROR") ."</CENTER></B></FONT>";
de80e95e 91 echo " </TD></TR><TR><TD>";
92 echo " <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>$message<BR>\n";
93 echo " <BR>";
94 echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
a5b3c10c 95 echo " ". _("Click here to return to ") ."$mailbox</A>.";
aa4c3749 96 echo " </FONT></CENTER>";
97 echo " </TD></TR>";
98 echo "</TABLE>";
aa4c3749 99 }
a0c694f0 100
f8f9bed9 101 function plain_error_message($message, $color) {
a0c694f0 102 echo "<BR>";
f8f9bed9 103 echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
a0c694f0 104 echo " <TR>";
f8f9bed9 105 echo " <TD BGCOLOR=\"$color[0]\">";
32c7898c 106 echo " <FONT FACE=\"Arial,Helvetica\" COLOR=\"$color[2]\"><B><CENTER>" . _("ERROR") . "</CENTER></B></FONT>";
a0c694f0 107 echo " </TD></TR><TR><TD>";
108 echo " <CENTER><FONT FACE=\"Arial,Helvetica\"><BR>$message";
109 echo " </FONT></CENTER>";
110 echo " </TD></TR>";
111 echo "</TABLE>";
112 }
a09387f4 113?>