summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/menus
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-06-28 11:16:03 +0000
committerramon <ramongomez@us.es>2017-06-28 11:16:03 +0000
commit37d4bbf698cc032f7677695f6a9bf759d621540e (patch)
treeb4163bb159fb4215af41794fd911d52c37d18777 /admin/WebConsole/menus
parentc8a7dd7315bdb7055088bf5a822497b8ebbf6e1c (diff)
#792: Actualizar menús de ejemplo con URL de acceso a menú privado.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5392 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/menus')
-rw-r--r--admin/WebConsole/menus/examplemenu.php (renamed from admin/WebConsole/menus/examplemenu.html)19
-rw-r--r--admin/WebConsole/menus/menuejemplo.php (renamed from admin/WebConsole/menus/menuejemplo.html)18
2 files changed, 33 insertions, 4 deletions
diff --git a/admin/WebConsole/menus/examplemenu.html b/admin/WebConsole/menus/examplemenu.php
index 8ca86f4f..1d530f31 100644
--- a/admin/WebConsole/menus/examplemenu.html
+++ b/admin/WebConsole/menus/examplemenu.php
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
- <title>Init menu OpenGnSys client</title>
+ <title>Init menu for OpenGnsys clients</title>
<style type="text/css">
body { background: #fff; font-size: 0.7em; }
@@ -41,7 +41,12 @@
}
dt { float: left;}
- dd { margin: 1em 20em; }
+ dd { margin: 1em 20em; }
+
+ div.admin {
+ margin: 1em;
+ float: right;
+ }
</style>
</head>
@@ -75,5 +80,15 @@
<dt><a href="command:reboot" title="Reboot" accesskey="6">Reboot.</a></dt>
<dd>Reboot computer.</dd>
</dl>
+
+<?php // Access to private menu.
+if ($_SERVER['HTTP_X_FORWARDED_FOR']){
+ $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
+} else {
+ $ip = $_SERVER['REMOTE_ADDR'];
+}
+?>
+ <div class="admin"><a href="../varios/acceso_operador.php?iph=<?php echo $ip ?>">Admin Menu</a></div>
+
</body>
</html>
diff --git a/admin/WebConsole/menus/menuejemplo.html b/admin/WebConsole/menus/menuejemplo.php
index 57a52a22..199b1b8c 100644
--- a/admin/WebConsole/menus/menuejemplo.html
+++ b/admin/WebConsole/menus/menuejemplo.php
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
- <title>Men&uacute; de inicio de los equipos OpenGnSys</title>
+ <title>Men&uacute; de inicio de los equipos OpenGnsys</title>
<style type="text/css">
body { background: #fff; font-size: 0.7em; }
@@ -41,7 +41,12 @@
}
dt { float: left;}
- dd { margin: 1em 10em 1em 20em; }
+ dd { margin: 1em 10em 1em 20em; }
+
+ div.admin {
+ margin: 1em;
+ float; right;
+ }
</style>
</head>
@@ -78,6 +83,15 @@
<dd>Reiniciar el ordenador.</dd>
</dl>
+<?php // Acceso a menú privado.
+if ($_SERVER['HTTP_X_FORWARDED_FOR']) {
+ $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
+} else {
+ $ip = $_SERVER['REMOTE_ADDR'];
+}
+?>
+ <div class="admin"><a href="../varios/acceso_operador.php?iph=<?php echo $ip ?>">Administraci&oacute;n</a></div>
+
</body>
</html>