From 846006e1e2331a6187e3f476b2168fbf5c902f76 Mon Sep 17 00:00:00 2001 From: David Saez Date: Thu, 3 May 2018 19:55:22 +0200 Subject: [PATCH] Fixed & updated --- src/whois.ie.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/whois.ie.php b/src/whois.ie.php index 936c81e..e5be69b 100644 --- a/src/whois.ie.php +++ b/src/whois.ie.php @@ -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; } } -?>