summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}