コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: whois.nu.php プロジェクト: evdevgit/wpblock
 function parse($data_str, $query)
 {
     $items = array('name' => 'Domain Name (UTF-8):', 'created' => 'Record created on', 'expires' => 'Record expires on', 'changed' => 'Record last updated on', 'status' => 'Record status:', 'handle' => 'Record ID:');
     while (list($key, $val) = each($data_str['rawdata'])) {
         $val = trim($val);
         if ($val != '') {
             if ($val == 'Domain servers in listed order:') {
                 while (list($key, $val) = each($data_str['rawdata'])) {
                     $val = trim($val);
                     if ($val == '') {
                         break;
                     }
                     $r['regrinfo']['domain']['nserver'][] = $val;
                 }
                 break;
             }
             reset($items);
             while (list($field, $match) = each($items)) {
                 if (strstr($val, $match)) {
                     $r['regrinfo']['domain'][$field] = trim(substr($val, strlen($match)));
                     break;
                 }
             }
         }
     }
     if (isset($r['regrinfo']['domain'])) {
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = array('whois' => 'whois.nic.nu', 'referrer' => 'http://www.nunames.nu', 'registrar' => '.NU Domain, Ltd');
     format_dates($r, 'dmy');
     return $r;
 }
コード例 #3
0
 function parse($data_str, $query)
 {
     $items = array('domain.created' => 'Fecha de Alta:', 'domain.expires' => 'Fecha de Caducidad:', 'owner.name' => 'Titular:', 'admin' => 'Contacto Administrativo:', 'tech' => 'Contacto Técnico:', 'domain.nserver' => 'Servidores DNS:');
     $extra = array('nombre:' => 'name', 'organización:' => 'organization', 'dirección:' => 'address.street', 'población:' => 'address.city', 'código postal:' => 'address.pcode', 'país:' => 'address.country', 'teléfono:' => 'phone', 'provincia:' => '');
     array_shift($data_str['rawdata']);
     array_shift($data_str['rawdata']);
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     if (!isset($r['regrinfo']['domain']['created']) || is_array($r['regrinfo']['domain']['created'])) {
         $r['regrinfo'] = array('registered' => 'no');
         $r['rawdata'] = $data_str['rawdata'];
         $r['rawdata'][] = 'Domain not found';
         return $r;
     }
     if (isset($r['regrinfo']['admin'])) {
         $items['admin'] .= ' ' . $r['regrinfo']['admin'];
     }
     if (isset($r['regrinfo']['tech'])) {
         $items['tech'] .= ' ' . $r['regrinfo']['tech'];
     }
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     $r['rawdata'] = $data_str['rawdata'];
     $r['regrinfo']['admin'] = get_contact($r['regrinfo']['admin'], $extra);
     $r['regrinfo']['tech'] = get_contact($r['regrinfo']['tech'], $extra);
     $r['regrinfo']['registered'] = 'yes';
     $r['regyinfo'] = array('referrer' => 'http://www.nic.es', 'registrar' => 'ES-NIC');
     format_dates($r, 'ymd');
     return $r;
 }
コード例 #4
0
 function parse($data, $query)
 {
     $items = array('domain.name' => 'Domain:', 'domain.status' => 'Status:', 'domain.nserver' => 'Nameservers:', 'domain.created' => 'Registered:', 'owner' => 'Licensee:', 'admin' => 'Onsite Contacts:', 'tech' => 'Agent Technical Contacts:', 'agent' => 'Agent:');
     $r['regrinfo'] = get_blocks($data['rawdata'], $items);
     if (isset($r['regrinfo']['domain']['name'])) {
         $r['regrinfo']['registered'] = 'yes';
         $r['regrinfo']['tech'] = get_contact($r['regrinfo']['tech']);
         $r['regrinfo']['owner'] = get_contact($r['regrinfo']['owner']);
         if (isset($r['regrinfo']['admin'])) {
             $r['regrinfo']['admin'] = get_contact($r['regrinfo']['admin']);
         }
         if (isset($r['regrinfo']['agent'])) {
             $sponsor = get_contact($r['regrinfo']['agent']);
             unset($r['regrinfo']['agent']);
             $r['regrinfo']['domain']['sponsor'] = $sponsor['name'];
         }
         $r = format_dates($r, '-mdy');
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo']['referrer'] = 'http://www.domain-registry.nl';
     $r['regyinfo']['registrar'] = 'DNS Belgium';
     $r['rawdata'] = $data['rawdata'];
     return $r;
 }
 function parse($data_str, $query)
 {
     $items = array('domain.name' => 'Domain Name            : ', 'domain.created' => 'Record Created         :', 'domain.changed' => 'Record	Last Updated    :', 'owner.name' => 'Registered for         :', 'admin' => 'Administrative Contact :', 'tech' => 'Technical Contact      :', 'domain.nserver' => 'Domain Name Servers listed in order:', 'registered' => 'No such domain: ', '' => 'The ZA NiC whois');
     // Arrange contacts ...
     $rawdata = array();
     while (list($key, $line) = each($data_str['rawdata'])) {
         if (strpos($line, ' Contact ') !== false) {
             $pos = strpos($line, ':');
             if ($pos !== false) {
                 $rawdata[] = substr($line, 0, $pos + 1);
                 $rawdata[] = trim(substr($line, $pos + 1));
                 continue;
             }
         }
         $rawdata[] = $line;
     }
     $r['regrinfo'] = get_blocks($rawdata, $items);
     if (isset($r['regrinfo']['registered'])) {
         $r['regrinfo']['registered'] = 'no';
     } else {
         if (isset($r['regrinfo']['admin'])) {
             $r['regrinfo']['admin'] = get_contact($r['regrinfo']['admin']);
         }
         if (isset($r['regrinfo']['tech'])) {
             $r['regrinfo']['tech'] = get_contact($r['regrinfo']['tech']);
         }
     }
     $r['regyinfo']['referrer'] = 'http://www.za.net/';
     // or http://www.za.org
     $r['regyinfo']['registrar'] = 'ZA NiC';
     format_dates($r, 'xmdxxy');
     return $r;
 }
コード例 #6
0
ファイル: whois.es.php プロジェクト: 469306621/Languages
 function parse($data_str, $query)
 {
     $items = array('domain.created' => 'Fecha Creación:', 'domain.expires' => 'Fecha Expiración:', 'owner.name' => 'Registrante:', 'admin' => 'Contacto Administrativo:', 'tech.handle' => 'Contacto Técnico:', 'billing.handle' => 'Contacto Facturación:', 'domain.nserver' => 'Servidores DNS:');
     array_shift($data_str['rawdata']);
     array_shift($data_str['rawdata']);
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     if (!isset($r['regrinfo']['domain']['created']) || is_array($r['regrinfo']['domain']['created'])) {
         $r['regrinfo'] = array('registered' => 'no');
         $r['rawdata'] = $data_str['rawdata'];
         $r['rawdata'][] = 'Domain not found';
         return $r;
     }
     if (isset($r['regrinfo']['admin'])) {
         $handle = $r['regrinfo']['admin'];
         $items['admin'] .= ' ' . $r['regrinfo']['admin'];
     }
     $r['regrinfo'] = get_blocks($data_str['rawdata'], $items);
     $r['rawdata'] = $data_str['rawdata'];
     $r['regrinfo']['admin'] = get_contact($r['regrinfo']['admin']);
     $r['regrinfo']['admin']['handle'] = $handle;
     $r['regrinfo']['registered'] = 'yes';
     $r['regyinfo'] = array('referrer' => 'http://www.nic.es', 'registrar' => 'ES-NIC');
     format_dates($r, 'ymd');
     return $r;
 }
コード例 #7
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrator:', 'tech' => 'Technical Contactor:', 'bill' => 'Billing Contactor:', 'domain.name' => 'Domain name:', 'domain.name#' => 'Domain Name:', 'domain.nserver' => 'Domain servers in listed order:', 'domain.created' => 'Record created on ', 'domain.expires' => 'Record expired on ', 'domain.changed' => 'Record last updated at ');
     $extra = array('tel--' => 'phone', 'tel:' => 'phone', 'tel --:' => 'phone', 'email-:' => 'email', 'email:' => 'email', 'mail:' => 'email', 'name--' => 'name', 'org:' => 'organization', 'zipcode:' => 'address.pcode', 'postcode:' => 'address.pcode', 'address:' => 'address.street', 'city:' => 'address.city', 'province:' => '', ',province:' => '', ',country:' => 'address.country');
     $r = get_blocks($data_str, $items, true);
     if (isset($r['owner'])) {
         $r['owner'] = get_contact($r['owner'], $extra);
     }
     if (isset($r['admin'])) {
         $r['admin'] = get_contact($r['admin'], $extra);
     }
     if (isset($r['tech'])) {
         $r['tech'] = get_contact($r['tech'], $extra);
     }
     if (isset($r['bill'])) {
         $r['bill'] = get_contact($r['bill'], $extra);
     }
     foreach ($r as $key => $part) {
         if (isset($part['email'])) {
             @(list($email, $phone) = explode(' ', $part['email']));
             $email = str_replace('(', '', $email);
             $email = str_replace(')', '', $email);
             $r[$key]['email'] = $email;
             if ($phone != '') {
                 $r[$key]['phone'] = $phone;
             }
         }
     }
     format_dates($r['domain'], 'mdy');
     return $r;
 }
コード例 #8
0
 function parse($data_str, $query)
 {
     $translate = array('fax-no' => 'fax', 'e-mail' => 'email', 'hun-id' => 'handle', 'person' => 'name', 'nameserver' => 'nserver', 'person' => 'name', 'org' => 'organization', 'registered' => 'created');
     $contacts = array('registrar' => 'owner', 'admin-c' => 'admin', 'tech-c' => 'tech', 'billing-c' => 'billing', 'zone-c' => 'zone', 'owner-hun-id' => 'owner');
     // make those broken hungary comments standards-conforming
     // replace first found hun-id with owner-hun-id (will be parsed later on)
     // make output UTF-8
     $comments = true;
     $owner_id = true;
     foreach ($data_str['rawdata'] as $i => $val) {
         if ($comments) {
             if (strpos($data_str['rawdata'][$i], 'domain:') === false) {
                 if ($i) {
                     $data_str['rawdata'][$i] = '% ' . $data_str['rawdata'][$i];
                 }
             } else {
                 $comments = false;
             }
         } else {
             if ($owner_id && substr($data_str['rawdata'][$i], 0, 7) == 'hun-id:') {
                 $data_str['rawdata'][$i] = 'owner-' . $data_str['rawdata'][$i];
                 $owner_id = false;
             }
         }
     }
     $reg = generic_parser_a($data_str['rawdata'], $translate, $contacts);
     unset($reg['domain']['organization']);
     unset($reg['domain']['address']);
     unset($reg['domain']['phone']);
     unset($reg['domain']['fax']);
     $r['regrinfo'] = $reg;
     $r['regyinfo'] = array('referrer' => 'http://www.nic.hu', 'registrar' => 'HUNIC');
     return format_dates($r, 'ymd');
 }
コード例 #9
0
 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;
 }
