projects
/
glcas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1273cfa
)
messages and such
author
paulr
<me@pjr.cc>
Wed, 20 Apr 2011 18:24:29 +0000 (
04:24
+1000)
committer
paulr
<me@pjr.cc>
Wed, 20 Apr 2011 18:24:29 +0000 (
04:24
+1000)
lib/plugins/messages.php
patch
|
blob
|
history
lib/plugins/www.php
patch
|
blob
|
history
diff --git
a/lib/plugins/messages.php
b/lib/plugins/messages.php
index
557e6f6
..
d7a268f
100644
(file)
--- 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
(file)
--- 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 "<tr><td><font color=\"$msgcol\">$msgtime - $msgtxt</font>";
}