Fixed & updated
This commit is contained in:
parent
8c6a186867
commit
7691a8beb9
|
@ -34,34 +34,35 @@ class be_handler
|
||||||
{
|
{
|
||||||
function parse($data, $query)
|
function parse($data, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = [
|
||||||
'domain.name' => 'Domain:',
|
'domain.name' => 'Domain:',
|
||||||
'domain.status' => 'Status:',
|
'domain.status' => 'Status:',
|
||||||
'domain.nserver' => 'Nameservers:',
|
'domain.nserver' => 'Nameservers:',
|
||||||
'domain.created' => 'Registered:',
|
'domain.created' => 'Registered:',
|
||||||
'owner' => 'Licensee:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Onsite Contacts:',
|
'tech' => 'Registrar Technical Contacts:',
|
||||||
'tech' => 'Registrar Technical Contacts:',
|
'registrar' => 'Registrar:',
|
||||||
'agent' => 'Registrar:',
|
//'agent.name' => 'Name:',
|
||||||
'agent.uri' => 'Website:'
|
'agent.uri' => 'Website:'
|
||||||
);
|
];
|
||||||
|
|
||||||
$trans = array(
|
$trans = [
|
||||||
'company name2:' => ''
|
'company name2:' => ''
|
||||||
);
|
];
|
||||||
|
|
||||||
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
|
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
|
||||||
|
|
||||||
if ($r['regrinfo']['domain']['status'] == 'REGISTERED')
|
if ($r['regrinfo']['domain']['status'] == 'NOT AVAILABLE')
|
||||||
{
|
{
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
$r['regrinfo'] = get_contacts($r['regrinfo'],$trans);
|
$r['regrinfo'] = get_contacts($r['regrinfo'], $trans);
|
||||||
|
|
||||||
if (isset($r['regrinfo']['agent']))
|
if (isset($r['regrinfo']['registrar']))
|
||||||
{
|
{
|
||||||
$sponsor = get_contact($r['regrinfo']['agent'],$trans);
|
$sponsor = get_contact($r['regrinfo']['registrar'], $trans);
|
||||||
|
$r['regrinfo']['domain']['sponsor'] = array_merge($sponsor, $r['regrinfo']['agent']);
|
||||||
|
unset($r['regrinfo']['registrar']);
|
||||||
unset($r['regrinfo']['agent']);
|
unset($r['regrinfo']['agent']);
|
||||||
$r['regrinfo']['domain']['sponsor'] = $sponsor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = format_dates($r, '-mdy');
|
$r = format_dates($r, '-mdy');
|
||||||
|
@ -74,4 +75,3 @@ class be_handler
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
|
@ -34,21 +34,22 @@ class cn_handler
|
||||||
{
|
{
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = [
|
||||||
'Domain Name:' => 'domain.name',
|
'Domain Name:' => 'domain.name',
|
||||||
'Domain Status:' => 'domain.status.',
|
'Domain Status:' => 'domain.status.',
|
||||||
|
'DNSSEC:' => 'domain.dnssec',
|
||||||
'ROID:' => 'domain.handle',
|
'ROID:' => 'domain.handle',
|
||||||
'Name Server:' => 'domain.nserver.',
|
'Name Server:' => 'domain.nserver.',
|
||||||
'Registration Date:' => 'domain.created',
|
'Registration Time:' => 'domain.created',
|
||||||
'Expiration Date:' => 'domain.expires',
|
'Expiration Time:' => 'domain.expires',
|
||||||
'Sponsoring Registrar:' => 'domain.sponsor',
|
'Sponsoring Registrar:' => 'domain.sponsor',
|
||||||
'Registrant Name:' => 'owner.name',
|
'Registrant:' => 'owner.name',
|
||||||
'Registrant Organization:' => 'owner.organization',
|
'Registrant Organization:' => 'owner.organization',
|
||||||
'Registrant Address:' => 'owner.address.address',
|
'Registrant Address:' => 'owner.address.address',
|
||||||
'Registrant Postal Code:' => 'owner.address.pcode',
|
'Registrant Postal Code:' => 'owner.address.pcode',
|
||||||
'Registrant City:' => 'owner.address.city',
|
'Registrant City:' => 'owner.address.city',
|
||||||
'Registrant Country Code:' => 'owner.address.country',
|
'Registrant Country Code:' => 'owner.address.country',
|
||||||
'Registrant Email:' => 'owner.email',
|
'Registrant Contact Email:' => 'owner.email',
|
||||||
'Registrant Phone Number:' => 'owner.phone',
|
'Registrant Phone Number:' => 'owner.phone',
|
||||||
'Registrant Fax:' => 'owner.fax',
|
'Registrant Fax:' => 'owner.fax',
|
||||||
'Administrative Name:' => 'admin.name',
|
'Administrative Name:' => 'admin.name',
|
||||||
|
@ -78,14 +79,13 @@ class cn_handler
|
||||||
'Billing Email:' => 'billing.email',
|
'Billing Email:' => 'billing.email',
|
||||||
'Billing Phone Number:' => 'billing.phone',
|
'Billing Phone Number:' => 'billing.phone',
|
||||||
'Billing Fax:' => 'billing.fax'
|
'Billing Fax:' => 'billing.fax'
|
||||||
);
|
];
|
||||||
|
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = [
|
||||||
'referrer' => 'http://www.cnnic.net.cn',
|
'referrer' => 'http://www.cnnic.net.cn',
|
||||||
'registrar' => 'China NIC'
|
'registrar' => 'China NIC'
|
||||||
);
|
];
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -34,10 +34,16 @@ class co_handler
|
||||||
{
|
{
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, '-md--y');
|
$items = [
|
||||||
|
'Registrar:' => 'domain.sponsor',
|
||||||
|
'Registry Expiry Date:' => 'domain.expires',
|
||||||
|
'Updated Date:' => 'domain.changed',
|
||||||
|
'Creation Date:' => 'domain.created',
|
||||||
|
];
|
||||||
|
|
||||||
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'Y-m-d');
|
||||||
$r['regyinfo']['referrer'] = 'http://www.cointernet.com.co/';
|
$r['regyinfo']['referrer'] = 'http://www.cointernet.com.co/';
|
||||||
$r['regyinfo']['registrar'] = '.CO Internet, S.A.S.';
|
$r['regyinfo']['registrar'] = '.CO Internet, S.A.S.';
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -34,45 +34,46 @@ class de_handler
|
||||||
{
|
{
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = [
|
||||||
'domain.name' => 'Domain:',
|
'domain.name' => 'Domain:',
|
||||||
'domain.nserver.' =>'Nserver:',
|
'domain.nserver.' => 'Nserver:',
|
||||||
'domain.nserver.#' =>'Nsentry:',
|
'domain.nserver.#' => 'Nsentry:',
|
||||||
'domain.status' => 'Status:',
|
'domain.status' => 'Status:',
|
||||||
'domain.changed' => 'Changed:',
|
'domain.changed' => 'Changed:',
|
||||||
'domain.desc.' => 'Descr:',
|
'domain.desc.' => 'Descr:',
|
||||||
'owner' => '[Holder]',
|
'owner' => '[Holder]',
|
||||||
'admin' => '[Admin-C]',
|
'admin' => '[Admin-C]',
|
||||||
'tech' => '[Tech-C]',
|
'tech' => '[Tech-C]',
|
||||||
'zone' => '[Zone-C]'
|
'zone' => '[Zone-C]'
|
||||||
);
|
];
|
||||||
|
|
||||||
$extra = array(
|
$extra = [
|
||||||
'city:' => 'address.city',
|
'city:' => 'address.city',
|
||||||
'postalcode:' => 'address.pcode',
|
'postalcode:' => 'address.pcode',
|
||||||
'countrycode:' => 'address.country',
|
'countrycode:' => 'address.country',
|
||||||
'remarks:' => '',
|
'remarks:' => '',
|
||||||
'sip:' => 'sip',
|
'sip:' => 'sip',
|
||||||
'type:' => ''
|
'type:' => '',
|
||||||
);
|
'address:' => 'address.street.'
|
||||||
|
];
|
||||||
|
|
||||||
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd',$extra);
|
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $extra);
|
||||||
|
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = [
|
||||||
'registrar' => 'DENIC eG',
|
'registrar' => 'DENIC eG',
|
||||||
'referrer' => 'http://www.denic.de/'
|
'referrer' => 'http://www.denic.de/'
|
||||||
);
|
];
|
||||||
|
|
||||||
if (!isset($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == "free")
|
if (!isset($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == 'free')
|
||||||
{
|
{
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$r['regrinfo']['domain']['changed'] = substr($r['regrinfo']['domain']['changed'], 0, 10);
|
$r['regrinfo']['domain']['changed'] = substr($r['regrinfo']['domain']['changed'], 0, 10);
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -34,24 +34,29 @@ class fi_handler
|
||||||
{
|
{
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = [
|
||||||
'domain:' => 'domain.name',
|
'domain.............:' => 'domain.name',
|
||||||
'created:' => 'domain.created',
|
'created............:' => 'domain.created',
|
||||||
'expires:' => 'domain.expires',
|
'expires............:' => 'domain.expires',
|
||||||
'status:' => 'domain.status',
|
'status.............:' => 'domain.status',
|
||||||
'nserver:' => 'domain.nserver.',
|
'modified...........:' => 'domain.changed',
|
||||||
'descr:' => 'owner.name.',
|
'RegistryLock.......:' => 'domain.lock',
|
||||||
'address:' => 'owner.address.',
|
'nserver............:' => 'domain.nserver.',
|
||||||
'phone:' => 'owner.phone',
|
'registrar..........:' => 'domain.sponsor',
|
||||||
);
|
'dnssec.............:' => 'domain.dnssec',
|
||||||
|
'name...............:' => 'owner.name',
|
||||||
|
'address............:' => 'owner.address.',
|
||||||
|
'phone..............:' => 'owner.phone',
|
||||||
|
'register number....:' => 'owner.handle',
|
||||||
|
'holder email.......:' => 'owner.email'
|
||||||
|
];
|
||||||
|
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
|
||||||
|
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = [
|
||||||
'referrer' => 'https://domain.ficora.fi/',
|
'referrer' => 'https://domain.ficora.fi/',
|
||||||
'registrar' => 'Finnish Communications Regulatory Authority'
|
'registrar' => 'Finnish Communications Regulatory Authority'
|
||||||
);
|
];
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue