diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-06-12 15:25:43 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-06-12 15:25:43 +0200 |
commit | bf4b65c18d8d8a2eb156883863c2de8814718e9a (patch) | |
tree | 6e3d816c420a20ae9d5b71d862a741ba298b8d47 /admin/WebConsole/index.php | |
parent | 9815cac93139ec0a4a155934819a887b6436081a (diff) |
#843: Web interface uses new version file and correcting some errata.
Diffstat (limited to 'admin/WebConsole/index.php')
-rw-r--r-- | admin/WebConsole/index.php | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/admin/WebConsole/index.php b/admin/WebConsole/index.php index f416b7f3..2b522d59 100644 --- a/admin/WebConsole/index.php +++ b/admin/WebConsole/index.php @@ -120,15 +120,20 @@ function PulsaEnter(oEvento){ </form> </div> <div class="pie"> +<span><a href="https://opengnsys.es/"> <?php -// Añadir versión y URL al proyecto. -$versionfile="../doc/VERSION.txt"; -if (file_exists ($versionfile)) { - echo '<span><a href="https://opengnsys.es/">'; - include ($versionfile); - echo '</a></span>'; +// Añadir versión en el enlace a la URL del proyecto. +$data = json_decode(@file_get_contents(__DIR__ . '/../doc/VERSION.json')); +if (empty($data->project)) { + echo "OpenGnsys"; +} else { + echo @$data->project.' ' + .@$data->version.' ' + .(isset($data->codename) ? '('.$data->codename.') ' : '') + .@$data->release; } ?> +</a></span> <form action="#" name="lang" method="post"> <?php echo HTMLSELECT($cmd,0,'idiomas',$idi,'nemonico','descripcion',80); ?> <button type="submit"><?php echo $TbMsg["ACCESS_CHOOSE"]; ?></button> |