source: admin/WebConsole/menus/privatemenu.php

lgromero-new-oglive
Last change on this file was ff1129b, checked in by irina <irinagomez@…>, 8 years ago

#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

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[ff1129b]1<?php   // Access to public menu.
2if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
3    $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
4} else {
5    $ip = $_SERVER['REMOTE_ADDR'];
6}
7?>
8<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
9<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">
10
11<head>
12        <meta http-equiv="content-type" content="text/html;charset=utf-8" />
13        <title>Private menu for OpenGnsys clients</title>
14        <style type="text/css">
15
16        body { background: #fff; font-size: 0.7em; }
17        a:link, a:visited { text-decoration: none; color:#900; font-weight: bold; }
18        a:hover, a:active { color:#d90; }
19
20        h1 {
21                font-size: 1.5em;
22                width: 100%;
23                vertical-align: bottom;
24                color: #555;
25                background: transparent url('images/opengnsys.png')  no-repeat top left;
26                padding: 2em 0 1.5em 12em;
27                margin-bottom: 1em;
28        }
29
30        div.admin {
31                margin-left: 5em;
32                float: left;
33        }
34
35        </style>
36</head>
37
38<body>
39        <h1>Option Menu</h1>
40
41        <div class="admin">
42            <p>Link to return to the public zone</p>
43            <a href="../varios/menucliente.php?iph=<?php echo $ip ?>">Return</a>
44        </div>
45</body>
46</html>
Note: See TracBrowser for help on using the repository browser.