コード例 #1
0
ファイル: whois.cn.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['Domain Name:' => 'domain.name', 'Domain Status:' => 'domain.status.', 'ROID:' => 'domain.handle', 'Name Server:' => 'domain.nserver.', 'Registration Date:' => 'domain.created', 'Expiration Date:' => 'domain.expires', 'Sponsoring Registrar:' => 'domain.sponsor', 'Registrant Name:' => 'owner.name', 'Registrant Organization:' => 'owner.organization', 'Registrant Address:' => 'owner.address.address', 'Registrant Postal Code:' => 'owner.address.pcode', 'Registrant City:' => 'owner.address.city', 'Registrant Country Code:' => 'owner.address.country', 'Registrant Email:' => 'owner.email', 'Registrant Phone Number:' => 'owner.phone', 'Registrant Fax:' => 'owner.fax', 'Administrative Name:' => 'admin.name', 'Administrative Organization:' => 'admin.organization', 'Administrative Address:' => 'admin.address.address', 'Administrative Postal Code:' => 'admin.address.pcode', 'Administrative City:' => 'admin.address.city', 'Administrative Country Code:' => 'admin.address.country', 'Administrative Email:' => 'admin.email', 'Administrative Phone Number:' => 'admin.phone', 'Administrative Fax:' => 'admin.fax', 'Technical Name:' => 'tech.name', 'Technical Organization:' => 'tech.organization', 'Technical Address:' => 'tech.address.address', 'Technical Postal Code:' => 'tech.address.pcode', 'Technical City:' => 'tech.address.city', 'tec-country:' => 'tech.address.country', 'Technical Email:' => 'tech.email', 'Technical Phone Number:' => 'tech.phone', 'Technical Fax:' => 'tech.fax', 'Billing Name:' => 'billing.name', 'Billing Organization:' => 'billing.organization', 'Billing Address:' => 'billing.address.address', 'Billing Postal Code:' => 'billing.address.pcode', 'Billing City:' => 'billing.address.city', 'Billing Country Code:' => 'billing.address.country', 'Billing Email:' => 'billing.email', 'Billing Phone Number:' => 'billing.phone', 'Billing Fax:' => 'billing.fax'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'ymd');
     $r['regyinfo'] = ['referrer' => 'http://www.cnnic.net.cn', 'registrar' => 'China NIC'];
     return $r;
 }
コード例 #2
0
ファイル: whois.co.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], false, '-md--y');
     $r['regyinfo']['referrer'] = 'http://www.cointernet.com.co/';
     $r['regyinfo']['registrar'] = '.CO Internet, S.A.S.';
     return $r;
 }
コード例 #3
0
ファイル: whois.au.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['Domain Name:' => 'domain.name', 'Last Modified:' => 'domain.changed', 'Registrar Name:' => 'domain.sponsor', 'Status:' => 'domain.status', 'Domain ROID:' => 'domain.handle', 'Registrant:' => 'owner.organization', 'Registrant Contact ID:' => 'owner.handle', 'Registrant Contact Email:' => 'owner.email', 'Registrant Contact Name:' => 'owner.name', 'Tech Contact Name:' => 'tech.name', 'Tech Contact Email:' => 'tech.email', 'Tech Contact ID:' => 'tech.handle', 'Name Server:' => 'domain.nserver.'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items);
     $r['regyinfo'] = ['referrer' => 'http://www.aunic.net', 'registrar' => 'AU-NIC'];
     return $r;
 }
コード例 #4
0
ファイル: whois.gtld.php プロジェクト: nicholasryan/CorePlus
 function parse($data, $query)
 {
     $this->Query = [];
     $this->result = \phpwhois\generic_parser_b($data['rawdata'], $this->REG_FIELDS, 'dmy');
     // eNOM has a bug with how the results are returned for new TLD's.
     if (isset($this->result['regyinfo']['registrar']) && isset($this->result['regyinfo']['whois']) && strpos($this->result['regyinfo']['whois'], ':') !== false) {
         $this->result['regyinfo']['whois'] = 'whois.enom.com';
     }
     unset($this->result['registered']);
     if (isset($this->result['nodomain'])) {
         unset($this->result['nodomain']);
         $this->result['regrinfo']['registered'] = 'no';
         return $this->result;
     }
     if ($this->deep_whois) {
         $this->result = $this->_deepWhois($query, $this->result);
     }
     // Next server could fail to return data
     if (empty($this->result['rawdata']) || count($this->result['rawdata']) < 3) {
         $this->result['rawdata'] = $data['rawdata'];
     }
     // Domain is registered no matter what next server says
     $this->result['regrinfo']['registered'] = 'yes';
     return $this->result;
 }
