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'); ?>
-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);
+?>
+