From 6a3bc5d74ffa47d505d44bccb26a141dcc683795 Mon Sep 17 00:00:00 2001 From: sparc Date: Wed, 11 Aug 2010 12:29:52 +0000 Subject: [PATCH] removed .es handler --- Changes.md | 1 + whois.es.php | 96 ---------------------------------------------------- 2 files changed, 1 insertion(+), 96 deletions(-) delete mode 100644 whois.es.php diff --git a/Changes.md b/Changes.md index e6be63f..c7eb360 100644 --- a/Changes.md +++ b/Changes.md @@ -4,6 +4,7 @@ - testsuite can now test specific handlers - fixed iana handler - improved generic_parser_b + - removed .es handler 2010/07/27 - better AS support diff --git a/whois.es.php b/whois.es.php deleted file mode 100644 index 0c35dce..0000000 --- a/whois.es.php +++ /dev/null @@ -1,96 +0,0 @@ - */ -/* esnic.whois 1.1 David Saez Padros */ -/* - * requires https support, please see: - * - * http://www.php.net/manual/en/ref.openssl.php - * http://www.php.net/manual/en/wrappers.php - * - */ - -if (!defined('__ES_HANDLER__')) - define('__ES_HANDLER__', 1); - -require_once('whois.parser.php'); - -class es_handler - { - - function parse($data_str, $query) - { - $items = array( - 'domain.created' => 'Fecha Creación:', - 'domain.expires' => 'Fecha Expiración:', - 'owner.name' => 'Registrante:', - 'admin' => 'Contacto Administrativo:', - 'tech.handle' => 'Contacto Técnico:', - 'billing.handle' => 'Contacto Facturación:', - 'domain.nserver' => 'Servidores DNS:' - ); - - array_shift($data_str['rawdata']); - array_shift($data_str['rawdata']); - - $r['regrinfo'] = get_blocks($data_str['rawdata'], $items); - - if (!isset($r['regrinfo']['domain']['created']) || is_array($r['regrinfo']['domain']['created'])) - { - $r['regrinfo'] = array ( 'registered' => 'no'); - $r['rawdata'] = $data_str['rawdata']; - $r['rawdata'][] = 'Domain not found'; - return $r; - } - - if (isset($r['regrinfo']['admin'])) - { - $handle = $r['regrinfo']['admin']; - $items['admin'].=' '.$r['regrinfo']['admin']; - } - - $r['regrinfo'] = get_blocks($data_str['rawdata'], $items); - - $r['rawdata'] = $data_str['rawdata']; - - $r['regrinfo']['admin'] = get_contact($r['regrinfo']['admin']); - $r['regrinfo']['admin']['handle'] = $handle; - - $r['regrinfo']['registered'] = 'yes'; - - $r['regyinfo'] = array( - 'referrer' => 'http://www.nic.es', - 'registrar' => 'ES-NIC' - ); - - format_dates($r, 'ymd'); - return $r; - } - } - -?>