<th>humankills</th> #117

Merged
OpzekerIT merged 2 commits from dev into main 2023-11-15 15:06:45 +00:00
Showing only changes of commit 0907f12d98 - Show all commits

View file

@ -80,6 +80,14 @@ $lastMatches = array_slice($allMatches, 0, 8);
echo "</tr>"; echo "</tr>";
echo "</table>"; 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 {
@ -93,11 +101,6 @@ $lastMatches = array_slice($allMatches, 0, 8);
<th>DBNOs</th> <th>DBNOs</th>
</tr>"; </tr>";
$directory = 'data/killstats/';
$prefix = $matchdata['id'];
$files = glob($directory . $prefix . '*');
foreach ($files as $file) { foreach ($files as $file) {
$jsonData_individual_player = json_decode(file_get_contents($file), true); $jsonData_individual_player = json_decode(file_get_contents($file), true);
$individualPlayerName = $jsonData_individual_player['stats']['playername']; $individualPlayerName = $jsonData_individual_player['stats']['playername'];
@ -126,7 +129,7 @@ $lastMatches = array_slice($allMatches, 0, 8);
echo "</tr>"; echo "</tr>";
} }
echo "</table>"; echo "</table>";
}
echo "<table class='sortable'>"; echo "<table class='sortable'>";
echo "<tr> echo "<tr>
<th>Player Name</th> <th>Player Name</th>