summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/menus
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2017-09-25 12:13:23 +0000
committeririna <irinagomez@us.es>2017-09-25 12:13:23 +0000
commitff1129ba7a0d411f2a3d18caf02ae85d0303313e (patch)
treefbe7450955fbabb75fbca28f59ba3c7681b7c723 /admin/WebConsole/menus
parent3be738918c7333f3f0a982943592ac20e7296422 (diff)
#792 Se crea ejemplo de menú privado conteniendo un enlace para acceder al menú público. Se mejora la accesibilidad de examplemenu.php (gracias a Mario Fernandez).
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5432 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/menus')
-rw-r--r--admin/WebConsole/menus/examplemenu.php24
-rw-r--r--admin/WebConsole/menus/privatemenu.php46
2 files changed, 58 insertions, 12 deletions
diff --git a/admin/WebConsole/menus/examplemenu.php b/admin/WebConsole/menus/examplemenu.php
index 1d530f31..b04b3dd0 100644
--- a/admin/WebConsole/menus/examplemenu.php
+++ b/admin/WebConsole/menus/examplemenu.php
@@ -25,7 +25,7 @@
dl {
background: transparent url('images/xp_peque.png') no-repeat top left;
padding: 0 0 1em 5em;
- margin: 5px 50px;
+ margin: 2em 10em;
}
dl.windows {
@@ -41,7 +41,7 @@
}
dt { float: left;}
- dd { margin: 1em 20em; }
+ dd { margin: 1em 10em 1em 20em; }
div.admin {
margin: 1em;
@@ -56,33 +56,33 @@
<h1>Option Menu</h1>
<dl class="windows">
- <dt><a href="command:bootOs 1 1" title="Init session Windows" accesskey="1">Init session Windows.</a></dt>
+ <dt><a href="command:bootOs 1 1" title="Init session Windows, accesskey: 1" accesskey="1">Init session Windows.</a></dt>
<dd>Normal boot Windows without changes.</dd>
- <dt><a href="commandwithconfirmation:restoreImage REPO windows 1 1" title="Format the disk and install the Windows operating system" accesskey="3">Install Windows.</a></dt>
+ <dt><a href="commandwithconfirmation:restoreImage REPO windows 1 1" title="Format the disk and install the Windows operating system, accesskey: 2" accesskey="2">Install Windows.</a></dt>
<dd>The installation process takes a few minutes.</dd>
</dl>
- <dl class="windows">
- <dt><a href="commandwithconfirmation:/opt/opengnsys/interfaceAdm/RestaurarImagenBasica 1 1 WINXPRD2 10.1.15.3 0000 0" title="Restore Windows Image" accesskey="1">Restore Windows Image.</a></dt>
+ <!-- dl class="windows">
+ <dt><a href="commandwithconfirmation:/opt/opengnsys/interfaceAdm/RestaurarImagenBasica 1 1 WINXPRD2 10.1.15.3 0000 0" title="Restore Windows Image, accesskey: 2" accesskey="2">Restore Windows Image.</a></dt>
<dd>Restore Windows Image using synchronization.</dd>
- </dl>
+ </dl -->
<dl class="linux">
- <dt><a href="command:bootOs 1 2" title="Init session GNU/Linux" accesskey="2">Init session GNU/Linux.</a></dt>
+ <dt><a href="command:bootOs 1 2" title="Init session GNU/Linux, accesskey: 3" accesskey="3">Init session GNU/Linux.</a></dt>
<dd>Normal boot <acronym title="GNU's not Unix">GNU</acronym>/Linux without changes.</dd>
- <dt><a href="commandwithconfirmation:restoreImage REPO linux 1 2" title="Format the disk and install the GNU/Linux operating system GNU/Linux" accesskey="4">Install GNU/Linux.</a></dt>
+ <dt><a href="commandwithconfirmation:restoreImage REPO linux 1 2" title="Format the disk and install the GNU/Linux operating system GNU/Linux, accesskey: 4" accesskey="4">Install GNU/Linux.</a></dt>
<dd>The installation process takes a few minutes.</dd>
</dl>
<dl class="apagar">
- <dt><a href="command:poweroff" title="Power-off" accesskey="5">Power-off.</a></dt>
+ <dt><a href="command:poweroff" title="Power-off, accesskey: 0" accesskey="0">Power-off.</a></dt>
<dd>Power-off computer.</dd>
- <dt><a href="command:reboot" title="Reboot" accesskey="6">Reboot.</a></dt>
+ <dt><a href="command:reboot" title="Reboot, accesskey: 6" accesskey="6">Reboot.</a></dt>
<dd>Reboot computer.</dd>
</dl>
<?php // Access to private menu.
-if ($_SERVER['HTTP_X_FORWARDED_FOR']){
+if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
diff --git a/admin/WebConsole/menus/privatemenu.php b/admin/WebConsole/menus/privatemenu.php
new file mode 100644
index 00000000..268889d9
--- /dev/null
+++ b/admin/WebConsole/menus/privatemenu.php
@@ -0,0 +1,46 @@
+<?php // Access to public menu.
+if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
+ $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
+} else {
+ $ip = $_SERVER['REMOTE_ADDR'];
+}
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
+
+<head>
+ <meta http-equiv="content-type" content="text/html;charset=utf-8" />
+ <title>Private menu for OpenGnsys clients</title>
+ <style type="text/css">
+
+ body { background: #fff; font-size: 0.7em; }
+ a:link, a:visited { text-decoration: none; color:#900; font-weight: bold; }
+ a:hover, a:active { color:#d90; }
+
+ h1 {
+ font-size: 1.5em;
+ width: 100%;
+ vertical-align: bottom;
+ color: #555;
+ background: transparent url('images/opengnsys.png') no-repeat top left;
+ padding: 2em 0 1.5em 12em;
+ margin-bottom: 1em;
+ }
+
+ div.admin {
+ margin-left: 5em;
+ float: left;
+ }
+
+ </style>
+</head>
+
+<body>
+ <h1>Option Menu</h1>
+
+ <div class="admin">
+ <p>Link to return to the public zone</p>
+ <a href="../varios/menucliente.php?iph=<?php echo $ip ?>">Return</a>
+ </div>
+</body>
+</html>