コード例 #5
0
ファイル: whois.lu.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['domainname:' => 'domain.name', 'domaintype:' => 'domain.status', 'nserver:' => 'domain.nserver.', 'registered:' => 'domain.created', 'source:' => 'domain.source', 'ownertype:' => 'owner.type', 'org-name:' => 'owner.organization', 'org-address:' => 'owner.address.', 'org-zipcode:' => 'owner.address.pcode', 'org-city:' => 'owner.address.city', 'org-country:' => 'owner.address.country', 'adm-name:' => 'admin.name', 'adm-address:' => 'admin.address.', 'adm-zipcode:' => 'admin.address.pcode', 'adm-city:' => 'admin.address.city', 'adm-country:' => 'admin.address.country', 'adm-email:' => 'admin.email', 'tec-name:' => 'tech.name', 'tec-address:' => 'tech.address.', 'tec-zipcode:' => 'tech.address.pcode', 'tec-city:' => 'tech.address.city', 'tec-country:' => 'tech.address.country', 'tec-email:' => 'tech.email', 'bil-name:' => 'billing.name', 'bil-address:' => 'billing.address.', 'bil-zipcode:' => 'billing.address.pcode', 'bil-city:' => 'billing.address.city', 'bil-country:' => 'billing.address.country', 'bil-email:' => 'billing.email'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'dmy');
     $r['regyinfo'] = ['referrer' => 'http://www.dns.lu', 'registrar' => 'DNS-LU'];
     return $r;
 }
コード例 #6
0
ファイル: whois.jp.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['[State]' => 'domain.status', '[Status]' => 'domain.status', '[Registered Date]' => 'domain.created', '[Created on]' => 'domain.created', '[Expires on]' => 'domain.expires', '[Last Updated]' => 'domain.changed', '[Last Update]' => 'domain.changed', '[Organization]' => 'owner.organization', '[Name]' => 'owner.name', '[Email]' => 'owner.email', '[Postal code]' => 'owner.address.pcode', '[Postal Address]' => 'owner.address.street', '[Phone]' => 'owner.phone', '[Fax]' => 'owner.fax', '[Administrative Contact]' => 'admin.handle', '[Technical Contact]' => 'tech.handle', '[Name Server]' => 'domain.nserver.'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'ymd');
     $r['regyinfo'] = ['referrer' => 'http://www.jprs.jp', 'registrar' => 'Japan Registry Services'];
     if (!$this->deep_whois) {
         return $r;
     }
     $r['rawdata'] = $data_str['rawdata'];
     $items = ['a. [JPNIC Handle]' => 'handle', 'c. [Last, First]' => 'name', 'd. [E-Mail]' => 'email', 'g. [Organization]' => 'organization', 'o. [TEL]' => 'phone', 'p. [FAX]' => 'fax', '[Last Update]' => 'changed'];
     $this->server = 'jp.whois-servers.net';
     if (!empty($r['regrinfo']['admin']['handle'])) {
         $rwdata = $this->getRawData('CONTACT ' . $r['regrinfo']['admin']['handle'] . '/e');
         $r['rawdata'][] = '';
         $r['rawdata'] = array_merge($r['rawdata'], $rwdata);
         $r['regrinfo']['admin'] = \phpwhois\generic_parser_b($rwdata, $items, 'ymd', false);
         $r = $this->set_whois_info($r);
     }
     if (!empty($r['regrinfo']['tech']['handle'])) {
         if (!empty($r['regrinfo']['admin']['handle']) && $r['regrinfo']['admin']['handle'] == $r['regrinfo']['tech']['handle']) {
             $r['regrinfo']['tech'] = $r['regrinfo']['admin'];
         } else {
             $this->server = 'jp.whois-servers.net';
             $rwdata = $this->getRawData('CONTACT ' . $r['regrinfo']['tech']['handle'] . '/e');
             $r['rawdata'][] = '';
             $r['rawdata'] = array_merge($r['rawdata'], $rwdata);
             $r['regrinfo']['tech'] = \phpwhois\generic_parser_b($rwdata, $items, 'ymd', false);
             $r = $this->set_whois_info($r);
         }
     }
     return $r;
 }
