diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-11-05 18:57:09 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-11-05 18:57:09 +0000 |
commit | 744a82a105e399f6f0ec159580d9b3bf21a52bd7 (patch) | |
tree | c474d748edc3ab15ecf48d044477a549639bd28d /phpBB/mcp.php | |
parent | 47c00e145fa8b77306b1cd68e7b7614762f51f6f (diff) | |
download | forums-744a82a105e399f6f0ec159580d9b3bf21a52bd7.tar forums-744a82a105e399f6f0ec159580d9b3bf21a52bd7.tar.gz forums-744a82a105e399f6f0ec159580d9b3bf21a52bd7.tar.bz2 forums-744a82a105e399f6f0ec159580d9b3bf21a52bd7.tar.xz forums-744a82a105e399f6f0ec159580d9b3bf21a52bd7.zip |
Move ipwhois to functions_admin
git-svn-id: file:///svn/phpbb/trunk@4648 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r-- | phpBB/mcp.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php index fb3046518c..38d3258b1b 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -585,53 +585,6 @@ class mcp extends module } } } - -function ipwhois($ip) -{ - $ipwhois = ''; - - $match = array( - '#RIPE\.NET#is' => 'whois.ripe.net', - '#whois\.apnic\.net#is' => 'whois.apnic.net', - '#nic\.ad\.jp#is' => 'whois.nic.ad.jp', - '#whois\.registro\.br#is' => 'whois.registro.br' - ); - - if ($fsk = @fsockopen('whois.arin.net', 43)) - { - @fputs($fsk, "$ip\n"); - while (!feof($fsk)) - { - $ipwhois .= fgets($fsk, 1024); - } - fclose($fsk); - } - else - { - return; - } - - foreach (array_keys($match) as $server) - { - if (preg_match($server, $ipwhois)) - { - $ipwhois = ''; - if (($fsk = fsockopen($match[$server], 43))) - { - @fputs($fsk, "$ip\n"); - while (!feof($fsk)) - { - $ipwhois .= fgets($fsk, 1024); - } - fclose($fsk); - } - break; - } - } - - return $ipwhois; -} -// // FUNCTIONS // --------- |