summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/index.php
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2018-06-14 10:48:39 +0200
committerRamón M. Gómez <ramongomez@us.es>2018-06-14 10:59:34 +0200
commitb60d6b807c580e58f06a337def9a1a83b1f3bcfc (patch)
tree7ee39403eb4f70a9f7120eb8168d6317b339bf1e /admin/WebConsole/index.php
parent5367fb5e61f2e89797bfe7df0e4811a1ff890f08 (diff)
parente0e4c021382f2c8a66402c545229aa8e528750f9 (diff)
#794: Applying new commits from {{{devel}}} branch to {{{pjlink}}} branch.
Diffstat (limited to 'admin/WebConsole/index.php')
-rw-r--r--admin/WebConsole/index.php17
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>