]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/ctdlprotocol.php
* cleanup
[citadel.git] / ctdlphp / ctdlprotocol.php
index 0463ad5125e8accb647755c79e0ba2b855889936..0ab08bdf276ee59de104465e52f6de876327d750 100644 (file)
@@ -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_");
 }
 
@@ -269,6 +291,13 @@ function ctdl_knrooms() {
                $tok = strtok("|");
                if ($tok) $thisline["access"] = $tok;
 
+               if ($thisline["access"] & 8) {
+                       $thisline["hasnewmsgs"] = TRUE;
+               }
+               else {
+                       $thisline["hasnewmsgs"] = FALSE;
+               }
+
                $num_lines = array_push($all_lines, $thisline);
        }