fixed .ae whois server (bug #3354286)

This commit is contained in:
sparc 2011-07-08 16:44:05 +00:00
parent 05a184769d
commit 0e48e3c78d
3 changed files with 14 additions and 34 deletions

View file

@ -1,6 +1,7 @@
2011/08/07
- fixes for arin (bug #3339783)
- fixed .nl handler (bug #3314404)
- fixed .ae whois server (bug #3354286)
2011/06/26
- added handler for gandi (request #3155752)

View file

@ -35,48 +35,27 @@ require_once('whois.parser.php');
class ae_handler
{
function parse($data_str, $query)
{
$items = array(
'Domain Name:' => 'domain.name',
'Registrar Name:' => 'domain.sponsor',
'Status:' => 'domain.status',
'Registrant Contact ID:' => 'owner.handle',
'Registrant Contact Name:' => 'owner.name',
'Tech Contact Name:' => 'tech.name',
'Tech Contact ID:' => 'tech.handle',
'Name Server:' => 'domain.nserver.'
);
$translate = array(
'fax-no' => 'fax',
'e-mail' => 'email',
'nic-hdl' => 'handle',
'person' => 'name'
);
$contacts = array(
'owner-c' => 'owner',
'admin-c' => 'admin',
'tech-c' => 'tech',
'billing-c' => 'billing',
'zone-c' => 'zone'
);
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.ae',
'registrar' => 'UAENIC'
);
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
if (isset($reg['domain']['remarks']))
unset($reg['domain']['remarks']);
if (isset($reg['domain']['descr']))
{
$reg['owner'] = get_contact($reg['domain']['descr']);
unset($reg['domain']['descr']);
}
if (!empty($reg['domain']['blacklisted']))
{
$reg['registered'] = 'unknown';
}
$r['regrinfo'] = $reg;
return ($r);
return $r;
}
}
?>

View file

@ -68,7 +68,7 @@ $this->WHOIS_PARAM = array(
$this->WHOIS_SPECIAL = array(
'ad' => '',
'ae' => 'whois.nic.ae',
'ae' => 'whois.aeda.net.ae',
'af' => 'whois.nic.af',
'ai' => 'http://whois.offshore.ai/cgi-bin/whois.pl?domain-name={domain}.ai',
'al' => '',