summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/principal/acercade.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/principal/acercade.php
parent5367fb5e61f2e89797bfe7df0e4811a1ff890f08 (diff)
parente0e4c021382f2c8a66402c545229aa8e528750f9 (diff)
#794: Applying new commits from {{{devel}}} branch to {{{pjlink}}} branch.
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>