X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=lib%2Fplugins%2Fwww.php;h=ab6bff9fecbdb3a0042136b01893394fe2dd4ab6;hp=ee6bc120a9bfaaef59689ee9dfc5a4793adfd3ea;hb=1273cfa75bf3fd3926d435c149e04a2f6f82e045;hpb=ef5e2e02126452d4d25ec9c349b489cbb1822bc2 diff --git a/lib/plugins/www.php b/lib/plugins/www.php index ee6bc12..ab6bff9 100644 --- a/lib/plugins/www.php +++ b/lib/plugins/www.php @@ -114,6 +114,19 @@ function www_top() } echo ""; + if(function_exists("msg_haveMessages")) if(msg_haveMessages()) { + echo ""; + $msgs = msg_getMessages(); + + foreach($msgs as $msg) { + $msgtime = msg_toDate($msg["time"]); + $msgcol = $msg["colour"]; + $msgtxt = $msg["text"]; + + echo "
$msgtime - $msgtxt"; + } + echo "
"; + } } function www_leftmenu()