support for .jp whois english output

This commit is contained in:
sparc 2010-08-23 11:28:46 +00:00
parent 6a3bc5d74f
commit 3a7c138cae
3 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2010/08/23
- improved extra whois parameters for better
support of .jp whois
2010/08/10
- joined common whois field list
- some minor fixes

View file

@ -242,7 +242,7 @@ class Whois extends WhoisClient
// Special parameters ?
if (isset($this->WHOIS_PARAM[$server]))
$this->Query['server'] = $this->Query['server'].'?'.$this->WHOIS_PARAM[$server].$domain;
$this->Query['server'] = $this->Query['server'].'?'.str_replace('$',$domain,$this->WHOIS_PARAM[$server]);
return $this->GetData('',$this->deep_whois);
}

View file

@ -54,9 +54,10 @@ $this->NON_UTF8 = array(
/* If whois Server needs any parameters, enter it here */
$this->WHOIS_PARAM = array(
'com.whois-servers.net' => 'domain =',
'net.whois-servers.net' => 'domain =',
'de.whois-servers.net' => '-T dn,ace '
'com.whois-servers.net' => 'domain =$',
'net.whois-servers.net' => 'domain =$',
'de.whois-servers.net' => '-T dn,ace $',
'jp.whois-servers.net' => '$/e'
);
/* TLD's that have special whois servers or that can only be reached via HTTP */