<?PHP
-//
-// ctdlsession.php
+// $Id$
//
// This gets called from within the header functions. It establishes or
// connects to a PHP session, and then connects to Citadel if necessary.
// Ok, now try again.
$clientsocket = fsockopen($sockname, 0, $errno, $errstr, 5);
- // Try to log the user back in.
+ // Try to log the user back in and go back to the correct room.
if ($clientsocket) {
+ ctdl_iden(); // Identify client
if ($_SESSION["username"]) {
login_existing_user(
$_SESSION["password"]
);
}
+
+ if ($_SESSION["room"]) {
+ ctdl_goto($_SESSION["room"]);
+ }
+ else {
+ ctdl_goto("_BASEROOM_");
+ }
}
}