From e9581d5a64dfc7683f6c49593e30fd7ce0a367a4 Mon Sep 17 00:00:00 2001 From: sparc Date: Sun, 26 Jun 2011 08:46:25 +0000 Subject: [PATCH] added handler for .cl --- Changes.md | 1 + src/whois.cl.php | 58 +++++++++++++++++++++++++++++++++++++++++++ src/whois.servers.php | 3 ++- 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 src/whois.cl.php diff --git a/Changes.md b/Changes.md index d577b7d..cc7906b 100644 --- a/Changes.md +++ b/Changes.md @@ -1,6 +1,7 @@ 2011/06/26 - added handler for gandi (request #3155752) - fixed .org.za handler + - added handler for .cl 2011/06/24 - fixed .be handler (bug #3307363) diff --git a/src/whois.cl.php b/src/whois.cl.php new file mode 100644 index 0000000..5343841 --- /dev/null +++ b/src/whois.cl.php @@ -0,0 +1,58 @@ + '(Administrative Contact)', + 'tech' => 'Contacto Técnico (Technical Contact):', + 'domain.nserver' => 'Servidores de nombre (Domain servers):', + 'domain.changed' => '(Database last updated on):' + ); + + $trans = array( + 'organización:' => 'organization', + 'nombre :' => 'name'); + + $reg = easy_parser($data_str['rawdata'], $items, 'd-m-y', $trans); + + $r['regrinfo'] = $reg; + $r['regyinfo'] = array( + 'referrer' => 'http://www.nic.cl', + 'registrar' => 'NIC Chile' + ); + return $r; + } + } +?> diff --git a/src/whois.servers.php b/src/whois.servers.php index de5c81c..c29ae0d 100644 --- a/src/whois.servers.php +++ b/src/whois.servers.php @@ -48,7 +48,8 @@ $this->NON_UTF8 = array( 'whois.interdomain.net' => 1, 'pt.whois-servers.net' => 1, 'is.whois-servers.net' => 1, - 'whois.lacnic.net' => 1 + 'whois.lacnic.net' => 1, + 'cl.whois-servers.net' => 1 ); /* If whois Server needs any parameters, enter it here */