fixed .cl handler
This commit is contained in:
parent
6855e441c7
commit
f257721c21
3 changed files with 7 additions and 28 deletions
|
@ -3,6 +3,7 @@
|
||||||
- fixed .org.za handler
|
- fixed .org.za handler
|
||||||
- added handler for .cl
|
- added handler for .cl
|
||||||
- corrected utf-8 support for .hu
|
- corrected utf-8 support for .hu
|
||||||
|
- fixed. pl handler
|
||||||
|
|
||||||
2011/06/24
|
2011/06/24
|
||||||
- fixed .be handler (bug #3307363)
|
- fixed .be handler (bug #3307363)
|
||||||
|
|
|
@ -45,9 +45,7 @@ class cl_handler
|
||||||
'organización:' => 'organization',
|
'organización:' => 'organization',
|
||||||
'nombre :' => 'name');
|
'nombre :' => 'name');
|
||||||
|
|
||||||
$reg = easy_parser($data_str['rawdata'], $items, 'd-m-y', $trans);
|
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'd-m-y', $trans);
|
||||||
|
|
||||||
$r['regrinfo'] = $reg;
|
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'http://www.nic.cl',
|
'referrer' => 'http://www.nic.cl',
|
||||||
'registrar' => 'NIC Chile'
|
'registrar' => 'NIC Chile'
|
||||||
|
|
|
@ -35,34 +35,14 @@ class pl_handler
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
'created:' => 'domain.created',
|
'domain.created' => 'created:',
|
||||||
'last modified:' => 'domain.changed',
|
'domain.changed' => 'last modified:',
|
||||||
'REGISTRAR:' => 'domain.sponsor',
|
'domain.sponsor' => 'REGISTRAR:',
|
||||||
"registrant's handle:" => 'owner.handle',
|
'#' => 'WHOIS displays data'
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
|
$r['regrinfo'] = easy_parser($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['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'http://www.dns.pl/english/index.html',
|
'referrer' => 'http://www.dns.pl/english/index.html',
|
||||||
|
|
Loading…
Reference in a new issue