diff options
| author | cassio <cassiopc@gmail.com> | 2014-08-15 10:48:55 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2014-08-15 10:48:55 +0000 |
| commit | a36325e95bfd75af9c37b9e0eac6dcf1028a6f61 (patch) | |
| tree | 7e71e933b073757c88259604e89676dd4941a873 /src | |
| parent | 212a5fa19edc8ff78377e5459d76eff0b0599f54 (diff) | |
| download | boca-a36325e95bfd75af9c37b9e0eac6dcf1028a6f61.tar.gz boca-a36325e95bfd75af9c37b9e0eac6dcf1028a6f61.zip | |
remove line that finds hostname from IP
Diffstat (limited to 'src')
| -rwxr-xr-x | src/globals.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/globals.php b/src/globals.php index d4e5319..e65faa6 100755 --- a/src/globals.php +++ b/src/globals.php @@ -175,10 +175,13 @@ function getIPHost() { $s=''; for($ipn=0;$ipn<count($ips);$ipn++) { $ip = $ips[$ipn]; - $host = @gethostbyaddr($ip); - if ($host != $ip && $host != "") - $s .= $ip . "(" . $host . ") "; - else +//next lines where suggested to be removed by +//Mario Sanchez (Ing. de Sistemas y Computacion, Universidad de los Andes, Bogota, Colombia) +//because they are very slow to run depending on the network +// $host = @gethostbyaddr($ip); +// if ($host != $ip && $host != "") +// $s .= $ip . "(" . $host . ") "; +// else $s .= $ip . ' '; } return $s; |