From 81884b10658326863d6ca16726168fbe99249b84 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 9 Nov 2003 20:34:05 +0000 Subject: [PATCH] * cleanup --- ctdlphp/ctdlheader.php | 10 ++++++++-- ctdlphp/ctdlprotocol.php | 22 ++++++++++++++++++++++ ctdlphp/who.php | 4 ++++ 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/ctdlphp/ctdlheader.php b/ctdlphp/ctdlheader.php index 1a9ac6583..c5b8f5e64 100644 --- a/ctdlphp/ctdlheader.php +++ b/ctdlphp/ctdlheader.php @@ -9,14 +9,20 @@ // Copyright (c) 2003 by Art Cancro // 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 << @@ -52,7 +58,6 @@ LITERAL;
LITERAL; - } @@ -62,4 +67,5 @@ function bbs_page_footer() { echo "\n"; } + ?> diff --git a/ctdlphp/ctdlprotocol.php b/ctdlphp/ctdlprotocol.php index a15686f35..0ab08bdf2 100644 --- a/ctdlphp/ctdlprotocol.php +++ b/ctdlphp/ctdlprotocol.php @@ -108,6 +108,28 @@ function create_new_user($user, $pass) { // 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_"); } diff --git a/ctdlphp/who.php b/ctdlphp/who.php index 019354a33..6d5295f23 100644 --- a/ctdlphp/who.php +++ b/ctdlphp/who.php @@ -1,4 +1,8 @@