Fixed & updated

This commit is contained in:
David Saez 2018-05-03 19:55:22 +02:00
parent 7691a8beb9
commit 846006e1e2

View file

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