From: Art Cancro Date: Sun, 9 Nov 2003 20:34:05 +0000 (+0000) Subject: * cleanup X-Git-Tag: v7.86~5707 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=81884b10658326863d6ca16726168fbe99249b84;hp=8326fa85d8b07c85a422f33fb26f585e7aa954d5;p=citadel.git * cleanup --- 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 @@