From: paulr Date: Wed, 20 Apr 2011 18:24:29 +0000 (+1000) Subject: messages and such X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=commitdiff_plain;h=84bdd22f2dd2bfcdef9dd355e824257478c3c0b0 messages and such --- diff --git a/lib/plugins/messages.php b/lib/plugins/messages.php index 557e6f6..d7a268f 100644 --- a/lib/plugins/messages.php +++ b/lib/plugins/messages.php @@ -17,9 +17,9 @@ function msg_getMessages($acked = false) return $data; } -function msg_toDate() +function msg_toDate($time) { - + return strftime("%c", $time); } function msg_addMessage($colour, $message) diff --git a/lib/plugins/www.php b/lib/plugins/www.php index ab6bff9..2c59349 100644 --- a/lib/plugins/www.php +++ b/lib/plugins/www.php @@ -119,9 +119,9 @@ function www_top() $msgs = msg_getMessages(); foreach($msgs as $msg) { - $msgtime = msg_toDate($msg["time"]); - $msgcol = $msg["colour"]; - $msgtxt = $msg["text"]; + $msgtime = msg_toDate($msg["msgdate"]); + $msgcol = $msg["msgcolour"]; + $msgtxt = $msg["msgtext"]; echo "$msgtime - $msgtxt"; }