コード例 #10
0
 function parse($data_str, $query)
 {
     $items = array('admin' => 'Administrative', 'tech' => 'Technical', 'domain.created' => 'Created on:', 'domain.changed' => 'Last Updated on:', 'domain.expires' => 'Expires on:', 'domain.nserver' => 'Domain servers in listed order:', 'domain.sponsor' => "Registrar:");
     $r = get_blocks($data_str, $items);
     $r = format_dates($r, 'dmy');
     return $r;
 }
コード例 #11
0
 function parse($data_str, $query)
 {
     $items = array('domain.name' => 'Domain name:', 'domain.sponsor' => 'Registrar:', 'domain.nserver' => 'Name Servers:', 'domain.changed' => 'Domain record last updated:', 'domain.created' => 'Domain record activated:', 'owner' => 'Registrant:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'billing' => 'Billing Contact:');
     $b = get_blocks($data_str['rawdata'], $items);
     if (isset($b['owner'])) {
         $b['owner'] = get_contact($b['owner']);
     }
     if (isset($b['admin'])) {
         $b['admin'] = get_contact($b['admin']);
     }
     if (isset($b['tech'])) {
         $b['tech'] = get_contact($b['tech']);
         if ($b['tech']['name'] == 'Same as above') {
             $b['tech'] = $b['admin'];
         }
     }
     if (isset($b['billing'])) {
         $b['billing'] = get_contact($b['billing']);
     }
     format_dates($b, 'dmy');
     $r['regrinfo'] = $b;
     $r['regyinfo']['referrer'] = 'http://whois.educause.net';
     $r['regyinfo']['registrar'] = 'EDUCASE';
     return $r;
 }
コード例 #12
0
 function parse($data, $query)
 {
     $items = array('domain.name' => 'Domain name:', 'domain.status' => 'Status:', 'domain.nserver' => 'Domain nameservers:', 'domain.created' => 'Date registered:', 'domain.changed' => 'Record last updated:', 'domain.sponsor' => 'Registrar:', 'admin' => 'Administrative contact:', 'tech' => 'Technical contact(s):');
     $r = array();
     $r['regrinfo'] = get_blocks($data['rawdata'], $items);
     $r['regyinfo']['referrer'] = 'http://www.domain-registry.nl';
     $r['regyinfo']['registrar'] = 'Stichting Internet Domeinregistratie NL';
     if (!isset($r['regrinfo']['domain']['status'])) {
         $r['regrinfo']['registered'] = 'no';
         return $r;
     }
     if (isset($r['regrinfo']['tech'])) {
         $r['regrinfo']['tech'] = $this->get_contact($r['regrinfo']['tech']);
     }
     if (isset($r['regrinfo']['zone'])) {
         $r['regrinfo']['zone'] = $this->get_contact($r['regrinfo']['zone']);
     }
     if (isset($r['regrinfo']['admin'])) {
         $r['regrinfo']['admin'] = $this->get_contact($r['regrinfo']['admin']);
     }
     if (isset($r['regrinfo']['owner'])) {
         $r['regrinfo']['owner'] = $this->get_contact($r['regrinfo']['owner']);
     }
     $r['regrinfo']['registered'] = 'yes';
     format_dates($r, 'dmy');
     return $r;
 }
コード例 #13
0
 function parse($data_str, $query)
 {
     $translate = array('fax-no' => 'fax', 'e-mail' => 'email', 'nic-hdl' => 'handle', 'person' => 'name', 'country' => 'address', 'netname' => 'name', 'descr' => 'desc', 'aut-num' => 'handle', 'country' => 'country');
     $contacts = array('admin-c' => 'admin', 'tech-c' => 'tech');
     $blocks = generic_parser_a_blocks($data_str, $translate, $disclaimer);
     $r = array();
     if (isset($disclaimer) && is_array($disclaimer)) {
         $r['disclaimer'] = $disclaimer;
     }
     if (empty($blocks) || !is_array($blocks['main'])) {
         $r['registered'] = 'no';
     } else {
         if (isset($blocks[$query])) {
             $as = true;
             $rb = $blocks[$query];
         } else {
             $rb = $blocks['main'];
             $as = false;
         }
         $r['registered'] = 'yes';
         while (list($key, $val) = each($contacts)) {
             if (isset($rb[$key])) {
                 if (is_array($rb[$key])) {
                     $blk = $rb[$key][count($rb[$key]) - 1];
                 } else {
                     $blk = $rb[$key];
                 }
                 //$blk = strtoupper(strtok($blk,' '));
                 if (isset($blocks[$blk])) {
                     $r[$val] = $blocks[$blk];
                 }
                 unset($rb[$key]);
             }
         }
         $r['network'] = $rb;
         format_dates($r, 'Ymd');
         if (isset($r['network']['desc'])) {
             if (is_array($r['network']['desc'])) {
                 $r['owner']['organization'] = array_shift($r['network']['desc']);
                 $r['owner']['address'] = $r['network']['desc'];
             } else {
                 $r['owner']['organization'] = $r['network']['desc'];
             }
             unset($r['network']['desc']);
         }
         if (isset($r['network']['address'])) {
             if (isset($r['owner']['address'])) {
                 $r['owner']['address'][] = $r['network']['address'];
             } else {
                 $r['owner']['address'] = $r['network']['address'];
             }
             unset($r['network']['address']);
         }
     }
     $r = array('regrinfo' => $r);
     $r['regyinfo']['type'] = 'ip';
     $r['regyinfo']['registrar'] = 'Asia Pacific Network Information Centre';
     return $r;
 }
コード例 #14
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant Name:', 'admin' => 'Admin Name:', 'tech' => 'Tech Name:', 'domain.name' => 'Domain Name:', 'domain.nserver.' => 'Name Server:', 'domain.created' => 'Creation Date:', 'domain.expires' => 'Registrar Registration Expiration Date:', 'domain.changed' => 'Update Date:', 'domain.sponsor' => 'Registrar:');
     $r = get_blocks($data_str, $items);
     $r['owner'] = get_contact($r['owner']);
     $r['admin'] = get_contact($r['admin'], array(), true);
     $r['tech'] = get_contact($r['tech'], array(), true);
     return format_dates($r, 'dmy');
 }
