Exemplo n.º 1
0
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Registrant:', 'domain.name' => 'Domain name:', 'domain.created' => 'Registered:', 'domain.changed' => 'Last modified:', 'domain.nserver' => 'DNS servers:', 'domain.status' => 'Status:', 'tech' => 'Technical contact:', 'admin' => 'Administrative contact:'];
     $r['regrinfo'] = \phpwhois\get_blocks($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['name'])) {
         $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo']);
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r = '';
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.isoc.am', 'registrar' => 'ISOCAM'];
     return $r;
 }
Exemplo n.º 2
0
 function parse($data, $query)
 {
     $items = ['domain.status' => 'Status:', 'domain.nserver' => 'Domain name servers in listed order:', 'domain.changed' => 'Record last updated on', 'owner' => 'rwhois search on', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'billing' => 'Billing Contact:', '#' => 'Search Again'];
     $r['regrinfo'] = \phpwhois\get_blocks($data['rawdata'], $items);
     if (isset($r['regrinfo']['domain']['status'])) {
         $r['regrinfo']['registered'] = 'yes';
         $r['regrinfo']['domain']['handler'] = strtok(array_shift($r['regrinfo']['owner']), ' ');
         $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo']);
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo']['referrer'] = 'http://www.org.za';
     $r['regyinfo']['registrar'] = 'The ORG.ZA Domain';
     return $r;
 }
Exemplo n.º 3
0
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Registrant:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'domain.name' => 'Domain Name:', 'domain.status' => 'Domain Status:', 'domain.created' => 'Created:', 'domain.changed' => 'Updated:', 'domain.expires' => 'Expired:', 'domain.nserver' => 'Domain servers in listed order:'];
     $extra = ['zip/postal code:' => 'address.pcode'];
     $r['regrinfo'] = \phpwhois\get_blocks($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['name'])) {
         $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo'], $extra);
         $r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r = '';
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.nic.ly', 'registrar' => 'Libya ccTLD'];
     return $r;
 }
Exemplo n.º 4
0
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Registrant:', 'domain.status' => 'Status:', 'domain.expires' => 'Expires:', 'domain.nserver' => 'Domain servers:'];
     $r['regrinfo'] = \phpwhois\get_blocks($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['status'])) {
         $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo']);
         date_default_timezone_set("Pacific/Fiji");
         if (isset($r['regrinfo']['domain']['expires'])) {
             $r['regrinfo']['domain']['expires'] = strftime("%Y-%m-%d", strtotime($r['regrinfo']['domain']['expires']));
         }
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.domains.fj', 'registrar' => 'FJ Domain Name Registry'];
     return $r;
 }
Exemplo n.º 5
0
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Titular:', 'domain.name' => 'Nombre de Dominio:', 'admin' => 'Contacto Administrativo', 'tech' => 'Contacto Tecnico', 'billing' => 'Contacto de Cobranza:', 'domain.created' => 'Fecha de Creacion:', 'domain.changed' => 'Ultima Actualizacion:', 'domain.expires' => 'Fecha de Vencimiento:', 'domain.status' => 'Estatus del dominio:', 'domain.nserver' => 'Servidor(es) de Nombres de Dominio'];
     $r['regrinfo'] = \phpwhois\get_blocks($data_str['rawdata'], $items);
     if (!isset($r['regrinfo']['domain']['created']) || is_array($r['regrinfo']['domain']['created'])) {
         $r['regrinfo'] = ['registered' => 'no'];
         return $r;
     }
     $dns = [];
     foreach ($r['regrinfo']['domain']['nserver'] as $nserv) {
         if ($nserv[0] == '-') {
             $dns[] = $nserv;
         }
     }
     $r['regrinfo']['domain']['nserver'] = $dns;
     $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo']);
     $r['regyinfo'] = ['referrer' => 'http://registro.nic.ve', 'registrar' => 'NIC-Venezuela - CNTI'];
     return $r;
 }
