// Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
// This program is released under the terms of the GNU General Public License.
+
+// All of the back-end magic gets included from here. The rest of the
+// pages in the system then only have to include ctdlheader.php (since it
+// is required) and they get the others automatically.
+//
include "ctdlsession.php";
include "ctdlprotocol.php";
function bbs_page_header() {
+
+ // Make sure we're connected to Citadel. Do not remove this!!
establish_citadel_session();
echo <<<LITERAL
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<HR>
LITERAL;
-
}
echo "</BODY></HTML>\n";
}
+
?>
//
function become_logged_in($server_parms) {
$_SESSION["logged_in"] = 1;
+
+ $tok = strtok($server_parms, "|");
+ if ($tok) $thisline["username"] = $tok;
+
+ $tok = strtok("|");
+ if ($tok) $thisline["axlevel"] = $tok;
+
+ $tok = strtok("|");
+ if ($tok) $thisline["calls"] = $tok;
+
+ $tok = strtok("|");
+ if ($tok) $thisline["posts"] = $tok;
+
+ $tok = strtok("|");
+ if ($tok) $thisline["userflags"] = $tok;
+
+ $tok = strtok("|");
+ if ($tok) $thisline["usernum"] = $tok;
+
+ $tok = strtok("|");
+ if ($tok) $thisline["lastcall"] = $tok;
+
ctdl_goto("_BASEROOM_");
}
<?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();