From 6afac228f75d194c05a6af67a6be84fe240fbdce Mon Sep 17 00:00:00 2001 From: Matthias Kalb Date: Wed, 23 Jan 2019 15:43:17 +0100 Subject: [PATCH] added version.json, $version variable via version.php --- index.php | 2 ++ version.json | 5 +++++ version.php | 27 ++++++--------------------- 3 files changed, 13 insertions(+), 21 deletions(-) create mode 100644 version.json diff --git a/index.php b/index.php index eec069c..327f188 100644 --- a/index.php +++ b/index.php @@ -13,6 +13,8 @@ if($_GET["site"]!="error"){ include $_SESSION["docroot"].'/php/auth.php'; } + + include $_SESSION["docroot"].'/version.php'; ?> diff --git a/version.json b/version.json new file mode 100644 index 0000000..2a3f2c1 --- /dev/null +++ b/version.json @@ -0,0 +1,5 @@ +{ + "version": "0.2.4", + "version_suffix": "alpha", + "update_channel": "dev" +} \ No newline at end of file diff --git a/version.php b/version.php index 00b16e4..de70743 100644 --- a/version.php +++ b/version.php @@ -1,24 +1,9 @@ [ - '0.1.0' => true, - '0.2.0' => true, - '0.2.1' => true, - ], -]; - -// default shopping-list channel -$SL_Channel = 'git'; - -// The build number -$SL_Build = ''; +?>