]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/readmsgs.php
* Added a basic read loop ... currently only fetches message numbers
[citadel.git] / ctdlphp / readmsgs.php
diff --git a/ctdlphp/readmsgs.php b/ctdlphp/readmsgs.php
new file mode 100644 (file)
index 0000000..2c81dd4
--- /dev/null
@@ -0,0 +1,23 @@
+<?PHP
+       include "ctdlheader.php";
+       bbs_page_header();
+
+       list($num_msgs, $response, $msgs) = ctdl_msgs($_REQUEST["mode"],
+                                                       $_REQUEST["count"] );
+
+       echo "num_msgs: " . $num_msgs . "<BR>\n" ;
+       echo "response: " . htmlspecialchars($response) . "<BR>\n" ;
+
+        if ($num_msgs > 0) foreach ($msgs as $msgnum) {
+               echo $msgnum . ", " ;
+       }
+
+?>
+
+<BR>
+<a href="welcome.php">Page One</a><BR>
+<a href="page3.php">Page Three</a><BR>
+
+<?PHP
+       bbs_page_footer();
+?>