some fixes to wsnic.whois
This commit is contained in:
parent
7e63954ed9
commit
0a3d8e1db4
|
@ -1,5 +1,6 @@
|
|||
2003/09/06 David Saez <david@ols.es>
|
||||
- rewrite of cnnic.whois
|
||||
- some fixes to wsnic.whois
|
||||
|
||||
2003/09/06 David Saez <david@ols.es>
|
||||
- Added handlers for .cn and .ws
|
||||
|
|
1
test.txt
1
test.txt
|
@ -15,6 +15,7 @@ nicse nic-se.se
|
|||
nlnic domain-registry.nl
|
||||
nunames nunames.nu
|
||||
uknic olsns.co.uk
|
||||
wsnic samoanic.ws
|
||||
|
||||
// .com/.org/.net
|
||||
|
||||
|
|
|
@ -27,11 +27,12 @@ class wsnic extends Whois {
|
|||
|
||||
if ($val!="") {
|
||||
if ($val=="Name servers:") {
|
||||
$breaker=0;
|
||||
while (list($key, $val)=each($data_str["rawdata"])) {
|
||||
// There's a blank line before the list- hack it out.
|
||||
if (!($value=trim($val))) $breaker++;
|
||||
if($breaker == 2) break;
|
||||
if($value) $r["regrinfo"]["domain"]["nserver"][]=$value;
|
||||
if($value) $r["regrinfo"]["domain"]["nserver"][]=strtok($value,' ');
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue