Add type / version

This commit is contained in:
DL6ER
2017-02-20 12:45:56 +01:00
parent 3060279c68
commit e3d791abb6
2 changed files with 10 additions and 6 deletions

View File

@@ -21,10 +21,12 @@ header('Content-type: application/json');
$data = [];
if (isset($_GET['type'])) {
$data["type"] = "FTL";
}
if (isset($_GET['version'])) {
$version = array();
$version["version"] = "FTL";
$data = array_merge($data, $version);
$data["version"] = 2;
}
if (isset($_GET['summary']) || isset($_GET['summaryRaw']) || !count($_GET))