コード例 #15
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative Contact', 'tech' => 'Technical Contact', 'domain.name' => 'Domain Name:', 'domain.nserver.' => 'Domain servers in listed order:', 'domain.created' => 'Created on:', 'domain.expires' => 'Expires on:', 'domain.changed' => 'Last Updated on:', 'domain.sponsor' => 'Registered through:');
     $r = get_blocks($data_str, $items);
     $r['owner'] = get_contact($r['owner']);
     $r['admin'] = get_contact($r['admin'], false, true);
     $r['tech'] = get_contact($r['tech'], false, true);
     return format_dates($r, 'dmy');
 }
コード例 #16
0
 function parse($data_str, $query)
 {
     $items = array("owner" => "Registrant:", "admin" => "Administrative Contact", "tech" => "Technical Contact", "domain.name" => "Domain name:", "domain.sponsor" => "Registration Service Provider:", "domain.nserver" => "Domain servers in listed order:", "domain.changed" => "Record last updated ", "domain.created" => "Record created on", "domain.expires" => "Record expires on");
     $r = get_blocks($data_str, $items);
     $r["owner"] = get_contact($r["owner"]);
     $r["admin"] = get_contact($r["admin"]);
     $r["tech"] = get_contact($r["tech"]);
     format_dates($r, 'mdy');
     return $r;
 }