コード例 #7
0
ファイル: whois.pro.php プロジェクト: nicholasryan/CorePlus
 function parse($data, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data['rawdata']);
     $r['regyinfo']['referrer'] = 'http://www.registrypro.pro';
     $r['regyinfo']['registrar'] = 'RegistryPRO';
     return $r;
 }
コード例 #8
0
ファイル: whois.fi.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['domain:' => 'domain.name', 'created:' => 'domain.created', 'expires:' => 'domain.expires', 'status:' => 'domain.status', 'nserver:' => 'domain.nserver.', 'descr:' => 'owner.name.', 'address:' => 'owner.address.', 'phone:' => 'owner.phone'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items);
     $r['regyinfo'] = ['referrer' => 'https://domain.ficora.fi/', 'registrar' => 'Finnish Communications Regulatory Authority'];
     return $r;
 }
コード例 #9
0
ファイル: whois.ae.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['Domain Name:' => 'domain.name', 'Registrar Name:' => 'domain.sponsor', 'Status:' => 'domain.status', 'Registrant Contact ID:' => 'owner.handle', 'Registrant Contact Name:' => 'owner.name', 'Tech Contact Name:' => 'tech.name', 'Tech Contact ID:' => 'tech.handle', 'Name Server:' => 'domain.nserver.'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'ymd');
     $r['regyinfo'] = ['referrer' => 'http://www.nic.ae', 'registrar' => 'UAENIC'];
     return $r;
 }
コード例 #10
0
ファイル: whois.su.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['domain:' => 'domain.name', 'registrar:' => 'domain.sponsor', 'state:' => 'domain.status', 'person:' => 'owner.name', 'phone:' => 'owner.phone', 'e-mail:' => 'owner.email', 'created:' => 'domain.created', 'paid-till:' => 'domain.expires'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'dmy');
     $r['regyinfo'] = ['referrer' => 'http://www.ripn.net', 'registrar' => 'RUCENTER-REG-RIPN'];
     return $r;
 }
コード例 #11
0
 function parse($data_str, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata']);
     $r['regyinfo']['referrer'] = 'http://www.nic.travel/';
     $r['regyinfo']['registrar'] = 'Tralliance Corporation';
     return $r;
 }
コード例 #12
0
ファイル: whois.us.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], false, '-md--y');
     $r['regyinfo'] = ['referrer' => 'http://www.neustar.us', 'registrar' => 'NEUSTAR INC.'];
     $this->_countrycodes($r);
     return $r;
 }
コード例 #13
0
ファイル: whois.coop.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Contact Type:            registrant', 'admin' => 'Contact Type:            admin', 'tech' => 'Contact Type:            tech', 'billing' => 'Contact Type:            billing', 'domain.name' => 'Domain Name:', 'domain.handle' => 'Domain ID:', 'domain.expires' => 'Expiry Date:', 'domain.created' => 'Created:', 'domain.changed' => 'Last updated:', 'domain.status' => 'Domain Status:', 'domain.sponsor' => 'Sponsoring registrar:', 'domain.nserver.' => 'Host Name:'];
     $translate = ['Contact ID:' => 'handle', 'Name:' => 'name', 'Organisation:' => 'organization', 'Street 1:' => 'address.street.0', 'Street 2:' => 'address.street.1', 'Street 3:' => 'address.street.2', 'City:' => 'address.city', 'State/Province:' => 'address.state', 'Postal code:' => 'address.pcode', 'Country:' => 'address.country', 'Voice:' => 'phone', 'Fax:' => 'fax', 'Email:' => 'email'];
     $blocks = \phpwhois\get_blocks($data_str['rawdata'], $items);
     $r = [];
     if (isset($blocks['domain'])) {
         $r['regrinfo']['domain'] = \phpwhois\format_dates($blocks['domain'], 'dmy');
         $r['regrinfo']['registered'] = 'yes';
         if (isset($blocks['owner'])) {
             $r['regrinfo']['owner'] = \phpwhois\generic_parser_b($blocks['owner'], $translate, 'dmy', false);
             if (isset($blocks['tech'])) {
                 $r['regrinfo']['tech'] = \phpwhois\generic_parser_b($blocks['tech'], $translate, 'dmy', false);
             }
             if (isset($blocks['admin'])) {
                 $r['regrinfo']['admin'] = \phpwhois\generic_parser_b($blocks['admin'], $translate, 'dmy', false);
             }
             if (isset($blocks['billing'])) {
                 $r['regrinfo']['billing'] = \phpwhois\generic_parser_b($blocks['billing'], $translate, 'dmy', false);
             }
         } else {
             $r['regrinfo']['owner'] = \phpwhois\generic_parser_b($data_str['rawdata'], $translate, 'dmy', false);
         }
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.nic.coop', 'registrar' => '.coop registry'];
     return $r;
 }
