<< {$x->name} HTML, $r->get_users() )); return "$x
"; } try { form_has_get([ "h" => [1, 64], ]); } catch (Exception $e) { exit(page_err("invalid form params: " . $e->getMessage())); } $r = Room::from_hash($_GET["h"]); $n = htmlspecialchars($r->name); $o = $r->get_owner(); $db = new Database("../run/poker.db"); $me = whoami($db); /* is logged in? */ $l = !!$me; /* is joined? */ $j = $me->id == $o->id; $jh = $j ? "you are in this room" : ""; $ut = mk_user_table($r); echo page( "$n", << $n owned by {$o->name}

users

$ut

$jh

HTML ); ?>