commit
dd918f70d7
1 changed files with 36 additions and 33 deletions
|
|
@ -80,24 +80,27 @@ $lastMatches = array_slice($allMatches, 0, 8);
|
|||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
$directory = 'data/killstats/';
|
||||
$prefix = $matchdata['id'];
|
||||
$files = glob($directory . $prefix . '*');
|
||||
|
||||
if (count($files) == 0) {
|
||||
echo "No individual player data available (yet) check back in half hour.";
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
|
||||
echo "<table class='sortable'>";
|
||||
echo "<tr>
|
||||
<th>Player Name</th>
|
||||
<th>Kills</th>
|
||||
<th>humankills</th>
|
||||
<th>Kills</th>
|
||||
<th>Total Damage</th>
|
||||
<th>Rank</th>
|
||||
<th>DBNOs</th>
|
||||
</tr>";
|
||||
|
||||
$directory = 'data/killstats/';
|
||||
$prefix = $matchdata['id'];
|
||||
$files = glob($directory . $prefix . '*');
|
||||
|
||||
|
||||
foreach ($files as $file) {
|
||||
$jsonData_individual_player = json_decode(file_get_contents($file), true);
|
||||
$individualPlayerName = $jsonData_individual_player['stats']['playername'];
|
||||
|
|
@ -126,7 +129,7 @@ $lastMatches = array_slice($allMatches, 0, 8);
|
|||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
|
||||
}
|
||||
echo "<table class='sortable'>";
|
||||
echo "<tr>
|
||||
<th>Player Name</th>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue