data
This commit is contained in:
parent
6ca22a72ca
commit
3e5c4314be
1 changed files with 5 additions and 1 deletions
|
|
@ -59,9 +59,13 @@ $lastMatches = array_slice($allMatches, 0, 8);
|
||||||
if (isset($_GET['matchid'])) {
|
if (isset($_GET['matchid'])) {
|
||||||
$matchId = $_GET['matchid'];
|
$matchId = $_GET['matchid'];
|
||||||
$filename = "data/matches/" . $matchId . ".json";
|
$filename = "data/matches/" . $matchId . ".json";
|
||||||
$directory = 'killstats/';
|
|
||||||
|
$directory = 'data/killstats/';
|
||||||
$prefix = $matchdata['id'];
|
$prefix = $matchdata['id'];
|
||||||
$files = glob($directory . $prefix . '*');
|
$files = glob($directory . $prefix . '*');
|
||||||
|
echo $prefix;
|
||||||
|
echo $directory;
|
||||||
|
echo $files
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
echo $file . "\n";
|
echo $file . "\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue