"|", "["=>"{", "]"=>"}", "~"=>"^"); $usernameCanonical = strtr($username, $ircLowerSymbols); $usernameCanonical = strtolower($usernameCanonical); } if(array_key_exists('page', $_GET)) { $page = $_GET['page']; } if(!isset($page)) { $page = 1; } if($page < 1) { $page = 1; } $maxResults = 10; $usersCount = 0; $users = array(); $errors = array(); try { $users = $storage->getUserLikeUsernameCanonical($usernameCanonical, $page, $maxResults); $usersCount = $storage->getCountUserLikeUsernameCanonical($usernameCanonical); } catch(StorageSchemaException $e) { $errors[] = "Error: Database schema is not queryable"; } catch(StorageConnectionException $e) { $errors[] = "Error: Database is not available"; } $storage->close(); // Redirect to profile if only 1 result found if(count($users) == 1) { header('Location: profile.php?username=' . $users[0]['username']); die(); } ?> Players · TriviaTime

Players

Show stats for players.

Search

Username:
$error
"; } } if($usersCount==0) { echo "
User not found.
"; $users = array(); } if($usernameCanonical=='') { echo "
Enter a username above to search for stats.
"; } ?>

Player data

'; echo ''; echo ''; echo ''; echo ''; } ?>
Username Total Points Question Answered*
' . $res['username'] . '' . number_format($res['points'],0) . '' . number_format($res['total'],0) . '
paginate(); ?>

* These stats do not include KAOS