//
function become_logged_in($server_parms) {
$_SESSION["logged_in"] = 1;
+ ctdl_goto("_BASEROOM_");
}
}
+//
+// Goto a room.
+//
+function ctdl_goto($to_where) {
+
+ serv_puts("GOTO " . $to_where);
+ $response = serv_gets();
+
+ if (substr($response, 0, 1) == "2") {
+ $_SESSION["room"] = strtok(substr($response, 4), "|");
+ return array(TRUE, substr($response, 0, 3));
+ }
+
+ else {
+ return array(FALSE, substr($response, 0, 3));
+ }
+
+}
+
+
?>