Ejemplo n.º 1
0
    tryLogin();
    tryPages();
    /* If nothing matched, show default page.  */
    if ($status === "unknown") {
        $status = "default";
    }
}
/* Perform actions and catch errors.  */
$msg->runWithErrors("performActions");
/* Set some global variables for the pages.  */
if ($status === "loginForm") {
    $loginNonce = $session->generateNonce($nonceBytes);
}
$loggedInUser = $session->getUser();
/* Shut down worker classes.  msg and html have to be kept for later.  */
$req->close();
$nc->close();
$session->close();
/* ************************************************************************** */
/* Set encoding to UTF-8.  */
header("Content-Type: text/html; charset=utf-8");
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<title>NameID Chat Room</title>

<meta charset="utf-8" />

<link rel="stylesheet" type="text/css" href="layout/main.css" />