Match info
"Erangel", "Chimera_Main" => "Paramo", "Desert_Main" => "Miramar", "DihorOtok_Main" => "Vikendi", "Erangel_Main" => "Erangel", "Heaven_Main" => "Haven", "Kiki_Main" => "Deston", "Range_Main" => "Camp Jackal", "Savage_Main" => "Sanhok", "Summerland_Main" => "Karakin", "Tiger_Main" => "Taego" ); // Check if a match ID is provided in the GET request if (isset($_GET['matchid'])) { $matchId = $_GET['matchid']; $filename = "data/matches/" . $matchId . ".json"; // Check if the JSON file for the given match ID exists if (file_exists($filename)) { // Read and decode the JSON file $jsonData = json_decode(file_get_contents($filename), true); $matchinfo = $jsonData['data']['attributes']; $matchdata = $jsonData['data']; echo "| matchType | gameMode | duration | mapName | createdAt | id |
|---|---|---|---|---|---|
| " . htmlspecialchars($matchinfo['matchType']) . " | "; echo "" . htmlspecialchars($matchinfo['gameMode']) . " | "; echo "" . htmlspecialchars($matchinfo['duration']) . " | "; echo "" . htmlspecialchars(isset($mapNames[$matchinfo['mapName']]) ? $mapNames[$matchinfo['mapName']] : $matchinfo['mapName']) . " | "; echo "" . htmlspecialchars($matchinfo['createdAt']) . " | "; echo "" . htmlspecialchars($matchdata['id']) . " | "; echo "
| Player Name | Kills | humankills | Total Damage | Rank | DBNOs |
|---|---|---|---|---|---|
| " . htmlspecialchars($individualPlayerName) . " | "; echo "" . htmlspecialchars($jsonData_individual_player['stats']['humankills']) . " | "; echo "" . htmlspecialchars($jsonData_individual_player['stats']['kills']) . " | "; echo "" . htmlspecialchars($damageDealt) . " | "; echo "" . htmlspecialchars($rank) . " | "; echo "" . htmlspecialchars($DBNOs) . " | "; echo "
| Player Name | Kills | Damage Dealt | Time Survived | Rank | Revives | Longest Kill | DBNOs | Headshot Kills | Assists |
|---|---|---|---|---|---|---|---|---|---|
| " . htmlspecialchars($playerStats['name']) . " | "; echo "" . htmlspecialchars($playerStats['kills']) . " | "; echo "" . htmlspecialchars($playerStats['damageDealt']) . " | "; echo "" . htmlspecialchars($playerStats['timeSurvived']) . " | "; echo "" . htmlspecialchars($playerStats['winPlace']) . " | "; echo "" . htmlspecialchars($playerStats['revives']) . " | "; echo "" . htmlspecialchars($playerStats['longestKill']) . " | "; echo "" . htmlspecialchars($playerStats['DBNOs']) . " | "; echo "" . htmlspecialchars($playerStats['headshotKills']) . " | "; echo "" . htmlspecialchars($playerStats['assists']) . " | "; echo "