コード例 #17
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative', 'tech' => 'Technical', 'domain.name' => 'Domain name:', 'domain.sponsor' => 'Registrar:', 'domain.nserver.' => 'Domain servers in listed order:');
     $r = get_blocks($data_str, $items);
     $r['owner'] = get_contact($r['owner']);
     $r['admin'] = get_contact($r['admin']);
     $r['tech'] = get_contact($r['tech']);
     format_dates($r, 'ymd');
     return $r;
 }
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'owner#' => '(Registrant):', 'admin' => 'Administrative Contact', 'tech' => 'Technical Contact', 'domain.name' => 'Domain name:', 'domain.sponsor' => 'Registration Service Provided By:', 'domain.nserver' => 'Domain servers in listed order:', 'domain.changed' => 'Record last updated ', 'domain.created' => 'Record created on', 'domain.created#' => 'Creation Date:', 'domain.expires' => 'Record expires on', 'domain.expires#' => 'Expiration Date:');
     $r = get_blocks($data_str, $items, true);
     $r['owner'] = get_contact($r['owner'], false, true);
     $r['admin'] = get_contact($r['admin'], false, true);
     $r['tech'] = get_contact($r['tech'], false, true);
     format_dates($r, 'mdy');
     return $r;
 }
コード例 #19
0
 function parse($data_str, $query)
 {
     $items = array("owner" => "Registrant:", "admin" => "Administrative contact:", "tech" => "Technical contact:", "domain.name" => "Domain name:", "domain.nserver." => "Domain servers in listed order:", "domain.created" => "Created:", "domain.expires" => "Expires:", "domain.changed" => "Last updated:");
     $r = get_blocks($data_str, $items);
     $r["owner"] = get_contact($r["owner"]);
     $r["admin"] = get_contact($r["admin"]);
     $r["tech"] = get_contact($r["tech"]);
     $r = format_dates($r, 'dmy');
     return $r;
 }
