summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredy <aluque@soleta.eu>2018-07-11 11:20:53 +0200
committerFredy <aluque@soleta.eu>2018-07-11 11:20:53 +0200
commite1b48a83731c4877cec2cf9528c84e4b44355e87 (patch)
tree6c6456363c068a1f93289047dc4e58dcda8c7168
parent2ed5bb7b2131716e62af62948f54077ca4fb310f (diff)
#858 Random Tips from language file array for nada.php blank space
-rw-r--r--admin/WebConsole/idiomas/php/esp/nada_esp.php13
-rw-r--r--admin/WebConsole/nada.php33
2 files changed, 42 insertions, 4 deletions
diff --git a/admin/WebConsole/idiomas/php/esp/nada_esp.php b/admin/WebConsole/idiomas/php/esp/nada_esp.php
index 24ffedbe..0822b100 100644
--- a/admin/WebConsole/idiomas/php/esp/nada_esp.php
+++ b/admin/WebConsole/idiomas/php/esp/nada_esp.php
@@ -13,4 +13,15 @@
$TbMsg[5]="Navegador";
$TbMsg[6]="Versi&oacute;n Navegador";
-?> \ No newline at end of file
+//________________________________________________________________________________________________________
+//
+// Tip of the Day!
+//________________________________________________________________________________________________________
+
+ $Tip=array();
+ $Tip[0]="Las primeras jornadas de OpenGnsys en verano de 2018 en M&aacute;laga dieron nombre a la versi&oacute;n Espeto";
+ $Tip[1]="Tip1";
+ $Tip[2]="Tip2";
+ $Tip[3]="Tip3";
+
+?>
diff --git a/admin/WebConsole/nada.php b/admin/WebConsole/nada.php
index 9e0aa255..9cd4d028 100644
--- a/admin/WebConsole/nada.php
+++ b/admin/WebConsole/nada.php
@@ -221,19 +221,46 @@ if (empty($data->project)) {
</body>
</html>
-<?php } else { ?>
+<?php }
+else {
+$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>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./estilos.css">
</head>
<body>
+&nbsp;
+&nbsp;
+<div class="cabeceras">
+ <div align="center" > Tip of the Day! </div>
+ &nbsp;
+ &nbsp;
-"Here we will show our content"
+<div align="center" class="sobrecabeceras"> ¿Sabías que...?</div>
+ &nbsp;
+ &nbsp;
+<div align="center" class="subcabeceras"><?php echo $Tip[array_rand($Tip)];?></div>
+ <div>
+ &nbsp;
+ &nbsp;
+ <div class="subcabeceras">Server IP: <?php echo $_SESSION['ipdevice']; ?> </div>
+ <div class="subcabeceras">Sistema : <?php echo $tipodevice; ?> </div>
+ <div class="subcabeceras">Navegador: <?php echo $nav; ?> v.<?php echo $vernav; ?> </div>
+ </div>
+ &nbsp;
+ &nbsp;
+</div>
</body>
</html>
-
<?php } ?>