added some basic info to non-ebusd clients
This commit is contained in:
@@ -9,12 +9,35 @@ if (substr($agent, 0, 5)==='ebusd') {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
readVersions();
|
readVersions();
|
||||||
|
$ref = @file_get_contents('ebusd-configuration/.git/refs/heads/master');
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>ebusd update check service</title>
|
<title>ebusd update check webservice</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>latest ebusd version: <?=$versions['ebusd'][0]?></p>
|
|
||||||
<p>last update: <?=date('c', @filemtime('versions.txt'))?></p>
|
<p>last update: <?=date('c', @filemtime('versions.txt'))?></p>
|
||||||
|
<?php
|
||||||
|
if ($ref) {
|
||||||
|
echo " <p>git revision: <a href=\"https://github.com/john30/ebusd-configuration/tree/$ref\">".substr($ref, 0, 7).'</a></p>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<p>latest ebusd version: <?=$versions['ebusd'][0]?></p>
|
||||||
|
<p>config files:
|
||||||
|
<?php
|
||||||
|
$func = function($v, $k) {
|
||||||
|
if ($k==='ebusd') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
global $ref;
|
||||||
|
$str = "$k: ".date('d.m.Y H:i:s', $v[2]);
|
||||||
|
if ($ref) {
|
||||||
|
echo " <br><a href=\"https://github.com/john30/ebusd-configuration/blob/$ref/ebusd-2.1.x/de/$k\">$str</a>\n";
|
||||||
|
} else {
|
||||||
|
echo " <br>$str\n";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
array_walk($versions, $func);
|
||||||
|
?>
|
||||||
|
</p>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user