Added a comma after each msgnum exported. The parser was globbing them all together...
[citadel.git] / ctdlphp / who.php
1 <?PHP
2
3         include "ctdlheader.php";
4         bbs_page_header();
5
6         echo    "This is an example of the use of ctdl_rwho() to display " .
7                 "the list of users currently logged in.<BR><BR>\n" ;
8
9         echo    "<TABLE border=1>" .
10                 "<TR>" .
11                 "<TD><B>User</B></TD>" .
12                 "<TD><B>Room</B></TD>" .
13                 "<TD><B>Host</B></TD>" .
14                 "</TR>" ;
15
16         list($num_users, $wholist) = ctdl_rwho();
17
18         if ($num_users > 0) foreach ($wholist as $x) {
19                 echo "<TR>";
20                 echo "<TD>", htmlspecialchars($x["user"]), "</TD>";
21                 echo "<TD>", htmlspecialchars($x["room"]), "</TD>";
22                 echo "<TD>", htmlspecialchars($x["host"]), "</TD>";
23                 echo "</TR>\n";
24         }
25
26         echo "</TABLE>\n";
27
28 ?>
29
30 <BR>Sample links<BR>
31 <a href="welcome.php">Page One</a><BR>
32 <a href="page3.php">Page Three</a><BR>
33
34 <?PHP
35         bbs_page_footer();
36 ?>