test
This commit is contained in:
parent
220a525a14
commit
f414b0046b
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue