"|", "["=>"{", "]"=>"}", "~"=>"^"); $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(); } ?>
Show stats for players.
| Username | Total Points | Question Answered* | ' . $res['username'] . ' | '; echo '' . number_format($res['points'],0) . ' | '; echo '' . number_format($res['total'],0) . ' | '; echo ''; } ?>
|---|
* These stats do not include KAOS