From bec871f4057bbc73ce4f873e8b9f8b899268bdaa Mon Sep 17 00:00:00 2001 From: sparc Date: Sun, 26 Jun 2011 07:59:10 +0000 Subject: [PATCH] added handler for gandi --- Changes.md | 3 +++ src/whois.gtld.gandi.php | 56 ++++++++++++++++++++++++++++++++++++++++ src/whois.servers.php | 1 + 3 files changed, 60 insertions(+) create mode 100644 src/whois.gtld.gandi.php diff --git a/Changes.md b/Changes.md index 60a585e..16c6981 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,6 @@ +2011/06/26 + - added handler for gandi (request #3155752) + 2011/06/24 - fixed .be handler (bug #3307363) - fixed ip.lacnic handler array handling diff --git a/src/whois.gtld.gandi.php b/src/whois.gtld.gandi.php new file mode 100644 index 0000000..16cd1d4 --- /dev/null +++ b/src/whois.gtld.gandi.php @@ -0,0 +1,56 @@ + 'owner-c', + 'admin' => 'admin-c', + 'tech' => 'tech-c', + 'billing' => 'bill-c' + ); + + $trans = array( + 'nic-hdl:' => 'handle', + 'person:' => 'name', + 'zipcode:' => 'address.pcode', + 'city:' => 'address.city', + 'lastupdated:' => 'changed', + 'owner-name:' => '' + ); + + return easy_parser($data_str, $items, 'dmy', $trans); + } + } +?> diff --git a/src/whois.servers.php b/src/whois.servers.php index 9fc364e..de5c81c 100644 --- a/src/whois.servers.php +++ b/src/whois.servers.php @@ -89,6 +89,7 @@ $this->WHOIS_SPECIAL = array( 'mobi' => 'whois.dotmobiregistry.net', 'ms' => 'http://www.adamsnames.tc/whois/?domain={domain}.ms', 'mt' => 'http://www.um.edu.mt/cgi-bin/nic/whois?domain={domain}.mt', + 'nl' => 'whois.domain-registry.nl', 'ly' => 'whois.nic.ly', 'pe' => 'kero.rcp.net.pe', 'pr' => 'whois.uprr.pr',