if ($command == 1) { command61(); }
elsif ($command == 2) { command62(); }
} elsif ($menu == 7) {
- if ($command == 1) { $motd = command71(); }
+ if ($command == 1) { $motd = command71(); }
} elsif ($menu == 8) {
- if ($command == 1) { $motd = command81(); }
+ if ($command == 1) { $plugins = command81(); }
}
}
}
sub command71 {
print "\nYou can now create the welcome message that is displayed\n";
print "every time a user logs on. You can use HTML or just plain\n";
- print "text.\n\n(Type @ on a blank line to exit)\n";
+ print "text. If you do not wish to have one, just make it blank.\n\n(Type @ on a blank line to exit)\n";
$new_motd = "";
do {
// $sendmail_path = "/usr/sbin/sendmail";
// This is displayed right after they log in
- $motd = "You are using SquirrelMail's web-based email client. If you run into any bugs or have suggestions, please report them to our <A HREF=\"mailto:squirrelmail-list@sourceforge.net\">mailing list</A>";
+ $motd = "";
// Whether or not to use a special color for special folders. If not, special
// folders will be the same color as the other folders
} else {
$endMessage = $numMessages;
}
-
if ($endMessage < $startMessage) {
$startMessage = $startMessage - $show_num;
if ($numMessages == 0) { // if there's no messages in this folder
echo "<TR><TD BGCOLOR=\"$color[4]\" COLSPAN=5><CENTER><BR><B>". _("THIS FOLDER IS EMPTY") ."</B><BR> </CENTER></TD></TR>";
} else if ($startMessage == $endMessage) { // if there's only one message in the box, handle it different.
- $i = $startMessage - 1;
+ $i = $startMessage;
reset($msort);
do {
$key = key($msort);
$line = $body_ary[$i];
$line = charset_decode($charset, $line);
+ if (strlen($line) - 2 >= $wrap_at) {
+ $line = wordWrap($line, $wrap_at);
+ }
+
$line = str_replace(" ", " ", $line);
$line = str_replace("\t", " ", $line);
$line = nl2br($line);
echo " </TD>\n";
echo " </TR>\n";
echo "</TABLE>\n";
+ echo "<input type=hidden name=just_logged_in value=1>\n";
echo "</FORM>\n";
?>
</BODY>
sqimap_mailbox_select($imapConnection, $mailbox);
displayPageHeader($color, $mailbox);
+ if ($just_logged_in == 1 && strlen(trim($motd)) > 0) {
+ echo "<center><br>";
+ echo "<table width=70% cellpadding=0 cellspacing=0 border=0><tr><td bgcolor=\"$color[9]\">";
+ echo "<table width=100% cellpadding=5 cellspacing=1 border=0><tr><td bgcolor=\"$color[4]\">";
+ echo "$motd";
+ echo "</td></tr></table>";
+ echo "</td></tr></table>";
+ echo "</center><br>";
+ }
+
if (isset($newsort)) {
$sort = $newsort;
session_register("sort");
echo "<FRAME SRC=\"folders.php\" NAME=\"right\">";
} else {
echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
- echo "<FRAME SRC=\"right_main.php\" NAME=\"right\">";
+ if (!isset($just_logged_in)) $just_logged_in = 0;
+ echo "<FRAME SRC=\"right_main.php?just_logged_in=$just_logged_in\" NAME=\"right\">";
}
?>