//
// Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
// This program is released under the terms of the GNU General Public License.
-//
//
// This gets called from within the header functions. It establishes or
// connects to a PHP session, and then connects to Citadel if necessary.
//
+// Web designers: please make changes in ctdlheader.php, not here.
+//
+// Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
+// This program is released under the terms of the GNU General Public License.
+
function establish_citadel_session() {
//
// Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
// This program is released under the terms of the GNU General Public License.
-//
include "ctdlheader.php";
<H1>Known rooms</H1>
+This is a sample page to demonstrate how to generate a room list.
+
<UL>
<?PHP
</UL>
+Sample links<BR>
<a href="welcome.php">Page One</a><BR>
<a href="page3.php">Page Three</a><BR>
//
// Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
// This program is released under the terms of the GNU General Public License.
-//
include "ctdlheader.php";
bbs_page_header();
//
// Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
// This program is released under the terms of the GNU General Public License.
-//
include "ctdlheader.php";
echo ctdl_mesg("goodbye");
- echo "<a href=\"index.php\">Log in again</a><BR>\n" ;
+ echo "<a href=\"login.php\">Log in again</a><BR>\n" ;
bbs_page_footer();
ctdl_end_session();
// server connection. We need one of these for each session because PHP does
// not have a way to bind a session to a persistent socket.
//
+// Web designers: don't touch this module. It's not included in your web pages
+// and therefore you don't need to be here.
+//
// Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
// This program is released under the terms of the GNU General Public License.
-//
// sock_gets() -- reads one line of text from a socket
<h2><?PHP echo "Welcome to ", $_SESSION["serv_humannode"]; ?></h2>
<h3><?PHP echo "You're in: ", $_SESSION["room"]; ?></h3>
+<p>This is a sample welcome.php page. Someone with mad HTML kung-fu should
+edit this and make it useful and attractive.</p>
+
<P>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum
ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
Praesent nec massa. Nam enim est, semper sed, ultrices ac, malesuada et,
tellus tortor, vehicula at, iaculis vitae, adipiscing quis, sapien. Lorem
ipsum dolor sit amet, consectetuer adipiscing elit.</p>
+<b>Sample links</b><BR>
<a href="who.php">Who is online?</a><BR>
<a href="listrooms.php">room list</A><BR>
<a href="page2.php">Page Two</a><BR>
<?PHP
- // This is an example of the use of ctdl_rwho() to display the
- // list of users currently logged in.
-
include "ctdlheader.php";
bbs_page_header();
+ echo "This is an example of the use of ctdl_rwho() to display the " ;
+ echo "list of users currently logged in.<BR><BR>\n" ;
+
echo "<TABLE border=1>";
echo "<TR>";
echo "<TD><B>User</B></TD>";
?>
+<BR>Sample links<BR>
<a href="welcome.php">Page One</a><BR>
<a href="page3.php">Page Three</a><BR>