<p class="make-center"> <img src="<?php echo $avatar_service_uri . $player; ?> /400" alt="<?php echo $player; ?> 's Head" class="img-rounded avatar-player-page"> </p> <div class="table-responsive"> <table class="table table-hover table-striped table-bordered"> <!-- TODO: Unit conversions + Plural wording & words. --> <?php $amountOfPlayers = getAmountOfPlayers($mysqli, $mysql_table_prefix, $required_global_stats_time); ?> <thead> <tr> <th>Measurement</th> <th>Data</th> <th>Server Average (<?php echo $amountOfPlayers; ?> players)</th> </tr> </thead> <tbody> <tr> <th>Playtime</th> <td><?php
<?php /** * Copyright (c) AccountProductions and Sybren Gjaltema, 2014. All rights reserved. */ header('Content-Type: application/json'); include '../../config.php'; include '../db.php'; include '../util.php'; include '../pages/player-list-getter.php'; include '../queries.php'; if (!isset($_GET['page'])) { die(json_encode("POST not correct, " . var_dump($_GET))); } $page = $_GET['page']; $totalPlayers = getAmountOfPlayers($mysqli, $mysql_table_prefix, 0); $totalPages = (int) ($totalPlayers / 15) + ($totalPlayers % 15 != 0 ? 1 : 0); if ($page > $totalPages) { $page = $totalPages; } if (!is_numeric($page)) { die(json_encode("Page is not a number (???)")); } $players = getPlayerList($mysqli, $mysql_table_prefix, $player_list_sort_by, $player_list_sort_order, $page); if (!$players || empty($players)) { die(json_encode("Query failed, or no players are found")); } $arr = array(); array_push($arr, $totalPages); while ($player = $players->fetch_array()) { $newPlayer = array();
<?php /** * Copyright (c) AccountProductions and Sybren Gjaltema, 2014. All rights reserved. */ $navPage = "player-list"; include_once APPPATH . 'config.php'; include_once APPPATH . 'inc/db.php'; include_once APPPATH . 'inc/queries.php'; include_once APPPATH . 'inc/util.php'; $pagenr = isset($_GET['page']) ? $_GET['page'] : 1; $totalPages = intval(getAmountOfPlayers($mysqli, $mysql_table_prefix, 0) / 15); ?> <!DOCTYPE html> <!-- ~ Copyright (c) AccountProductions and Sybren Gjaltema, 2014. All rights reserved. --> <html> <head> <!-- Header --> <?php include APPPATH . 'inc/header.php'; ?> <!-- /Header --> </head> <body> <?php include APPPATH . 'inc/navbar.php';