bug fixed
This commit is contained in:
parent
5038b24218
commit
0bdab85cf6
3 changed files with 36 additions and 23 deletions
10
example.php
10
example.php
|
@ -46,7 +46,7 @@ if (isSet($_GET['query']))
|
|||
$whois = new Whois();
|
||||
|
||||
// Set to true if you want to allow proxy requests
|
||||
$allowproxy= false;
|
||||
$allowproxy = false;
|
||||
|
||||
// uncomment the following line to get faster but less acurate results
|
||||
// $whois->deep_whois = false;
|
||||
|
@ -101,11 +101,13 @@ if (isSet($_GET['query']))
|
|||
{
|
||||
$winfo = implode($whois->Query['errstr'],"\n<br></br>");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$resout = str_replace('{result}', $winfo, $resout);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
$resout = '';
|
||||
|
||||
echo str_replace('{results}', $resout, $out);
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
|
@ -48,24 +48,24 @@ class de_handler
|
|||
{
|
||||
|
||||
$items = array(
|
||||
'domain.name' => 'Domain:',
|
||||
'domain.nserver' => 'Nserver',
|
||||
'domain.status' => 'Status:',
|
||||
'domain.changed' => 'Changed:',
|
||||
'domain.desc.' => 'Descr:',
|
||||
'owner' => '[Holder]',
|
||||
'admin' => '[Admin-C]',
|
||||
'tech' => '[Tech-C]',
|
||||
'zone' => '[Zone-C]'
|
||||
'domain.name' => 'Domain:',
|
||||
'domain.nserver.' => 'Nserver:',
|
||||
'domain.status' => 'Status:',
|
||||
'domain.changed' => 'Changed:',
|
||||
'domain.desc.' => 'Descr:',
|
||||
'owner' => '[Holder]',
|
||||
'admin' => '[Admin-C]',
|
||||
'tech' => '[Tech-C]',
|
||||
'zone' => '[Zone-C]'
|
||||
);
|
||||
|
||||
$extra = array(
|
||||
'address:' => 'address.street',
|
||||
'city:' => 'address.city',
|
||||
'pcode:' => 'address.pcode',
|
||||
'country:' => 'address.country',
|
||||
'name:' => 'name',
|
||||
'remarks:' => ''
|
||||
'address:' => 'address.street',
|
||||
'city:' => 'address.city',
|
||||
'pcode:' => 'address.pcode',
|
||||
'country:' => 'address.country',
|
||||
'name:' => 'name',
|
||||
'remarks:' => ''
|
||||
);
|
||||
|
||||
$r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
|
||||
|
|
|
@ -58,8 +58,13 @@ class pl_handler
|
|||
$r = get_blocks($data_str['rawdata'], $items);
|
||||
|
||||
if (isset($r['tech']))
|
||||
$r['tech'] = generic_parser_b($r['tech'], $fields, 'ymd', false);
|
||||
|
||||
{
|
||||
if ($r['tech'] == 'data restricted')
|
||||
unset($r['tech']);
|
||||
else
|
||||
$r['tech'] = generic_parser_b($r['tech'], $fields, 'ymd', false);
|
||||
}
|
||||
|
||||
if (isset($r['owner']))
|
||||
{
|
||||
if ($r['owner'] == 'data restricted')
|
||||
|
@ -69,8 +74,12 @@ class pl_handler
|
|||
|
||||
$r['domain'] = generic_parser_b($r['domain'], $fields, 'ymd', false);
|
||||
|
||||
unset($r['domain']['handle']);
|
||||
|
||||
if (isset($r['domain']['handle']))
|
||||
{
|
||||
$r['owner']['handle'] = $r['domain']['handle'];
|
||||
unset($r['domain']['handle']);
|
||||
}
|
||||
|
||||
// Get name servers
|
||||
$found = false;
|
||||
$ns = array();
|
||||
|
@ -93,6 +102,8 @@ class pl_handler
|
|||
}
|
||||
|
||||
$r['domain']['nserver'] = $ns;
|
||||
$r['registered'] = 'yes';
|
||||
|
||||
$r = array ( 'regrinfo' => $r );
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue