* The code which loads expire policies had been incompletely ported to strbuf, causin...
[citadel.git] / ctdlphp / listrooms.php
blob069d1bf5d98b993cec816d75b091c4e4e5197826
1 <?PHP
2 include "ctdlheader.php";
3 bbs_page_header();
4 ?>
6 <H1>Known rooms</H1>
8 This is a sample page to demonstrate how to generate a room list.
10 <UL>
12 <?PHP
13 list($num_rooms, $roomlist) = ctdl_knrooms();
15 if ($num_rooms > 0) foreach ($roomlist as $x) {
16 echo '<LI>';
17 if ($x["hasnewmsgs"]) echo '<B>';
18 echo '<A HREF="goto.php?towhere=' .
19 urlencode($x["name"]) . '">' .
20 htmlspecialchars($x["name"]) . "</A>" ;
21 if ($x["hasnewmsgs"]) echo '</B>';
22 echo "</LI>\n" ;
26 </UL>
28 Sample links<BR>
29 <a href="welcome.php">Page One</a><BR>
30 <a href="page3.php">Page Three</a><BR>
32 <?PHP
33 bbs_page_footer();