This commit is contained in:
Thijs Stobbelaar 2023-11-15 15:42:19 +01:00
parent 659d0bbcb5
commit de4f96693c

View file

@ -75,11 +75,11 @@ $lastMatches = array_slice($allMatches, 0, 8);
echo $file . "\n"; echo $file . "\n";
} }
foreach($file as $files){ foreach($files as $file){
$jsonData_individual_player = json_decode(file_get_contents($file), true); $jsonData_individual_player = json_decode(file_get_contents($file), true);
echo $jsonData_individual_player['stats']['humankills']; echo $jsonData_individual_player['stats']['humankills'];
echo $jsonData_individual_player['stats']['kills']; echo $jsonData_individual_player['stats']['kills'];
} }
echo "<table class='sortable'><tr><th>matchType</th><th>gameMode</th><th>duration</th><th>mapName</th><th>createdAt</th><th>id</th></tr>"; echo "<table class='sortable'><tr><th>matchType</th><th>gameMode</th><th>duration</th><th>mapName</th><th>createdAt</th><th>id</th></tr>";