This commit is contained in:
Thijs Stobbelaar 2023-09-24 20:07:23 +02:00
parent 2e18116c77
commit bbca4d9a8d
2 changed files with 11 additions and 10 deletions

View file

@ -158,7 +158,7 @@
"mapName": "Baltic_Main" "mapName": "Baltic_Main"
} }
], ],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time" "updated": "09/24/2023 20:05:50 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "Petje1972", "playername": "Petje1972",
@ -319,7 +319,7 @@
"mapName": "Baltic_Main" "mapName": "Baltic_Main"
} }
], ],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time" "updated": "09/24/2023 20:05:50 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "TaGMoM", "playername": "TaGMoM",
@ -480,7 +480,7 @@
"mapName": "Baltic_Main" "mapName": "Baltic_Main"
} }
], ],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time" "updated": "09/24/2023 20:05:50 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "r00tger", "playername": "r00tger",
@ -517,7 +517,7 @@
"mapName": "Baltic_Main" "mapName": "Baltic_Main"
} }
], ],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time" "updated": "09/24/2023 20:05:50 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "Masistuta", "playername": "Masistuta",
@ -678,7 +678,7 @@
"mapName": "Baltic_Main" "mapName": "Baltic_Main"
} }
], ],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time" "updated": "09/24/2023 20:05:50 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "RalphNorris", "playername": "RalphNorris",
@ -839,7 +839,7 @@
"mapName": "Baltic_Main" "mapName": "Baltic_Main"
} }
], ],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time" "updated": "09/24/2023 20:05:50 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "Jimbo_The_One", "playername": "Jimbo_The_One",
@ -1000,7 +1000,7 @@
"mapName": "Desert_Main" "mapName": "Desert_Main"
} }
], ],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time" "updated": "09/24/2023 20:05:50 - Time Zone: W. Europe Standard Time"
}, },
{ {
"playername": "Shepherders", "playername": "Shepherders",
@ -1099,6 +1099,6 @@
"mapName": "Baltic_Main" "mapName": "Baltic_Main"
} }
], ],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time" "updated": "09/24/2023 20:05:50 - Time Zone: W. Europe Standard Time"
} }
] ]

View file

@ -45,15 +45,16 @@ error_reporting(E_ALL);
$date = new DateTime($match['createdAt']); $date = new DateTime($match['createdAt']);
$formattedDate = $date->format('d F Y, H:i:s'); $formattedDate = $date->format('d F Y, H:i:s');
$matchType = $match['matchType'];
$gameMode = $match['gameMode']; $gameMode = $match['gameMode'];
$mapName = $match['mapName']; $mapName = $match['mapName'];
$kills = $match['stats']['kills']; $kills = $match['stats']['kills'];
$damage = $match['stats']['damageDealt']; $damage = $match['stats']['damageDealt'];
$timeSurvived = $match['stats']['timeSurvived']; $timeSurvived = $match['stats']['timeSurvived'];
echo "<tr><td>$formattedDate</td><td>$gameMode</td><td>$mapName</td><td>$kills</td><td>$damage</td><td>$timeSurvived</td></tr>"; echo "<tr><td>$formattedDate</td><td>$gameMode</td><td>$matchType</td><td>$mapName</td><td>$kills</td><td>$damage</td><td>$timeSurvived</td></tr>";
} }
echo "</table><br>"; echo "</table><br>";
} }
} }
?> ?>