summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/principal/acercade.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/principal/acercade.php
parent9815cac93139ec0a4a155934819a887b6436081a (diff)
#843: Web interface uses new version file and correcting some errata.
Diffstat (limited to 'admin/WebConsole/principal/acercade.php')
-rw-r--r--admin/WebConsole/principal/acercade.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/admin/WebConsole/principal/acercade.php b/admin/WebConsole/principal/acercade.php
index 2981ce0e..f95e07c1 100644
--- a/admin/WebConsole/principal/acercade.php
+++ b/admin/WebConsole/principal/acercade.php
@@ -24,10 +24,15 @@ include_once("../idiomas/php/".$idioma."/acercade_".$idioma.".php");
<p>
<?php
// Añadir versión.
-$versionfile="../../doc/VERSION.txt";
-if (file_exists ($versionfile))
- include ($versionfile);
-
+$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) ? '(<a href="'.@$data->definition.'" target="_blank">'.$data->codename.'</a>) ' : '')
+ .@$data->release;
+}
?>
</p>
<?php
@@ -129,8 +134,9 @@ fclose($crearficheroinicio);
<p><?php
if (file_exists ($changelogfile)){
system("cp ../../doc/$buschangelog ../api");
- echo "<strong><a href='../api/$buschangelog' target='_blank'>".$TbMsg["CHANGE"]."</a></strong>";
- include ($versionfile);}
+ echo "<strong><a href='../api/$buschangelog' target='_blank'>".$TbMsg["CHANGE"]."</a></strong>"
+ .@$data->project.' '.@$data->version.' '.(isset($data->codename)?'('.$data->codename.')':'');
+ }
?></p>
<p><?php echo "<strong><a href='$ficheroinicio' target='_blank'>".$TbMsg["MANUAL"]."</a></strong>";?></p>