From f414b0046b23385b83816caa6099c01456fe6735 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 15 Nov 2023 14:03:32 +0100 Subject: [PATCH] test --- matchinfo.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/matchinfo.php b/matchinfo.php index adf189d..b395a0d 100644 --- a/matchinfo.php +++ b/matchinfo.php @@ -59,7 +59,12 @@ $lastMatches = array_slice($allMatches, 0, 8); if (isset($_GET['matchid'])) { $matchId = $_GET['matchid']; $filename = "data/matches/" . $matchId . ".json"; - + $directory = 'killstats/'; + $prefix = $matchdata['id']; + $files = glob($directory . $prefix . '*'); + foreach ($files as $file) { + echo $file . "\n"; + } // Check if the JSON file for the given match ID exists if (file_exists($filename)) { // Read and decode the JSON file