コード例 #20
0
 function parse($data_str, $query)
 {
     $items = array("owner" => "Owner Contact:", "admin" => "Admin Contact", "tech" => "Technical Contact, Zone Contact", "domain.name" => "Domain Name:", "domain.nserver." => "Domain servers in listed order:", "domain.expires" => "Record expires on: ", "domain.changed" => "Record last updated on: ", '' => 'RACE Name:');
     $r = get_blocks($data_str, $items);
     $r["owner"] = get_contact($r["owner"]);
     $r["admin"] = get_contact($r["admin"]);
     $r["tech"] = get_contact($r["tech"]);
     format_dates($r, 'ymd');
     return $r;
 }
コード例 #21
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative contact:', 'tech' => 'Technical contact', 'domain.name' => 'Domain name:', 'domain.nserver.' => 'Domain Servers in listed order:', 'domain.created' => 'Record created on', 'domain.expires' => 'Record expires on');
     $r = get_blocks($data_str, $items);
     $r['owner'] = get_contact($r['owner']);
     $r['admin'] = get_contact($r['admin']);
     $r['tech'] = get_contact($r['tech']);
     format_dates($r, 'ymd');
     return $r;
 }
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Holder Contact', 'admin' => 'Admin Contact', 'tech' => 'Tech. Contact', 'domain.nserver.' => 'Nameservers', 'domain.created' => 'Creation Date:', 'domain.expires' => 'Expiration Date:');
     $translate = array('city:' => 'address.city', 'org. name:' => 'organization', 'address1:' => 'address.street.', 'address2:' => 'address.street.', 'state:' => 'address.state', 'postal code:' => 'address.zip');
     $r = get_blocks($data_str, $items, true);
     $r['owner'] = get_contact($r['owner'], $translate);
     $r['admin'] = get_contact($r['admin'], $translate, true);
     $r['tech'] = get_contact($r['tech'], $translate, true);
     return format_dates($r, 'dmy');
 }
