query("SELECT realm FROM sessions WHERE id='$id'")->fetch();
if ($row == false) {
die("Session not found for id: $id");
}
$realm = $row['realm'];
echo "Sign up for a subscription - $realm
\n";
echo "This page can be used to select between three different types of subscriptions for testing purposes.
\n";
echo "Option 1 - shared free access credential
\n";
$row = $db->query("SELECT value FROM osu_config WHERE realm='$realm' AND field='free_account'")->fetch();
if ($row && strlen($row['value']) > 0) {
echo "Sign up for free access
\n";
}
echo "Option 2 - username/password credential
\n";
echo "
Option 3 - client certificate credential\n";
echo "Enroll a client certificate
\n"
?>