- if ($_SESSION["room"]) {
- ctdl_goto($_SESSION["room"]);
- }
- else {
- ctdl_goto("_BASEROOM_");
- }
+ // At this point we have a good connection to Citadel.
+ $identity=array(
+ "DevelNr" => '0',
+ "ClientID" => '8',
+ "VersionNumber" => '001',
+ "ClientInfoString" => 'PHP web client|',
+ "Remote Address" => $_SERVER['REMOTE_ADDR'] );
+
+ ctdl_iden($identity); // Identify client
+ ctdl_MessageFormatsPrefered(array("text/html","text/plain"));
+ if (isset($_SESSION["username"])) {
+ login_existing_user(
+ $_SESSION["username"],
+ $_SESSION["password"]
+ );