diff --git a/public/datavelo/tracklist.json.php b/public/datavelo/tracklist.json.php index a1f62de..62173ae 100644 --- a/public/datavelo/tracklist.json.php +++ b/public/datavelo/tracklist.json.php @@ -26,7 +26,7 @@ } closedir($dir); sort($tracks); -$trackliste = []; +$tracklist = []; $i = 0; foreach ($tracks as $key => $val) { $date = substr($val, 0, 10); @@ -46,8 +46,8 @@ $flag = $flag." ".$lettred.$lettref; } $trackobject = (object) ['id' => $i, 'date' => $date, 'name' => $name, 'url' => $val, 'cc' => $cc, 'flag' => $flag]; - array_push($trackliste, $trackobject); + array_push($tracklist, $trackobject); } } -echo json_encode($trackliste); +echo json_encode($tracklist); ?> diff --git a/public/datavelo/tracknumber.json.php b/public/datavelo/tracknumber.json.php new file mode 100644 index 0000000..e1b77c7 --- /dev/null +++ b/public/datavelo/tracknumber.json.php @@ -0,0 +1,31 @@ + sizeof($tracks)]; +echo json_encode($trackobject); +?>