コード例 #14
0
ファイル: whois.co.za.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['0a. lastupdate             :' => 'domain.changed', '1a. domain                 :' => 'domain.name', '2b. registrantpostaladdress:' => 'owner.address.address.0', '2f. billingaccount         :' => 'billing.name', '2g. billingemail           :' => 'billing.email', '2i. invoiceaddress         :' => 'billing.address', '2j. registrantphone        :' => 'owner.phone', '2k. registrantfax          :' => 'owner.fax', '2l. registrantemail        :' => 'owner.email', '4a. admin                  :' => 'admin.name', '4c. admincompany           :' => 'admin.organization', '4d. adminpostaladdr        :' => 'admin.address', '4e. adminphone             :' => 'admin.phone', '4f. adminfax               :' => 'admin.fax', '4g. adminemail             :' => 'admin.email', '5a. tec                    :' => 'tech.name', '5c. teccompany             :' => 'tech.organization', '5d. tecpostaladdr          :' => 'tech.address', '5e. tecphone               :' => 'tech.phone', '5f. tecfax                 :' => 'tech.fax', '5g. tecemail               :' => 'tech.email', '6a. primnsfqdn             :' => 'domain.nserver.0', '6e. secns1fqdn             :' => 'domain.nserver.1', '6i. secns2fqdn             :' => 'domain.nserver.2', '6m. secns3fqdn             :' => 'domain.nserver.3', '6q. secns4fqdn             :' => 'domain.nserver.4'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items);
     $r['regyinfo']['referrer'] = 'http://www.co.za';
     $r['regyinfo']['registrar'] = 'UniForum Association';
     return $r;
 }
コード例 #15
0
ファイル: whois.se.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['domain' => 'domain.name', 'state:' => 'domain.status.', 'status:' => 'domain.status.', 'expires:' => 'domain.expires', 'created:' => 'domain.created', 'nserver:' => 'domain.nserver.', 'holder:' => 'owner.handle'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'ymd', false);
     $r['regrinfo']['registered'] = isset($r['regrinfo']['domain']['name']) ? 'yes' : 'no';
     $r['regyinfo'] = ['referrer' => 'http://www.nic-se.se', 'registrar' => 'NIC-SE'];
     return $r;
 }
コード例 #16
0
 function parse($data_str, $query)
 {
     $items = ['network:Organization-Name:' => 'owner.name', 'network:Organization;I:' => 'owner.organization', 'network:Organization-City:' => 'owner.address.city', 'network:Organization-Zip:' => 'owner.address.pcode', 'network:Organization-Country:' => 'owner.address.country', 'network:IP-Network-Block:' => 'network.inetnum', 'network:IP-Network:' => 'network.inetnum', 'network:Network-Name:' => 'network.name', 'network:ID:' => 'network.handle', 'network:Created:' => 'network.created', 'network:Updated:' => 'network.changed', 'network:Tech-Contact;I:' => 'tech.email', 'network:Admin-Contact;I:' => 'admin.email'];
     $res = \phpwhois\generic_parser_b($data_str, $items, 'Ymd', false);
     if (isset($res['disclaimer'])) {
         unset($res['disclaimer']);
     }
     return ['regrinfo' => $res];
 }