コード例 #23
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'billing' => 'Billing Contact:', 'domain.name' => 'Domain Name:', 'domain.nserver.' => 'Domain servers in listed order:', 'domain.created' => 'Creation Date:', 'domain.expires' => 'Expiration Date:', 'domain.status' => 'Status:', 'domain.sponsor' => 'Registration Service Provided By:');
     $r = get_blocks($data_str, $items);
     $r["owner"] = get_contact($r["owner"]);
     $r["admin"] = get_contact($r["admin"]);
     $r["tech"] = get_contact($r["tech"]);
     $r["billing"] = get_contact($r["billing"]);
     $r = format_dates($r, 'ymd');
     return $r;
 }
コード例 #24
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant', 'admin' => 'Administrative', 'tech' => 'Technical', 'billing' => 'Billing', 'domain.name' => 'Domain Name:', 'domain.nserver.' => 'Name Servers', 'domain.created' => 'Creation Date:', 'domain.expires' => 'Expiration Date:', 'domain.status' => 'Status:');
     $r = get_blocks($data_str, $items, true);
     $r['owner'] = get_contact($r['owner'], false, true);
     $r['admin'] = get_contact($r['admin'], false, true);
     $r['tech'] = get_contact($r['tech'], false, true);
     $r['billing'] = get_contact($r['billing'], false, true);
     $r = format_dates($r, 'dmy');
     return $r;
 }
