fixes & improvments for rwhois

This commit is contained in:
sparc 2005-08-30 10:14:08 +00:00
parent f710e1e16e
commit d321a6bfcd
4 changed files with 23 additions and 13 deletions

View file

@ -1,5 +1,6 @@
2005/08/30 David Saez <david@ols.es>
- changed generic_whois_b item parameter array
- fixes & improvments for rwhois
2005/08/29 David Saez <david@ols.es>
- changed gif icon for a new png one

View file

@ -228,11 +228,16 @@ class ip_handler extends WhoisClient
//If so, get customer data from rwhois
$this->Query['handler'] = 'rwhois';
$this->Query['file'] = 'whois.rwhois.php';
$rwdata = $this->GetData($query);
$rwres = $this->Process($rwdata);
$result['regrinfo']['customer'] = $rwres;
$result['regyinfo']['rwhois'] = $this->Query['server'];
if (!empty($rwdata))
{
$rwres = $this->Process($rwdata);
$result['regrinfo']['customer'] = $rwres;
$result['regyinfo']['rwhois'] = $this->Query['server'];
}
}
return $result;

View file

@ -37,15 +37,19 @@ class rwhois_handler
{
$items = array(
'network:Organization-Name:' => 'name',
'network:Organization;I:' => 'organization',
'network:Organization-City:' => 'address.city',
'network:Organization-Zip:' => 'address.pcode',
'network:Organization-Country:' => 'address.country',
'network:IP-Network-Block:' => 'inetnum',
'network:Network-Name:' => 'handle',
'network:Created:' => 'created',
'network:Updated:' => 'changed'
'network:Organization-Name:' => 'owner.name',
'network:Organization;I:' => 'owner.organization',
'network:Organization-City:' => 'owner.address.city',
'network:Organization-Zip:' => 'owner.address.pcode',
'network:Organization-Country:' => 'owner.address.country',
'network:IP-Network-Block:' => 'network.inetnum',
'network:IP-Network:' => 'network.inetnum',
'network:Network-Name:' => 'network.name',
'network:ID:' => 'network.handle',
'network:Created:' => 'network.created',
'network:Updated:' => 'network.changed',
'network:Tech-Contact;I:' => 'tech.email',
'network:Admin-Contact;I:' => 'admin.email'
);
$res = generic_parser_b($data_str['rawdata'], $items, 'Ymd', false);

View file

@ -62,7 +62,7 @@ biz neulevel.biz
afrinic 66.18.70.6
apnic 218.165.121.114
arin 207.217.120.54
arain+rwhois 70.84.47.210
arin+rwhois 70.84.47.210
bripw 200.165.206.74
krnic 210.178.148.129
lacnic 200.44.33.31