summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2010-06-16 11:33:22 +0000
committeririna <irinagomez@us.es>2010-06-16 11:33:22 +0000
commit4ee9b9f1b1941228e18c591deb824c3bf6843da7 (patch)
tree1481b38f22114c5705717cf030b67a74e11a37dc /admin
parent830817c931e43d7ca102e2ecba847620c56a9c7e (diff)
Modificacion WebConsole: menubrowser y menucliente. Toma bien ip equipos y menu manual
git-svn-id: https://opengnsys.es/svn/trunk@1041 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rw-r--r--admin/WebConsole/varios/menubrowser.php8
-rw-r--r--admin/WebConsole/varios/menucliente.php12
2 files changed, 10 insertions, 10 deletions
diff --git a/admin/WebConsole/varios/menubrowser.php b/admin/WebConsole/varios/menubrowser.php
index bc2c7184..f49ed45b 100644
--- a/admin/WebConsole/varios/menubrowser.php
+++ b/admin/WebConsole/varios/menubrowser.php
@@ -71,11 +71,11 @@ function PulsaEnter(oEvento){
//___________________________________________________________________________________________________
function tomaIP(){
// Se asegura que la pagina se solicita desde la IP que viene
- global $HTTP_SERVER_VARS;
- if ($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"] != "")
- $ipcliente = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
+ global $_SERVER;
+ if ($_SERVER["HTTP_X_FORWARDED_FOR"] != "")
+ $ipcliente = $_SERVER["HTTP_X_FORWARDED_FOR"];
else
- $ipcliente = $HTTP_SERVER_VARS["REMOTE_ADDR"];
+ $ipcliente = $_SERVER["REMOTE_ADDR"];
return($ipcliente);
}
diff --git a/admin/WebConsole/varios/menucliente.php b/admin/WebConsole/varios/menucliente.php
index 43b6370a..83f8f0ab 100644
--- a/admin/WebConsole/varios/menucliente.php
+++ b/admin/WebConsole/varios/menucliente.php
@@ -36,7 +36,7 @@ if(!empty($rsmenu)){
case $ITEMS_PUBLICOS:
if(!empty($rsmenu->campos["htmlmenupub"])){
$urlHtml=$rsmenu->campos["htmlmenupub"];
- if(strtoupper(substr($urlHtml,0,7)!="HTTP://")) $urlHtml="http://".$urlHtml;
+ if(strtoupper(substr($urlHtml,0,7))!="HTTP://") $urlHtml="http://".$urlHtml;
Header('Location: '.$urlHtml); // Url del menu personalizado
}
else{
@@ -49,7 +49,7 @@ if(!empty($rsmenu)){
if(!empty($rsmenu->campos["htmlmenupri"])){
$urlHtml=$rsmenu->campos["htmlmenupri"];
- if(strtoupper(substr($urlHtml,0,7)!="HTTP://")) $urlHtml="http://".$urlHtml;
+ if(strtoupper(substr($urlHtml,0,7))!="HTTP://") $urlHtml="http://".$urlHtml;
Header('Location: '.$urlHtml); // Url del menu personalizado
}
else{
@@ -190,11 +190,11 @@ function GeneraMenu($rs,$tipo,$iph){
//___________________________________________________________________________________________________
function tomaIP(){
// Se asegura que la pagina se solicita desde la IP que viene
- global $HTTP_SERVER_VARS;
- if ($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"] != "")
- $ipcliente = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
+ global $_SERVER;
+ if ($_SERVER["HTTP_X_FORWARDED_FOR"] != "")
+ $ipcliente = $_SERVER["HTTP_X_FORWARDED_FOR"];
else
- $ipcliente = $HTTP_SERVER_VARS["REMOTE_ADDR"];
+ $ipcliente = $_SERVER["REMOTE_ADDR"];
return($ipcliente);
}