コード例 #17
0
 function parse($data_str, $query)
 {
     $items = ['OrgName:' => 'owner.organization', 'CustName:' => 'owner.organization', 'OrgId:' => 'owner.handle', 'Address:' => 'owner.address.street.', 'City:' => 'owner.address.city', 'StateProv:' => 'owner.address.state', 'PostalCode:' => 'owner.address.pcode', 'Country:' => 'owner.address.country', 'NetRange:' => 'network.inetnum', 'NetName:' => 'network.name', 'NetHandle:' => 'network.handle', 'NetType:' => 'network.status', 'NameServer:' => 'network.nserver.', 'Comment:' => 'network.desc.', 'RegDate:' => 'network.created', 'Updated:' => 'network.changed', 'ASHandle:' => 'network.handle', 'ASName:' => 'network.name', 'NetHandle:' => 'network.handle', 'NetName:' => 'network.name', 'TechHandle:' => 'tech.handle', 'TechName:' => 'tech.name', 'TechPhone:' => 'tech.phone', 'TechEmail:' => 'tech.email', 'OrgAbuseName:' => 'abuse.name', 'OrgAbuseHandle:' => 'abuse.handle', 'OrgAbusePhone:' => 'abuse.phone', 'OrgAbuseEmail:' => 'abuse.email.', 'ReferralServer:' => 'rwhois'];
     $r = \phpwhois\generic_parser_b($data_str, $items, 'ymd', false, true);
     if (@isset($r['abuse']['email'])) {
         $r['abuse']['email'] = implode(',', $r['abuse']['email']);
     }
     return ['regrinfo' => $r];
 }
コード例 #18
0
ファイル: whois.ru.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['domain:' => 'domain.name', 'registrar:' => 'domain.sponsor', 'state:' => 'domain.status', 'nserver:' => 'domain.nserver.', 'source:' => 'domain.source', 'created:' => 'domain.created', 'paid-till:' => 'domain.expires', 'type:' => 'owner.type', 'org:' => 'owner.organization', 'phone:' => 'owner.phone', 'fax-no:' => 'owner.fax', 'e-mail:' => 'owner.email'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'dmy');
     if (empty($r['regrinfo']['domain']['status'])) {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.ripn.net', 'registrar' => 'RU-CENTER-REG-RIPN'];
     return $r;
 }
コード例 #19
0
ファイル: whois.cat.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata']);
     if (!isset($r['regrinfo']['domain']['name'])) {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo']['referrer'] = 'http://www.domini.cat/';
     $r['regyinfo']['registrar'] = 'Domini punt CAT';
     return $r;
 }
コード例 #20
0
ファイル: whois.mobi.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata']);
     if (!strncmp($data_str['rawdata'][0], 'WHOIS LIMIT EXCEEDED', 20)) {
         $r['regrinfo']['registered'] = 'unknown';
     }
     $r['regyinfo']['referrer'] = 'http://www.mtld.mobi/';
     $r['regyinfo']['registrar'] = 'Dot Mobi Registry';
     return $r;
 }
コード例 #21
0
ファイル: whois.hu.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['domain:' => 'domain.name', 'record created:' => 'domain.created'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'ymd');
     if (isset($r['regrinfo']['domain'])) {
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.nic.hu', 'registrar' => 'HUNIC'];
     return $r;
 }
コード例 #22
0
ファイル: whois.bh.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['Sponsoring Registrar Name:' => 'domain.sponsor.name', 'Sponsoring Registrar Email:' => 'domain.sponsor.email', 'Sponsoring Registrar Uri:' => 'domain.sponsor.uri', 'Sponsoring Registrar Phone:' => 'domain.sponsor.phone'];
     $i = \phpwhois\generic_parser_b($data_str['rawdata'], $items);
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata']);
     if (isset($r['regrinfo']['domain']) && is_array($r['regrinfo']['domain'])) {
         $r['regrinfo']['domain']['sponsor'] = $i['domain']['sponsor'];
     }
     if (empty($r['regrinfo']['domain']['created'])) {
         $r['regrinfo']['registered'] = 'no';
     } else {
         $r['regrinfo']['registered'] = 'yes';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.nic.bh/', 'registrar' => 'NIC-BH'];
     return $r;
 }
