$Log$
+ Revision 1.14 2003/11/07 15:56:13 ajc
+ * ctdlprotocol.php: known room list fetch now sets subscript "hasnewmsgs"
+ * listrooms.php: render rooms with unseen messages in boldface
+
Revision 1.13 2003/11/05 03:29:12 ajc
* Added a room list function to the library
* Threw together temporary room list and goto pages to demonstrate
Revision 1.1 2003/10/31 03:47:13 ajc
* Initial CVS import
-
$tok = strtok("|");
if ($tok) $thisline["access"] = $tok;
+ if ($thisline["access"] & 8) {
+ $thisline["hasnewmsgs"] = TRUE;
+ }
+ else {
+ $thisline["hasnewmsgs"] = FALSE;
+ }
+
$num_lines = array_push($all_lines, $thisline);
}
list($num_rooms, $roomlist) = ctdl_knrooms();
if ($num_rooms > 0) foreach ($roomlist as $x) {
- echo '<LI><A HREF="goto.php?towhere=' .
+ echo '<LI>';
+ if ($x["hasnewmsgs"]) echo '<B>';
+ echo '<A HREF="goto.php?towhere=' .
urlencode($x["name"]) . '">' .
- htmlspecialchars($x["name"]) . "</A></LI>\n" ;
+ htmlspecialchars($x["name"]) . "</A>" ;
+ if ($x["hasnewmsgs"]) echo '</B>';
+ echo "</LI>\n" ;
}
?>