ah yeah... and such
[glcas.git] / lib / plugins / www.php
index ee6bc12..3d5b9d1 100644 (file)
@@ -114,6 +114,21 @@ function www_top()
        }
        
        echo "</tr></table>";
+       if(function_exists("msg_haveMessages")) if(msg_haveMessages()) {
+               echo "<table bgcolor=\"#ddddff\">";
+               $msgs = msg_getMessages();
+               
+               foreach($msgs as $msg) {
+                       $msgtime = msg_toDate($msg["msgdate"]);
+                       $msgcol = $msg["msgcolour"];
+                       $msgtxt = $msg["msgtext"];
+                       $msgid = $msg["messages_id"];
+                       
+                       echo "<tr><td><font color=\"$msgcol\">$msgtime - $msgtxt</font></td>";
+                       echo "<td><a href=\"".urlCreate("/msg/acknowledge/$msgid")."\">Acknowledge</a></td></tr>";
+               }
+               echo "</table>";
+       }
 }
 
 function www_leftmenu()