コード例 #23
0
 function parse($data_str, $query)
 {
     $blocks = ['owner1' => '[ Organization Information ]', 'tech1' => '[ Technical Contact Information ]', 'owner2' => '[ ISP Organization Information ]', 'admin2' => '[ ISP IP Admin Contact Information ]', 'tech2' => '[ ISP IP Tech Contact Information ]', 'admin3' => '[ ISP IPv4 Admin Contact Information ]', 'tech3' => '[ ISP IPv4 Tech Contact Information ]', 'abuse' => '[ ISP Network Abuse Contact Information ]', 'network.inetnum' => 'IPv4 Address       :', 'network.name' => 'Network Name       :', 'network.mnt-by' => 'Connect ISP Name   :', 'network.created' => 'Registration Date  :'];
     $items = ['Orgnization ID     :' => 'handle', 'Org Name      :' => 'organization', 'Org Name           :' => 'organization', 'Name          :' => 'name', 'Name               :' => 'name', 'Org Address   :' => 'address.street', 'Zip Code      :' => 'address.pcode', 'State         :' => 'address.state', 'Address            :' => 'address.street', 'Zip Code           :' => 'address.pcode', 'Phone         :' => 'phone', 'Phone              :' => 'phone', 'Fax           :' => 'fax', 'E-Mail        :' => 'email', 'E-Mail             :' => 'email'];
     $b = \phpwhois\get_blocks($data_str, $blocks);
     if (isset($b['network'])) {
         $r['network'] = $b['network'];
     }
     if (isset($b['owner1'])) {
         $r['owner'] = \phpwhois\generic_parser_b($b['owner1'], $items, 'Ymd', false);
     } else {
         if (isset($b['owner2'])) {
             $r['owner'] = \phpwhois\generic_parser_b($b['owner2'], $items, 'Ymd', false);
         }
     }
     if (isset($b['admin2'])) {
         $r['admin'] = \phpwhois\generic_parser_b($b['admin2'], $items, 'Ymd', false);
     } else {
         if (isset($b['admin3'])) {
             $r['admin'] = \phpwhois\generic_parser_b($b['admin3'], $items, 'Ymd', false);
         }
     }
     if (isset($b['tech1'])) {
         $r['tech'] = \phpwhois\generic_parser_b($b['tech1'], $items, 'Ymd', false);
     } else {
         if (isset($b['tech2'])) {
             $r['tech'] = \phpwhois\generic_parser_b($b['tech2'], $items, 'Ymd', false);
         } else {
             if (isset($b['tech3'])) {
                 $r['tech'] = \phpwhois\generic_parser_b($b['tech3'], $items, 'Ymd', false);
             }
         }
     }
     if (isset($b['abuse'])) {
         $r['abuse'] = \phpwhois\generic_parser_b($b['abuse'], $items, 'Ymd', false);
     }
     $r = \phpwhois\format_dates($r, 'Ymd');
     $r = ['regrinfo' => $r];
     $r['regyinfo']['type'] = 'ip';
     $r['regyinfo']['registrar'] = 'Korean Network Information Centre';
     return $r;
 }
コード例 #24
0
ファイル: whois.ws.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['Domain Name:' => 'domain.name', 'Registrant Name:' => 'owner.organization', 'Registrant Email:' => 'owner.email', 'Domain Created:' => 'domain.created', 'Domain Last Updated:' => 'domain.changed', 'Registrar Name:' => 'domain.sponsor', 'Current Nameservers:' => 'domain.nserver.', 'Administrative Contact Email:' => 'admin.email', 'Administrative Contact Telephone:' => 'admin.phone', 'Registrar Whois:' => 'rwhois'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items, 'ymd');
     $r['regyinfo']['referrer'] = 'http://www.samoanic.ws';
     $r['regyinfo']['registrar'] = 'Samoa Nic';
     if (!empty($r['regrinfo']['domain']['name'])) {
         $r['regrinfo']['registered'] = 'yes';
         if (isset($r['regrinfo']['rwhois'])) {
             if ($this->deep_whois) {
                 $r['regyinfo']['whois'] = $r['regrinfo']['rwhois'];
                 $r = $this->_deepWhois($query, $r);
             }
             unset($r['regrinfo']['rwhois']);
         }
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     return $r;
 }
