query("SELECT realm,test FROM sessions WHERE id='$id'")->fetch();
if ($row == false) {
die("Session not found for id: $id");
}
$realm = $row['realm'];
$test = $row['test'];
if (strlen($test) > 0) {
echo "Special test functionality: $test
\n";
}
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"
?>