* Fixed an error in the template that was causing the 'c_rbl_at_greeting' field to...
[citadel.git] / ctdlphp / who.php
blob8f0bf9f3de85ebbcffb004dd72c2bf7f5ebd8690
1 <?PHP
3 include "ctdlheader.php";
4 bbs_page_header();
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" ;
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>" ;
16 list($num_users, $wholist) = ctdl_rwho();
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";
26 echo "</TABLE>\n";
30 <BR>Sample links<BR>
31 <a href="welcome.php">Page One</a><BR>
32 <a href="page3.php">Page Three</a><BR>
34 <?PHP
35 bbs_page_footer();