コード例 #25
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant', 'admin' => 'Administrative', 'tech' => 'Technical', 'billing' => 'Billing', 'domain.name' => 'Domain:', 'domain.nserver.' => 'Domain Name Servers:', 'domain.created' => 'Record created on ', 'domain.expires' => 'Record expires on ', 'domain.changed' => 'Record last updated on ');
     $r = get_blocks($data_str, $items);
     $r['owner'] = get_contact($r['owner']);
     $r['admin'] = get_contact($r['admin']);
     $r['tech'] = get_contact($r['tech']);
     $r['billing'] = get_contact($r['billing']);
     $r = format_dates($r, 'mdy');
     return $r;
 }
コード例 #26
0
 function parse($data_str, $query)
 {
     $items = array("owner" => "Registrant", "admin" => "Administrative ", "tech" => "Technical ", "billing" => "Billing ", "domain.name" => "Domain Name:", "domain.nserver." => "Domain servers in listed order:", "domain.created" => "Record created on: ", "domain.expires" => "Domain Expires on: ", "domain.changed" => "Database last updated on: ");
     $r = get_blocks($data_str, $items);
     $r["owner"] = get_contact($r["owner"]);
     $r["admin"] = get_contact($r["admin"]);
     $r["tech"] = get_contact($r["tech"]);
     $r["billing"] = get_contact($r["billing"]);
     $r = format_dates($r, 'ymd');
     return $r;
 }
コード例 #27
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'billing' => 'Billing Contact:', 'domain.sponsor' => 'Registrar of Record:', 'domain.changed' => 'Record last updated on', 'domain.expires' => 'Record expires on', 'domain.created' => 'Record created on');
     $r = get_blocks($data_str, $items, true);
     $r['owner'] = get_contact($r['owner']);
     $r['admin'] = get_contact($r['admin']);
     $r['tech'] = get_contact($r['tech']);
     $r['billing'] = get_contact($r['billing']);
     format_dates($r, 'mdy');
     return $r;
 }
コード例 #28
0
 function parse($data_str, $query)
 {
     $items = array("owner" => "Registrant", "admin" => "Administrative", "tech" => "Technical", "billing" => "Billing", "domain.name" => "Domain:", "domain.nserver." => "Domain Name Servers:", "domain.created" => "Record created on ", "domain.expires" => "Record expires on ", "domain.changed" => "Record last updated on ");
     $r = get_blocks($data_str, $items);
     $r['owner'] = get_contact($r['owner']);
     $r['admin'] = get_contact($r['admin']);
     $r['tech'] = get_contact($r['tech']);
     $r['billing'] = get_contact($r['billing']);
     $r = format_dates($r, 'mdy');
     return $r;
 }
コード例 #29
0
 function parse($data_str, $query)
 {
     $items = array("owner" => "Registrant:", "admin" => "Administrative Contact", "tech" => "Technical Contact", "zone" => "Zone Contact", "domain.name" => "Domain Name:", "domain.changed" => "Last updated on", "domain.created" => "Domain created on", "domain.expires" => "Domain expires on");
     $r = get_blocks($data_str, $items);
     $r["owner"] = get_contact($r["owner"]);
     $r["admin"] = get_contact($r["admin"]);
     $r["tech"] = get_contact($r["tech"]);
     $r["zone"] = get_contact($r["zone"]);
     format_dates($r, 'dmy');
     return $r;
 }
コード例 #30
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative Contact', 'tech' => 'Technical Contact', 'zone' => 'Zone Contact', 'domain.name' => 'Domain Name:', 'domain.changed' => 'Last updated on', 'domain.created' => 'Domain created on', 'domain.expires' => 'Domain expires on');
     $r = get_blocks($data_str, $items, true);
     $r['owner'] = get_contact($r['owner']);
     $r['admin'] = get_contact($r['admin']);
     $r['tech'] = get_contact($r['tech']);
     $r['zone'] = get_contact($r['zone']);
     format_dates($r, 'dmy');
     return $r;
 }