added a bunch more hooks
[squirrelmail.git] / src / right_main.php
index c1f96f84feae32e419823ce69ab6daa07aab13fc..8db65bc666fbaeef84aa1047d794ae6c086ef9c9 100644 (file)
    sqimap_mailbox_select($imapConnection, $mailbox);
    displayPageHeader($color, $mailbox);
 
+   do_hook("right_main_after_header");
+   
+   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");
       session_register("numMessages");
    }
 
+   do_hook("right_main_bottom");
    // close the connection
    sqimap_logout ($imapConnection);
 ?>