summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/nada.php
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 /admin/WebConsole/nada.php
parent2ed5bb7b2131716e62af62948f54077ca4fb310f (diff)
#858 Random Tips from language file array for nada.php blank space
Diffstat (limited to 'admin/WebConsole/nada.php')
-rw-r--r--admin/WebConsole/nada.php33
1 files changed, 30 insertions, 3 deletions
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 } ?>