mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Small addition to r3915, add comments about RFC
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9317 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0da1f53540
commit
6c38ee10bd
1 changed files with 3 additions and 0 deletions
|
@ -1139,6 +1139,8 @@ function user_unban($mode, $ban)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whois facility
|
* Whois facility
|
||||||
|
*
|
||||||
|
* @link http://tools.ietf.org/html/rfc3912 RFC3912: WHOIS Protocol Specification
|
||||||
*/
|
*/
|
||||||
function user_ipwhois($ip)
|
function user_ipwhois($ip)
|
||||||
{
|
{
|
||||||
|
@ -1153,6 +1155,7 @@ function user_ipwhois($ip)
|
||||||
|
|
||||||
if (($fsk = @fsockopen('whois.arin.net', 43)))
|
if (($fsk = @fsockopen('whois.arin.net', 43)))
|
||||||
{
|
{
|
||||||
|
// CRLF as per RFC3912
|
||||||
fputs($fsk, "$ip\r\n");
|
fputs($fsk, "$ip\r\n");
|
||||||
while (!feof($fsk))
|
while (!feof($fsk))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue