From 7ad50984519d2ff5c2e363397fc43bc489e13f89 Mon Sep 17 00:00:00 2001
From: john30
Date: Sat, 14 Dec 2019 16:36:43 +0100
Subject: [PATCH] added some basic info to non-ebusd clients
---
contrib/updatecheck/index.php | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/contrib/updatecheck/index.php b/contrib/updatecheck/index.php
index 7fa4dc7a..9a0d92c3 100644
--- a/contrib/updatecheck/index.php
+++ b/contrib/updatecheck/index.php
@@ -9,12 +9,35 @@ if (substr($agent, 0, 5)==='ebusd') {
exit;
}
readVersions();
+$ref = @file_get_contents('ebusd-configuration/.git/refs/heads/master');
?>
- ebusd update check service
+ ebusd update check webservice
- latest ebusd version: =$versions['ebusd'][0]?>
last update: =date('c', @filemtime('versions.txt'))?>
+git revision: ".substr($ref, 0, 7).'
';
+ }
+?>
+ latest ebusd version: =$versions['ebusd'][0]?>
+ config files:
+$str\n";
+ } else {
+ echo "
$str\n";
+ }
+ };
+ array_walk($versions, $func);
+?>
+