- Fixed bug when one message left in message index, displayed wrong one
[squirrelmail.git] / src / right_main.php
index c1f96f84feae32e419823ce69ab6daa07aab13fc..636ff5b11001da5cf2be233dc467bdf2ffe0a7f4 100644 (file)
    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");