some fixes to wsnic.whois

This commit is contained in:
sparc 2003-09-08 18:00:49 +00:00
parent 7e63954ed9
commit 0a3d8e1db4
3 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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;
}