summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/nada.php
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-06-12 15:25:43 +0200
committerRamón M. Gómez <ramongomez@us.es>2018-06-12 15:25:43 +0200
commitbf4b65c18d8d8a2eb156883863c2de8814718e9a (patch)
tree6e3d816c420a20ae9d5b71d862a741ba298b8d47 /admin/WebConsole/nada.php
parent9815cac93139ec0a4a155934819a887b6436081a (diff)
#843: Web interface uses new version file and correcting some errata.
Diffstat (limited to 'admin/WebConsole/nada.php')
-rw-r--r--admin/WebConsole/nada.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/admin/WebConsole/nada.php b/admin/WebConsole/nada.php
index 52d0d028..84e7b490 100644
--- a/admin/WebConsole/nada.php
+++ b/admin/WebConsole/nada.php
@@ -152,6 +152,13 @@ $vernav=end($buscavernav);
if ($device == "ipad" || $device == "iphone" || $device == "android" )
{
+$data = json_decode(@file_get_contents(__DIR__ . '/../doc/VERSION.json'));
+if (empty($data->project)) {
+ $version = "OpenGnsys";
+} else {
+ $version = @$data->project.' ' . @$data->version.' '
+ . (isset($data->codename) ? '('.$data->codename.') ' : '') . @$data->release;
+}
?>
<html>
<head>
@@ -168,7 +175,7 @@ if ($device == "ipad" || $device == "iphone" || $device == "android" )
<td colspan="3" align="center"><SPAN align=center class=cabeceras><font size="4"><?php echo $TbMsg[0] ;?></font></SPAN></td>
</tr>
<tr>
- <td colspan="3" align="center"><SPAN align=center class=cabeceras><font size="4"><?php $versionfile="../doc/VERSION.txt";if (file_exists ($versionfile)){include ($versionfile);} ;?></font></SPAN></td>
+ <td colspan="3" align="center"><SPAN align=center class=cabeceras><font size="4"><?php echo $version; ?></font></SPAN></td>
</tr>
<tr>
<td colspan="3" align="center">&nbsp;</td>