コード例 #25
0
ファイル: whois.nz.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $items = ['domain_name:' => 'domain.name', 'query_status:' => 'domain.status', 'ns_name_01:' => 'domain.nserver.0', 'ns_name_02:' => 'domain.nserver.1', 'ns_name_03:' => 'domain.nserver.2', 'domain_dateregistered:' => 'domain.created', 'domain_datelastmodified:' => 'domain.changed', 'domain_datebilleduntil:' => 'domain.expires', 'registrar_name:' => 'domain.sponsor', 'registrant_contact_name:' => 'owner.name', 'registrant_contact_address1:' => 'owner.address.address.0', 'registrant_contact_address2:' => 'owner.address.address.1', 'registrant_contact_address3:' => 'owner.address.address.2', 'registrant_contact_postalcode:' => 'owner.address.pcode', 'registrant_contact_city:' => 'owner.address.city', 'Registrant State/Province:' => 'owner.address.state', 'registrant_contact_country:' => 'owner.address.country', 'registrant_contact_phone:' => 'owner.phone', 'registrant_contact_fax:' => 'owner.fax', 'registrant_contact_email:' => 'owner.email', 'admin_contact_name:' => 'admin.name', 'admin_contact_address1:' => 'admin.address.address.0', 'admin_contact_address2:' => 'admin.address.address.1', 'admin_contact_address3:' => 'admin.address.address.2', 'admin_contact_postalcode:' => 'admin.address.pcode', 'admin_contact_city:' => 'admin.address.city', 'admin_contact_country:' => 'admin.address.country', 'admin_contact_phone:' => 'admin.phone', 'admin_contact_fax:' => 'admin.fax', 'admin_contact_email:' => 'admin.email', 'technical_contact_name:' => 'tech.name', 'technical_contact_address1:' => 'tech.address.address.0', 'technical_contact_address1:' => 'tech.address.address.1', 'technical_contact_address1:' => 'tech.address.address.2', 'technical_contact_postalcode:' => 'tech.address.pcode', 'technical_contact_city:' => 'tech.address.city', 'technical_contact_country:' => 'tech.address.country', 'technical_contact_phone:' => 'tech.phone', 'technical_contact_fax:' => 'tech.fax', 'technical_contact_email:' => 'tech.email'];
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['status'])) {
         $domain_status = substr($r['regrinfo']['domain']['status'], 0, 3);
     } else {
         $domain_status = '';
     }
     if ($domain_status == '200') {
         $r['regrinfo']['registered'] = 'yes';
     } elseif ($domain_status == '220') {
         $r['regrinfo']['registered'] = 'no';
     } else {
         $r['regrinfo']['registered'] = 'unknown';
     }
     if (!strncmp($data_str['rawdata'][0], 'WHOIS LIMIT EXCEEDED', 20)) {
         $r['regrinfo']['registered'] = 'unknown';
     }
     $r['regyinfo']['referrer'] = 'http://www.dnc.org.nz';
     $r['regyinfo']['registrar'] = 'New Zealand Domain Name Registry Limited';
     return $r;
 }
コード例 #26
0
 function parse($data_str, $query)
 {
     $items = ['Domain Name................' => 'domain.name', 'Creation Date............' => 'domain.created', 'Expiry Date..............' => 'domain.expires', 'Last Update Date.........' => 'domain.changed', 'Name Server.............' => 'domain.nserver.', 'Organization Name........' => 'owner.name', 'Organization Org.........' => 'owner.organization', 'Organization Street......' => 'owner.address.street', 'Organization City........' => 'owner.address.city', 'Organization State.......' => 'owner.address.state', 'Organization PC..........' => 'owner.address.pcode', 'Organization Country.....' => 'owner.address.country', 'Organization Phone.......' => 'owner.phone', 'Organization e-mail......' => 'owner.email', 'Organization Contact Id....' => 'owner.handle', 'Administrative Contact Id..' => 'admin.handle', 'Administrative Name......' => 'admin.name', 'Administrative Org.......' => 'admin.organization', 'Administrative Street....' => 'admin.address.street', 'Administrative City......' => 'admin.address.city', 'Administrative State.....' => 'admin.address.state', 'Administrative PC........' => 'admin.address.pcode', 'Administrative Country...' => 'admin.address.country', 'Administrative Phone.....' => 'admin.phone', 'Administrative e-mail....' => 'admin.email', 'Administrative Fax.......' => 'admin.fax', 'Technical Contact Id.......' => 'tech.handle', 'Technical Name...........' => 'tech.name', 'Technical Org............' => 'tech.organization', 'Technical Street.........' => 'tech.address.street', 'Technical City...........' => 'tech.address.city', 'Technical State..........' => 'tech.address.state', 'Technical PC.............' => 'tech.address.pcode', 'Technical Country........' => 'tech.address.country', 'Technical Phone..........' => 'tech.phone', 'Technical e-mail.........' => 'tech.email', 'Technical Fax............' => 'tech.fax'];
     return \phpwhois\generic_parser_b($data_str, $items, 'dmy');
 }
