messages and such
[glcas.git] / lib / plugins / www.php
index ee6bc12..ab6bff9 100644 (file)
@@ -114,6 +114,19 @@ function www_top()
        }
        
        echo "</tr></table>";
+       if(function_exists("msg_haveMessages")) if(msg_haveMessages()) {
+               echo "<table>";
+               $msgs = msg_getMessages();
+               
+               foreach($msgs as $msg) {
+                       $msgtime = msg_toDate($msg["time"]);
+                       $msgcol = $msg["colour"];
+                       $msgtxt = $msg["text"];
+                       
+                       echo "<tr><td><font color=\"$msgcol\">$msgtime - $msgtxt</font>";
+               }
+               echo "</table>";
+       }
 }
 
 function www_leftmenu()