Fixed & updated
This commit is contained in:
parent
7691a8beb9
commit
846006e1e2
1 changed files with 14 additions and 13 deletions
|
@ -34,31 +34,32 @@ class ie_handler
|
|||
{
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
$translate = array(
|
||||
'nic-hdl' => 'handle',
|
||||
'person' => 'name',
|
||||
'renewal' => 'expires'
|
||||
);
|
||||
$translate = [
|
||||
'nic-hdl' => 'handle',
|
||||
'person' => 'name',
|
||||
'renewal' => 'expires',
|
||||
'registration' => 'created',
|
||||
'ren-status' => 'status'
|
||||
];
|
||||
|
||||
$contacts = array(
|
||||
'admin-c' => 'admin',
|
||||
'tech-c' => 'tech',
|
||||
);
|
||||
$contacts = [
|
||||
'admin-c' => 'admin',
|
||||
'tech-c' => 'tech',
|
||||
];
|
||||
|
||||
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
|
||||
|
||||
if (isset($reg['domain']['descr']))
|
||||
{
|
||||
$reg['owner']['organization'] = $reg['domain']['descr'][0];
|
||||
$reg['owner']['organization'] = $reg['domain']['descr'];
|
||||
unset($reg['domain']['descr']);
|
||||
}
|
||||
|
||||
$r['regrinfo'] = $reg;
|
||||
$r['regyinfo'] = array(
|
||||
$r['regyinfo'] = [
|
||||
'referrer' => 'http://www.domainregistry.ie',
|
||||
'registrar' => 'IE Domain Registry'
|
||||
);
|
||||
];
|
||||
return $r;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue