fixed .cl handler

This commit is contained in:
sparc 2011-06-26 09:05:40 +00:00
parent 6855e441c7
commit f257721c21
3 changed files with 7 additions and 28 deletions

View file

@ -3,6 +3,7 @@
- fixed .org.za handler
- added handler for .cl
- corrected utf-8 support for .hu
- fixed. pl handler
2011/06/24
- fixed .be handler (bug #3307363)

View file

@ -45,9 +45,7 @@ class cl_handler
'organización:' => 'organization',
'nombre :' => 'name');
$reg = easy_parser($data_str['rawdata'], $items, 'd-m-y', $trans);
$r['regrinfo'] = $reg;
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'd-m-y', $trans);
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.cl',
'registrar' => 'NIC Chile'

View file

@ -35,34 +35,14 @@ class pl_handler
function parse($data_str, $query)
{
$items = array(
'created:' => 'domain.created',
'last modified:' => 'domain.changed',
'REGISTRAR:' => 'domain.sponsor',
"registrant's handle:" => 'owner.handle',
'domain.created' => 'created:',
'domain.changed' => 'last modified:',
'domain.sponsor' => 'REGISTRAR:',
'#' => 'WHOIS displays data'
);
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
if ($r['regrinfo']['registered'] == 'yes')
{
$found = false;
foreach($data_str['rawdata'] as $line)
{
if ($found)
{
if (strpos($line,':')) break;
$r['regrinfo']['domain']['nserver'][] = $line;
}
if (strpos($line,'nameservers:') !== false)
{
$found = true;
$r['regrinfo']['domain']['nserver'][] = substr($line,13);
}
}
}
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd');
$r['regyinfo'] = array(
'referrer' => 'http://www.dns.pl/english/index.html',