diff --git a/matchinfo.php b/matchinfo.php index 85072c7..e0e0f4e 100644 --- a/matchinfo.php +++ b/matchinfo.php @@ -80,11 +80,19 @@ $lastMatches = array_slice($allMatches, 0, 8); echo ""; echo ""; + $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 "
| Player Name | Kills | humankills | @@ -93,40 +101,35 @@ $lastMatches = array_slice($allMatches, 0, 8);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 |
|---|