Exemplo n.º 6
0
 function parse($data, $query)
 {
     $items = ['domain.name' => ' / Domain Name:', 'domain.created' => 'Data de registo / Creation Date (dd/mm/yyyy):', 'domain.nserver.' => 'Nameserver:', 'domain.status' => 'Estado / Status:', 'owner' => 'Titular / Registrant', 'billing' => 'Entidade Gestora / Billing Contact', 'admin' => 'Respons�vel Administrativo / Admin Contact', 'tech' => 'Respons�vel T�cnico / Tech Contact', '#' => 'Nameserver Information'];
     $r['regrinfo'] = \phpwhois\get_blocks($data['rawdata'], $items);
     if (empty($r['regrinfo']['domain']['name'])) {
         print_r($r['regrinfo']);
         $r['regrinfo']['registered'] = 'no';
         return $r;
     }
     $r['regrinfo']['domain']['created'] = get_date($r['regrinfo']['domain']['created'], 'dmy');
     if ($r['regrinfo']['domain']['status'] == 'ACTIVE') {
         $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo']);
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.fccn.pt', 'registrar' => 'FCCN'];
     return $r;
 }
Exemplo n.º 7
0
 function parse($data, $query)
 {
     $items = ['owner' => 'Registrant', 'admin' => 'Admin', 'tech' => 'Technical', 'billing' => 'Billing', 'domain.nserver' => 'Name Servers:', 'domain.created' => 'Created:', 'domain.expires' => 'Expires:', 'domain.changed' => 'Modified:', 'domain.status' => 'Status:', 'domain.sponsor' => 'Registrar Name:'];
     $r['regrinfo'] = \phpwhois\get_blocks($data['rawdata'], $items);
     $items = ['phone number:' => 'phone', 'email address:' => 'email', 'fax number:' => 'fax', 'organisation:' => 'organization'];
     if (!empty($r['regrinfo']['domain']['created'])) {
         $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo'], $items);
         if (count($r['regrinfo']['billing']['address']) > 4) {
             $r['regrinfo']['billing']['address'] = array_slice($r['regrinfo']['billing']['address'], 0, 4);
         }
         $r['regrinfo']['registered'] = 'yes';
         \phpwhois\format_dates($r['regrinfo']['domain'], 'dmY');
     } else {
         $r = '';
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo']['referrer'] = 'http://www.dot.dm';
     $r['regyinfo']['registrar'] = 'dotFM';
     return $r;
 }
Exemplo n.º 8
0
 function parse($data, $query)
 {
     $items = ['domain.name' => 'Domain:', 'domain.status' => 'Status:', 'domain.nserver' => 'Nameservers:', 'domain.created' => 'Registered:', 'owner' => 'Licensee:', 'admin' => 'Onsite Contacts:', 'tech' => 'Registrar Technical Contacts:', 'agent' => 'Registrar:', 'agent.uri' => 'Website:'];
     $trans = ['company name2:' => ''];
     $r['regrinfo'] = \phpwhois\get_blocks($data['rawdata'], $items);
     if ($r['regrinfo']['domain']['status'] == 'REGISTERED') {
         $r['regrinfo']['registered'] = 'yes';
         $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo'], $trans);
         if (isset($r['regrinfo']['agent'])) {
             $sponsor = get_contact($r['regrinfo']['agent'], $trans);
             unset($r['regrinfo']['agent']);
             $r['regrinfo']['domain']['sponsor'] = $sponsor;
         }
         $r = \phpwhois\format_dates($r, '-mdy');
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo']['referrer'] = 'http://www.domain-registry.nl';
     $r['regyinfo']['registrar'] = 'DNS Belgium';
     return $r;
 }
Exemplo n.º 9
0
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Holder of domain name:', 'domain.name' => 'Domain name:', 'domain.created' => 'Date of last registration:', 'domain.changed' => 'Date of last modification:', 'tech' => 'Technical contact:', 'domain.nserver' => 'Name servers:', 'domain.dnssec' => 'DNSSEC:'];
     $trans = ['contractual language:' => 'language'];
     $r['regrinfo'] = \phpwhois\get_blocks($data_str['rawdata'], $items);
     if (!empty($r['regrinfo']['domain']['name'])) {
         $r['regrinfo'] = \phpwhois\get_contacts($r['regrinfo'], $trans);
         $r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
         if (isset($r['regrinfo']['domain']['changed'][0])) {
             $r['regrinfo']['domain']['changed'] = get_date($r['regrinfo']['domain']['changed'][0], 'dmy');
         }
         if (isset($r['regrinfo']['domain']['created'][0])) {
             $r['regrinfo']['domain']['created'] = get_date($r['regrinfo']['domain']['created'][0], 'dmy');
         }
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r = '';
         $r['regrinfo']['registered'] = 'no';
     }
     $r['regyinfo'] = ['referrer' => 'http://www.nic.ch', 'registrar' => 'SWITCH Domain Name Registration'];
     return $r;
 }