コード例 #27
0
ファイル: whois.ag.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata']);
     $r['regyinfo'] = ['referrer' => 'http://www.nic.ag', 'registrar' => 'Nic AG'];
     return $r;
 }
コード例 #28
0
ファイル: whois.asia.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata']);
     $r['regyinfo'] = ['referrer' => 'http://www.dotasia.org/', 'registrar' => 'DotAsia'];
     return $r;
 }
コード例 #29
0
 function parse($data_str, $query)
 {
     $items = ['created:' => 'domain.created', 'last-changed:' => 'domain.changed', 'status:' => 'domain.status', '[owner-c] fname:' => 'owner.name.first', '[owner-c] lname:' => 'owner.name.last', '[owner-c] org:' => 'owner.organization', '[owner-c] address:' => 'owner.address.street', '[owner-c] city:' => 'owner.address.city', '[owner-c] pcode:' => 'owner.address.pcode', '[owner-c] country:' => 'owner.address.country', '[owner-c] state:' => 'owner.address.state', '[owner-c] phone:' => 'owner.phone', '[owner-c] fax:' => 'owner.fax', '[owner-c] email:' => 'owner.email', '[admin-c] fname:' => 'admin.name.first', '[admin-c] lname:' => 'admin.name.last', '[admin-c] org:' => 'admin.organization', '[admin-c] address:' => 'admin.address.street', '[admin-c] city:' => 'admin.address.city', '[admin-c] pcode:' => 'admin.address.pcode', '[admin-c] country:' => 'admin.address.country', '[admin-c] state:' => 'admin.address.state', '[admin-c] phone:' => 'admin.phone', '[admin-c] fax:' => 'admin.fax', '[admin-c] email:' => 'admin.email', '[tech-c] fname:' => 'tech.name.first', '[tech-c] lname:' => 'tech.name.last', '[tech-c] org:' => 'tech.organization', '[tech-c] address:' => 'tech.address.street', '[tech-c] city:' => 'tech.address.city', '[tech-c] pcode:' => 'tech.address.pcode', '[tech-c] country:' => 'tech.address.country', '[tech-c] state:' => 'tech.address.state', '[tech-c] phone:' => 'tech.phone', '[tech-c] fax:' => 'tech.fax', '[tech-c] email:' => 'tech.email', '[zone-c] fname:' => 'zone.name.first', '[zone-c] lname:' => 'zone.name.last', '[zone-c] org:' => 'zone.organization', '[zone-c] address:' => 'zone.address.street', '[zone-c] city:' => 'zone.address.city', '[zone-c] pcode:' => 'zone.address.pcode', '[zone-c] country:' => 'zone.address.country', '[zone-c] state:' => 'zone.address.state', '[zone-c] phone:' => 'zone.phone', '[zone-c] fax:' => 'zone.fax', '[zone-c] email:' => 'zone.email'];
     return \phpwhois\generic_parser_b($data_str, $items);
 }
コード例 #30
0
ファイル: whois.sc.php プロジェクト: nicholasryan/CorePlus
 function parse($data_str, $query)
 {
     $r['regrinfo'] = \phpwhois\generic_parser_b($data_str['rawdata'], false, 'dmy');
     $r['regyinfo'] = ['referrer' => 'http://www.nic.sc', 'registrar' => 'VCS (Pty) Limited'];
     return $r;
 }