fixes & improvments for rwhois
This commit is contained in:
parent
f710e1e16e
commit
d321a6bfcd
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue