本文整理汇总了PHP中generic_parser_b函数的典型用法代码示例。如果您正苦于以下问题:PHP generic_parser_b函数的具体用法?PHP generic_parser_b怎么用?PHP generic_parser_b使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了generic_parser_b函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:BGCX067,项目名称:faireconnaitre-svn-to-git,代码行数:7,代码来源:whois.museum.php
示例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;
}
开发者ID:yarylo,项目名称:cerkva.pp.ua,代码行数:7,代码来源:whois.travel.php
示例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;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:33,代码来源:whois.jp.php
示例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;
}
开发者ID:rokyt,项目名称:php-whois,代码行数:7,代码来源:whois.ag.php
示例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;
}
开发者ID:469306621,项目名称:Languages,代码行数:7,代码来源:whois.cn.php
示例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;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:whois.au.php
示例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;
}
开发者ID:hayk,项目名称:phpWhois,代码行数:7,代码来源:whois.pw.php
示例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;
}
开发者ID:carriercomm,项目名称:NeoBill,代码行数:31,代码来源:whois.gtld.php
示例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;
}
开发者ID:hayk,项目名称:phpWhois,代码行数:7,代码来源:whois.md.php
示例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;
}
开发者ID:yarylo,项目名称:cerkva.pp.ua,代码行数:7,代码来源:whois.su.php
示例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;
}
开发者ID:SCS-CBU-CED-IAM,项目名称:cab-csr-validator,代码行数:7,代码来源:whois.sc.php
示例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;
}
开发者ID:SCS-CBU-CED-IAM,项目名称:cab-csr-validator,代码行数:35,代码来源:whois.ip.krnic.php
示例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;
}
开发者ID:carriercomm,项目名称:NeoBill,代码行数:7,代码来源:whois.info.php
示例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;
}
开发者ID:BGCX067,项目名称:faireconnaitre-svn-to-git,代码行数:7,代码来源:whois.aero.php
示例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;
}
开发者ID:BGCX067,项目名称:faireconnaitre-svn-to-git,代码行数:7,代码来源:whois.gtld.encirca.php
示例16: parse
function parse($data_str, $query)
{
$items = array('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'] = generic_parser_b($data_str['rawdata'], $items);
$r['regyinfo'] = array('referrer' => 'https://domain.ficora.fi/', 'registrar' => 'Finnish Communications Regulatory Authority');
return $r;
}
开发者ID:evdevgit,项目名称:wpblock,代码行数:7,代码来源:whois.fi.php
示例17: parse
function parse($data_str, $query)
{
$r['regrinfo'] = 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;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:whois.co.php
示例18: parse
function parse($data_str, $query)
{
$items = array('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'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
$r['regyinfo'] = array('referrer' => 'http://www.nic.ae', 'registrar' => 'UAENIC');
return $r;
}
开发者ID:hardiksondagar,项目名称:lookup,代码行数:7,代码来源:whois.ae.php
示例19: parse
function parse($data_str, $query)
{
$items = array('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 = array('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 = get_blocks($data_str['rawdata'], $items);
$r = array();
if (isset($blocks['domain'])) {
$r['regrinfo']['domain'] = format_dates($blocks['domain'], 'dmy');
$r['regrinfo']['registered'] = 'yes';
if (isset($blocks['owner'])) {
$r['regrinfo']['owner'] = generic_parser_b($blocks['owner'], $translate, 'dmy', false);
if (isset($blocks['tech'])) {
$r['regrinfo']['tech'] = generic_parser_b($blocks['tech'], $translate, 'dmy', false);
}
if (isset($blocks['admin'])) {
$r['regrinfo']['admin'] = generic_parser_b($blocks['admin'], $translate, 'dmy', false);
}
if (isset($blocks['billing'])) {
$r['regrinfo']['billing'] = generic_parser_b($blocks['billing'], $translate, 'dmy', false);
}
} else {
$r['regrinfo']['owner'] = generic_parser_b($data_str['rawdata'], $translate, 'dmy', false);
}
} else {
$r['regrinfo']['registered'] = 'no';
}
$r['regyinfo'] = array('referrer' => 'http://www.nic.coop', 'registrar' => '.coop registry');
return $r;
}
开发者ID:SCS-CBU-CED-IAM,项目名称:cab-csr-validator,代码行数:29,代码来源:whois.coop.php
示例20: parse
function parse($data_str, $query)
{
$items = array('Domain Name:' => 'domain.name', 'Domain ID:' => 'domain.handle', 'Sponsoring Registrar:' => 'domain.sponsor', 'Status:' => 'domain.status', 'Name Server:' => 'domain.nserver.', 'Created On:' => 'domain.created', 'Expiration Date:' => 'domain.expires', 'Last Updated On:' => 'domain.changed', '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 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 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 Postal Code:' => 'admin.address.pcode', 'Admin City:' => 'admin.address.city', 'Admin State/Province:' => 'admin.address.state', 'Admin Country:' => 'admin.address.country', 'Admin Phone:' => 'admin.phone', 'Admin Email:' => 'admin.email', 'Admin FAX:' => 'admin.fax', '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 Postal Code:' => 'tech.address.pcode', 'Tech City:' => 'tech.address.city', 'Tech State/Province:' => 'tech.address.state', '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.1', 'Billing Street2:' => 'billing.address.street.0', 'Billing Postal Code:' => 'billing.address.pcode', 'Billing City:' => 'billing.address.city', 'Billing State/Province:' => 'billing.address.state', 'Billing Country:' => 'billing.address.country', 'Billing Phone:' => 'billing.phone', 'Billing FAX:' => 'billing.fax', 'Billing Email:' => 'billing.email');
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'dmy');
$r['regyinfo'] = array('referrer' => 'http://www.nic.sc', 'registrar' => 'VCS (Pty) Limited');
return $r;
}
开发者ID:469306621,项目名称:Languages,代码行数:7,代码来源:whois.sc.php
注:本文中的generic_parser_b函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论