summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/varios
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2010-10-29 10:59:18 +0000
committerramon <ramongomez@us.es>2010-10-29 10:59:18 +0000
commitbf54d364573b908c7879459efacc15a5f0ef40c7 (patch)
treedc06ea7aa1f5b38ffc41b96338d931b180681ebd /admin/WebConsole/varios
parent85fa51e123a01307c92ad4843528fa02451fbe4a (diff)
La consola web toma correctamente la IP del cliente y envía el menú asociado. Close #241
git-svn-id: https://opengnsys.es/svn/trunk@1329 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/varios')
-rw-r--r--admin/WebConsole/varios/menubrowser.php2
-rw-r--r--admin/WebConsole/varios/menucliente.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/admin/WebConsole/varios/menubrowser.php b/admin/WebConsole/varios/menubrowser.php
index 543b85df..d0165435 100644
--- a/admin/WebConsole/varios/menubrowser.php
+++ b/admin/WebConsole/varios/menubrowser.php
@@ -76,6 +76,8 @@ function tomaIP(){
$ipcliente = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
else
$ipcliente = $HTTP_SERVER_VARS["REMOTE_ADDR"];
+ if (empty ($ipcliente))
+ $ipcliente = $_SERVER["REMOTE_ADDR"];
return($ipcliente);
}
diff --git a/admin/WebConsole/varios/menucliente.php b/admin/WebConsole/varios/menucliente.php
index 0780aa71..41bf0162 100644
--- a/admin/WebConsole/varios/menucliente.php
+++ b/admin/WebConsole/varios/menucliente.php
@@ -219,6 +219,8 @@ function tomaIP(){
$ipcliente = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"];
else
$ipcliente = $HTTP_SERVER_VARS["REMOTE_ADDR"];
+ if (empty ($ipcliente))
+ $ipcliente = $_SERVER["REMOTE_ADDR"];
return($ipcliente);
}