本文整理汇总了PHP中generic_parser_b函数的典型用法代码示例。如果您正苦于以下问题:PHP generic_parser_b函数的具体用法?PHP generic_parser_b怎么用?PHP generic_parser_b使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了generic_parser_b函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: parse
function parse($data_str, $query)
{
$items = array('Domain ID:' => 'domain.handle', 'Domain Name:' => 'domain.name', 'Created On:' => 'domain.created', 'Expiration Date:' => 'domain.expires', 'Registrar ID:' => 'domain.sponsor', 'Name Server:' => 'domain.nserver.', 'Registrant ID:' => 'owner.handle', 'Registrant Name:' => 'owner.name', 'Registrant Organization:' => 'owner.organization', 'Registrant Street:' => 'owner.address.street', 'Registrant City:' => 'owner.address.city', 'Registrant Postal Code:' => 'owner.address.pcode', 'Registrant Country:' => 'owner.address.country', 'Registrant Phone:' => 'owner.phone', 'Registrant Fax:' => 'owner.fax', 'Registrant Email:' => 'owner.email', 'Admin ID:' => 'admin.handle', 'Admin Name:' => 'admin.name', 'Admin Organization:' => 'admin.organization', 'Admin Street:' => 'admin.address.street', 'Admin City:' => 'admin.address.city', 'Admin Postal Code:' => 'admin.address.pcode', 'Admin Country:' => 'admin.address.country', 'Admin Phone:' => 'admin.phone', 'Admin Fax:' => 'admin.fax', 'Admin Email:' => 'admin.email', 'Tech ID:' => 'tech.handle', 'Tech Name:' => 'tech.name', 'Tech Organization:' => 'tech.organization', 'Tech Street:' => 'tech.address.street.', 'Tech City:' => 'tech.address.city', 'Tech Postal Code:' => 'tech.address.pcode', 'Tech Country:' => 'tech.address.country', 'Tech Phone:' => 'tech.phone', 'Tech Fax:' => 'tech.fax', 'Tech Email:' => 'tech.email', 'Billing ID:' => 'billing.handle', 'Billing Name:' => 'billing.name', 'Billing Organization:' => 'billing.organization', 'Billing Street:' => 'billing.address.street', 'Billing City:' => 'billing.address.city', 'Billing Postal Code:' => 'billing.address.pcode', 'Billing Country:' => 'billing.address.country', 'Billing Phone:' => 'billing.phone', 'Billing Fax:' => 'billing.fax', 'Billing Email:' => 'billing.email');
$r['regyinfo'] = array('referrer' => 'http://musedoma.museum', 'registrar' => 'Museum Domain Management Association');
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
return $r;
}
示例2: parse
function parse($data_str, $query)
{
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
$r['regyinfo']['referrer'] = 'http://www.nic.travel/';
$r['regyinfo']['registrar'] = 'Tralliance Corporation';
return $r;
}
示例3: parse
function parse($data_str, $query)
{
$items = array('[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'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
$r['regyinfo'] = array('referrer' => 'http://www.jprs.jp', 'registrar' => 'Japan Registry Services');
if (!$this->deep_whois) {
return $r;
}
$r['rawdata'] = $data_str['rawdata'];
$items = array('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->Query['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'] = 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 {
unset($this->Query);
$this->Query['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'] = generic_parser_b($rwdata, $items, 'ymd', false);
$r = $this->set_whois_info($r);
}
}
return $r;
}
示例4: parse
function parse($data_str, $query)
{
$r = array();
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
$r['regyinfo'] = array('referrer' => 'http://www.nic.ag', 'registrar' => 'Nic AG');
return $r;
}
示例5: parse
function parse($data_str, $query)
{
$items = array('Domain Name:' => 'domain.name', 'Domain Status:' => 'domain.status', '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['regyinfo'] = array('referrer' => 'http://www.cnnic.net.cn', 'registrar' => 'China NIC');
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
return $r;
}
示例6: parse
function parse($data_str, $query)
{
$items = array('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'] = generic_parser_b($data_str['rawdata'], $items);
$r['regyinfo'] = array('referrer' => 'http://www.aunic.net', 'registrar' => 'AU-NIC');
return $r;
}
示例7: parse
function parse($data, $query)
{
$r['regrinfo'] = generic_parser_b($data['rawdata']);
$r['regyinfo']['referrer'] = 'http://registry.pw';
$r['regyinfo']['registrar'] = '.PW Registry';
return $r;
}
示例8: parse
function parse($data, $query)
{
$this->Query = array();
$this->SUBVERSION = sprintf('%s-%s', $query['handler'], $this->HANDLER_VERSION);
$this->result = generic_parser_b($data['rawdata'], $this->REG_FIELDS, 'dmy');
unset($this->result['registered']);
if (isset($this->result['nodomain'])) {
unset($this->result['nodomain']);
$this->result['regrinfo']['registered'] = 'no';
return $this->result;
}
$this->result['regrinfo']['registered'] = 'yes';
if (!$this->deep_whois) {
return $this->result;
}
unset($this->Query['handler']);
if (isset($this->result['regyinfo']['whois'])) {
$this->Query['server'] = $this->result['regyinfo']['whois'];
}
$subresult = $this->GetData($query);
if (isset($subresult['rawdata'])) {
$this->result['rawdata'] = $subresult['rawdata'];
@($this->Query['handler'] = $this->REGISTRARS[$this->result['regyinfo']['registrar']]);
if (!empty($this->Query['handler'])) {
$this->Query['file'] = sprintf('whois.gtld.%s.php', $this->Query['handler']);
$regrinfo = $this->Process($this->result['rawdata']);
$this->result['regrinfo'] = merge_results($this->result['regrinfo'], $regrinfo);
}
}
return $this->result;
}
示例9: parse
function parse($data, $query)
{
$items = array('Domain name:' => 'domain.name', 'Registrant:' => 'owner', 'Created:' => 'domain.created', 'Expiration date:' => 'domain.expires', 'Name servers:' => 'domain.nserver', 'DNS update:' => 'domain.changed');
$r['regrinfo'] = generic_parser_b($data['rawdata'], $items);
$r['regyinfo'] = array('referrer' => 'http://nic.md', 'registrar' => 'MoldData S.E.');
return $r;
}
示例10: parse
function parse($data_str, $query)
{
$items = array('domain:' => 'domain.name', 'state:' => 'domain.status', 'person:' => 'owner.name', 'phone:' => 'owner.phone', 'e-mail:' => 'owner.email', 'created:' => 'domain.created', 'paid-till:' => 'domain.expires');
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'dmy');
$r['regyinfo'] = array('referrer' => 'http://www.ripn.net', 'registrar' => 'RUCENTER-REG-RIPN');
return $r;
}
示例11: parse
function parse($data_str, $query)
{
$r = array();
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], array(), 'dmy');
$r['regyinfo'] = array('referrer' => 'http://www.nic.sc', 'registrar' => 'VCS (Pty) Limited');
return $r;
}
示例12: parse
function parse($data_str, $query)
{
$blocks = array('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 = array('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 = get_blocks($data_str, $blocks);
$r = array();
if (isset($b['network'])) {
$r['network'] = $b['network'];
}
if (isset($b['owner1'])) {
$r['owner'] = generic_parser_b($b['owner1'], $items, 'Ymd', false);
} elseif (isset($b['owner2'])) {
$r['owner'] = generic_parser_b($b['owner2'], $items, 'Ymd', false);
}
if (isset($b['admin2'])) {
$r['admin'] = generic_parser_b($b['admin2'], $items, 'Ymd', false);
} elseif (isset($b['admin3'])) {
$r['admin'] = generic_parser_b($b['admin3'], $items, 'Ymd', false);
}
if (isset($b['tech1'])) {
$r['tech'] = generic_parser_b($b['tech1'], $items, 'Ymd', false);
} elseif (isset($b['tech2'])) {
$r['tech'] = generic_parser_b($b['tech2'], $items, 'Ymd', false);
} elseif (isset($b['tech3'])) {
$r['tech'] = generic_parser_b($b['tech3'], $items, 'Ymd', false);
}
if (isset($b['abuse'])) {
$r['abuse'] = generic_parser_b($b['abuse'], $items, 'Ymd', false);
}
$r = format_dates($r, 'Ymd');
$r = array('regrinfo' => $r);
$r['regyinfo']['type'] = 'ip';
$r['regyinfo']['registrar'] = 'Korean Network Information Centre';
return $r;
}
示例13: parse
function parse($data_str, $query)
{
$items = array("Domain ID:" => "domain.handle", "Domain Name:" => "domain.name", "Created On:" => "domain.created", "Last Updated On:" => "domain.changed", "Expiration Date:" => "domain.expires", "Sponsoring Registrar:" => "domain.sponsor", "Status:" => "domain.status", "Name Server:" => "domain.nserver.", "Registrant ID:" => "owner.handle", "Registrant Name:" => "owner.name", "Registrant Organization:" => "owner.organization", "Registrant Street1:" => "owner.address.street.0", "Registrant Street2:" => "owner.address.street.1", "Registrant City:" => "owner.address.city", "Registrant State/Province:" => "owner.address.state", "Registrant Postal Code:" => "owner.address.pcode", "Registrant Country:" => "owner.address.country", "Registrant Phone:" => "owner.phone", "Registrant FAX:" => "owner.fax", "Registrant Email:" => "owner.email", "Admin ID:" => "admin.handle", "Admin Name:" => "admin.name", "Admin Organization:" => "admin.organization", "Admin Street1:" => "admin.address.street.0", "Admin Street2:" => "admin.address.street.1", "Admin City:" => "admin.address.city", "Admin State/Province:" => "admin.address.state", "Admin Postal Code:" => "admin.address.pcode", "Admin Country:" => "admin.address.country", "Admin Phone:" => "admin.phone", "Admin FAX:" => "admin.fax", "Admin Email:" => "admin.email", "Tech ID:" => "tech.handle", "Tech Name:" => "tech.name", "Tech Organization:" => "tech.organization", "Tech Street1:" => "tech.address.street.0", "Tech Street2:" => "tech.address.street.1", "Tech City:" => "tech.address.city", "Tech State/Province:" => "tech.address.state", "Tech Postal Code:" => "tech.address.pcode", "Tech Country:" => "tech.address.country", "Tech Phone:" => "tech.phone", "Tech FAX:" => "tech.fax", "Tech Email:" => "tech.email", "Billing ID:" => "billing.handle", "Billing Name:" => "billing.name", "Billing Organization:" => "billing.organization", "Billing Street1:" => "billing.address.street.0", "Billing Street2:" => "billing.address.street.1", "Billing City:" => "billing.address.city", "Billing State/Province:" => "billing.address.state", "Billing Postal Code:" => "billing.address.pcode", "Billing Country:" => "billing.address.country", "Billing Phone:" => "billing.phone", "Billing FAX:" => "billing.fax", "Billing Email:" => "billing.email");
$r["regyinfo"] = array("referrer" => "http://whois.afilias.info", "registrar" => "Afilias Global Registry Services");
$r["regrinfo"] = generic_parser_b($data_str["rawdata"], $items);
return $r;
}
示例14: parse
function parse($data_str, $query)
{
$items = array('Domain ID:' => 'domain.handle', 'Domain Name:' => 'domain.name', 'Creation Date:' => 'domain.created', 'Last Modification Date:' => 'domain.changed', 'Expiration Date:' => 'domain.expires', 'Sponsoring Registrar:' => 'domain.sponsor', 'Name Server:' => 'domain.nserver.', 'Registrant ID:' => 'owner.handle', 'Registrant Name:' => 'owner.name', 'Registrant Organization:' => 'owner.organization', 'Registrant Address:' => 'owner.address.street', 'Registrant City:' => 'owner.address.city', 'Registrant State/Province:' => 'owner.address.state', 'Registrant Postal Code:' => 'owner.address.pcode', 'Registrant Country:' => 'owner.address.country', 'Registrant Phone Number:' => 'owner.phone', 'Registrant Fax Number:' => 'owner.fax', 'Registrant Email:' => 'owner.email', 'Admin ID:' => 'admin.handle', 'Admin Name:' => 'admin.name', 'Admin Organization:' => 'admin.organization', 'Admin Address:' => 'admin.address.street', 'Admin City:' => 'admin.address.city', 'Admin State/Province:' => 'admin.address.state', 'Admin Postal Code:' => 'admin.address.pcode', 'Admin Country:' => 'admin.address.country', 'Admin Phone Number:' => 'admin.phone', 'Admin Fax Number:' => 'admin.fax', 'Admin Email:' => 'admin.email', 'Tech ID:' => 'tech.handle', 'Tech Name:' => 'tech.name', 'Tech Organization:' => 'tech.organization', 'Tech Address:' => 'tech.address.street.', 'Tech City:' => 'tech.address.city', 'Tech Postal Code:' => 'tech.address.pcode', 'Tech State/Province:' => 'tech.address.state', 'Tech Country:' => 'tech.address.country', 'Tech Phone Number:' => 'tech.phone', 'Tech Fax Number:' => 'tech.fax', 'Tech Email:' => 'tech.email', 'Billing ID:' => 'billing.handle', 'Billing Name:' => 'billing.name', 'Billing Organization:' => 'billing.organization', 'Billing Address:' => 'billing.address.street', 'Billing City:' => 'billing.address.city', 'Billing Postal Code:' => 'billing.address.pcode', 'Billing State/Province:' => 'billing.address.state', 'Billing Country:' => 'billing.address.country', 'Billing Phone Number:' => 'billing.phone', 'Billing Fax Number:' => 'billing.fax', 'Billing Email:' => 'billing.email');
$r['regyinfo'] = array('referrer' => 'http://www.nic.aero', 'registrar' => 'Societe Internationale de Telecommunications Aeronautiques SC');
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
return $r;
}
示例15: parse
function parse($data_str, $query)
{
$items = array('Domain Name:' => 'domain.name', 'Sponsoring Registrar:' => 'domain.sponsor', 'Name Server:' => 'domain.nserver.', 'Registrant Name:' => 'owner.name', 'Registrant Organization:' => 'owner.organization', 'Registrant Address1:' => 'owner.address.street.0', 'Registrant Address2:' => 'owner.address.street.1', 'Registrant Postal Code:' => 'owner.address.pcode', 'Registrant City:' => 'owner.address.city', 'Registrant State/Province:' => 'owner.address.state', 'Registrant Country:' => 'owner.address.country', 'Registrant Phone:' => 'owner.phone', 'Registrant Facsimile Number:' => 'owner.fax', 'Registrant Email:' => 'owner.email', 'Administrative Contact Name:' => 'admin.name', 'Administrative Contact Organization:' => 'admin.organization', 'Administrative Contact Address1:' => 'admin.address.street.0', 'Administrative Contact Address2:' => 'admin.address.street.1', 'Administrative Contact Postal Code:' => 'admin.address.pcode', 'Administrative Contact City:' => 'admin.address.city', 'Administrative Contact State/Province:' => 'admin.address.state', 'Administrative Contact Country:' => 'admin.address.country', 'Administrative Contact Phone:' => 'admin.phone', 'Administrative Contact Email:' => 'admin.email', 'Administrative Contact Facsimile Number:' => 'admin.fax', 'Technical Contact Name:' => 'tech.name', 'Technical Contact Organization:' => 'tech.organization', 'Technical Contact Address1:' => 'tech.address.street.0', 'Technical Contact Address2:' => 'tech.address.street.1', 'Technical Contact Postal Code:' => 'tech.address.pcode', 'Technical Contact City:' => 'tech.address.city', 'Technical Contact State/Province:' => 'tech.address.state', 'Technical Contact Country:' => 'tech.address.country', 'Technical Contact Phone:' => 'tech.phone', 'Technical Contact Facsimile Number:' => 'tech.fax', 'Technical Contact Email:' => 'tech.email');
$r['regrinfo'] = generic_parser_b($data_str, $items, '-md--y');
$r['regyinfo'] = array('referrer' => 'http://www.encirca.biz', 'registrar' => 'ENCIRCA');
return $r;
}