enabled again .es handler
This commit is contained in:
parent
17e142c1b8
commit
7a07f5e8cc
|
@ -1,3 +1,6 @@
|
|||
2006/07/25 David Saez <david@ols.es>
|
||||
- enabled again .es handler
|
||||
|
||||
2006/06/23 David Saez <david@ols.es>
|
||||
- fixed warning in whois.ip.afrinic
|
||||
- added handler for .nz
|
||||
|
|
|
@ -271,9 +271,11 @@ class WhoisClient {
|
|||
$output = strip_tags($output);
|
||||
|
||||
//$output = html_entity_decode($output); needs 4.3.0
|
||||
/*
|
||||
$trans_tbl = get_html_translation_table (HTML_ENTITIES);
|
||||
$trans_tbl = array_flip ($trans_tbl);
|
||||
$output = strtr($output, $trans_tbl);
|
||||
*/
|
||||
|
||||
$output = explode("\n",$output);
|
||||
|
||||
|
|
|
@ -93,35 +93,35 @@ $this->WHOIS_PARAM = array(
|
|||
|
||||
$this->WHOIS_SPECIAL = array(
|
||||
'ad' => '',
|
||||
'ae' => 'http://www.nic.ae/english/whois/display.jsp?domain={domain}.{tld}&queryType=domain&check=on',
|
||||
'ae' => 'http://www.nic.ae/english/whois/display.jsp?domain={domain}.ae&queryType=domain&check=on',
|
||||
'af' => 'whois.nic.af',
|
||||
'ai' => 'http://whois.offshore.ai/cgi-bin/whois.pl?domain-name={domain}.{tld}',
|
||||
'ai' => 'http://whois.offshore.ai/cgi-bin/whois.pl?domain-name={domain}.ai',
|
||||
'al' => '',
|
||||
'az' => '',
|
||||
'ba' => '',
|
||||
'bb' => 'http://domains.org.bb/regsearch/getdetails.cfm?DND={domain}.{tld}',
|
||||
'bg' => 'http://www.register.bg/bg-nic/displaydomain.pl?domain={domain}.{tld}&search=exist',
|
||||
'bb' => 'http://domains.org.bb/regsearch/getdetails.cfm?DND={domain}.bb',
|
||||
'bg' => 'http://www.register.bg/bg-nic/displaydomain.pl?domain={domain}.bg&search=exist',
|
||||
'bi' => 'whois.nic.bi',
|
||||
'bj' => 'whois.nic.bj',
|
||||
'by' => '',
|
||||
'co.za' => 'http://co.za/cgi-bin/whois.sh?Domain={domain}.{tld}',
|
||||
'co.za' => 'http://co.za/cgi-bin/whois.sh?Domain={domain}.co.za',
|
||||
'cy' => '',
|
||||
'es' => '',
|
||||
'es' => 'http://www.neodigit.es/dominios/whois.php?dom={domain}.es',
|
||||
'fm' => 'http://www.dot.fm/query_whois.cfm?domain={domain}&tld=fm',
|
||||
'gs' => 'http://www.adamsnames.tc/whois/?domain={domain}.{tld}',
|
||||
'gs' => 'http://www.adamsnames.tc/whois/?domain={domain}.gs',
|
||||
'in' => 'whois.ncst.ernet.in',
|
||||
'mobi' => 'whois.dotmobiregistry.net',
|
||||
'ms' => 'http://www.adamsnames.tc/whois/?domain={domain}.{tld}',
|
||||
'mt' => 'http://www.um.edu.mt/cgi-bin/nic/whois?domain={domain}.{tld}',
|
||||
'ms' => 'http://www.adamsnames.tc/whois/?domain={domain}.ms',
|
||||
'mt' => 'http://www.um.edu.mt/cgi-bin/nic/whois?domain={domain}.mt',
|
||||
'net.au' => 'whois.aunic.net',
|
||||
'pe' => 'http://nic.pe/detpublic.php?decid=B&ndom={domain}.{tld}',
|
||||
'pe' => 'http://nic.pe/detpublic.php?decid=B&ndom={domain}.pe',
|
||||
'pr' => 'whois.uprr.pr',
|
||||
'pro' => 'whois.registry.pro',
|
||||
'sc' => 'whois2.afilias-grs.net',
|
||||
'tc' => 'http://www.adamsnames.tc/whois/?domain={domain}.{tld}',
|
||||
'tf' => 'http://www.adamsnames.tc/whois/?domain={domain}.{tld}',
|
||||
'travel' => 'http://www.whois.travel/whois.cgi?TLD={tld}&dn={domain}&TYPE=DOMAIN',
|
||||
'vg' => 'http://www.adamsnames.tc/whois/?domain={domain}.{tld}',
|
||||
'tc' => 'http://www.adamsnames.tc/whois/?domain={domain}.tc',
|
||||
'tf' => 'http://www.adamsnames.tc/whois/?domain={domain}.tf',
|
||||
'travel' => 'http://www.whois.travel/whois.cgi?TLD=travel&dn={domain}&TYPE=DOMAIN',
|
||||
'vg' => 'http://www.adamsnames.tc/whois/?domain={domain}.vg',
|
||||
'za.net' => 'whois.za.net',
|
||||
'za.org' => 'whois.za.net'
|
||||
);
|
||||
|
|
59
whois.es.php
59
whois.es.php
|
@ -44,63 +44,42 @@ class es_handler
|
|||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
{
|
||||
$items = array(
|
||||
'domain.name' => 'Dominio:',
|
||||
'domain.created' => 'Fecha de registro:',
|
||||
'domain.expires' => 'Fecha de caducidad:',
|
||||
'domain.nserver.0' => 'DNS primaria:',
|
||||
'domain.nserver.1' => 'DNS secundaria:',
|
||||
'owner.name' => 'Registrante:',
|
||||
'admin' => 'Contacto administrativo:',
|
||||
'billing' => 'Contacto de cobro:',
|
||||
'tech' => 'Contacto técnico:'
|
||||
'domain.created' => 'Fecha de Alta:',
|
||||
'domain.expires' => 'Fecha de Caducidad:',
|
||||
'owner.name' => 'Titular:',
|
||||
'admin' => 'Contacto Administrativo:',
|
||||
'tech' => 'Contacto Técnico:',
|
||||
'domain.nserver' => 'Servidores DNS:'
|
||||
);
|
||||
|
||||
$extra = array(
|
||||
'e.:' => 'email',
|
||||
't.:' => 'phone',
|
||||
'f.:' => 'fax'
|
||||
'nombre:' => 'name',
|
||||
'organización:' => 'organization',
|
||||
'dirección:' => 'address.street',
|
||||
'población:' => 'address.city',
|
||||
'código Postal:' => 'address.pcode',
|
||||
'país:' => 'address.country'
|
||||
);
|
||||
|
||||
$rawdata = array();
|
||||
$data_ok = false;
|
||||
$final = false;
|
||||
array_shift($data_str['rawdata']);
|
||||
array_shift($data_str['rawdata']);
|
||||
|
||||
while (list($key, $val) = each($data_str['rawdata']))
|
||||
{
|
||||
if (substr($val,0,9)=='Dominio: ')
|
||||
$data_ok = true;
|
||||
else
|
||||
if (!$data_ok) continue;
|
||||
|
||||
if (substr($val,0,4)=='DNS ') $final = true;
|
||||
|
||||
if ($val=='' && $final) break;
|
||||
|
||||
$rawdata[] = $val;
|
||||
}
|
||||
|
||||
$r['regrinfo'] = get_blocks($rawdata, $items);
|
||||
$r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
|
||||
|
||||
if (isset($r['regrinfo']['admin'])) $items['admin'].=' '.$r['regrinfo']['admin'];
|
||||
if (isset($r['regrinfo']['billing'])) $items['billing'].=' '.$r['regrinfo']['billing'];
|
||||
if (isset($r['regrinfo']['tech'])) $items['tech'].=' '.$r['regrinfo']['tech'];
|
||||
|
||||
$r['regrinfo'] = get_blocks($rawdata, $items);
|
||||
$r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
|
||||
|
||||
$r['rawdata'] = $rawdata;
|
||||
$r['rawdata'] = $data_str['rawdata'];
|
||||
|
||||
if (isset($r['regrinfo']['domain']['name']))
|
||||
if (isset($r['regrinfo']['domain']['created']))
|
||||
{
|
||||
$r['regrinfo']['admin'] = get_contact($r['regrinfo']['admin'], $extra);
|
||||
$r['regrinfo']['billing'] = get_contact($r['regrinfo']['billing'], $extra);
|
||||
$r['regrinfo']['tech'] = get_contact($r['regrinfo']['tech'], $extra);
|
||||
$r['regrinfo']['registered'] = 'yes';
|
||||
|
||||
if (is_array($r['regrinfo']['domain']['nserver'][0]))
|
||||
unset($r['regrinfo']['domain']['nserver'][0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue