Exemplo n.º 1
0
 function parse($data_str, $query)
 {
     $items = array('domain.name' => 'Domain:', 'domain.nserver.' => 'Nserver:', 'domain.nserver.#' => 'Nsentry:', 'domain.status' => 'Status:', 'domain.changed' => 'Changed:', 'domain.desc.' => 'Descr:', 'owner' => '[Holder]', 'admin' => '[Admin-C]', 'tech' => '[Tech-C]', 'zone' => '[Zone-C]');
     $extra = array('address:' => 'address.street', 'city:' => 'address.city', 'pcode:' => 'address.pcode', 'country:' => 'address.country', 'organisation:' => 'organization', 'name:' => 'name', 'remarks:' => '', 'type:' => '');
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $extra);
     /*
     if (isset($r['regrinfo']['domain']['desc']))
     	{
     	if (!isset($r['regrinfo']['owner']['name']))
     		$r['regrinfo']['owner']['name'] = $r['regrinfo']['domain']['desc'][0];
     		
     	if (!isset($r['regrinfo']['owner']['address']))
     		for ($i=1; $i<count($r['regrinfo']['domain']['desc']); $i++)
     			$r['regrinfo']['owner']['address'][] = $r['regrinfo']['domain']['desc'][$i];
     			
     	unset($r['regrinfo']['domain']['desc']);
     	}
     */
     $r['regyinfo'] = array('registrar' => 'DENIC eG', 'referrer' => 'http://www.denic.de/');
     if (isset($r['regrinfo']['domain'])) {
         $r['regrinfo']['domain']['changed'] = substr($r['regrinfo']['domain']['changed'], 0, 10);
         $r['regrinfo']['registered'] = 'yes';
     } else {
         $r['regrinfo']['registered'] = 'no';
     }
     return $r;
 }
Exemplo n.º 2
0
 function parse($data_str, $query)
 {
     $items = array('domain.created' => 'created:', 'domain.changed' => 'last modified:', 'domain.sponsor' => 'REGISTRAR:', '#' => 'WHOIS displays data with a delay not exceeding 15 minutes in relation to the .pl Registry system');
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd');
     $r['regyinfo'] = array('referrer' => 'http://www.dns.pl/english/index.html', 'registrar' => 'NASK');
     return $r;
 }
Exemplo n.º 3
0
 function parse($data_str, $query)
 {
     $items = array('admin' => '(Administrative Contact)', 'tech' => 'Contacto Técnico (Technical Contact):', 'domain.nserver' => 'Servidores de nombre (Domain servers):', 'domain.changed' => '(Database last updated on):');
     $trans = array('organización:' => 'organization', 'nombre      :' => 'name');
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'd-m-y', $trans);
     $r['regyinfo'] = array('referrer' => 'http://www.nic.cl', 'registrar' => 'NIC Chile');
     return $r;
 }
Exemplo n.º 4
0
 function parse($data_str, $query)
 {
     $translate = ['contact nic-hdl:' => 'handle', 'contact name:' => 'name'];
     $items = ['admin' => 'Contact type:      Admin', 'tech' => 'Contact type:      Tech', 'zone' => 'Contact type:      Zone', 'owner.name' => 'Registrar:', 'owner.email' => 'Registrar email:', 'domain.status' => 'Status:', 'domain.created' => 'Registered:', 'domain.changed' => 'Last updated:', 'domain.nserver.' => 'NS:', '' => '%'];
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $translate);
     $r['regyinfo'] = ['referrer' => 'http://www.domreg.lt', 'registrar' => 'DOMREG.LT'];
     return $r;
 }
Exemplo n.º 5
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant Contact:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'domain.name' => 'Domain name:', 'domain.sponsor' => 'Registration Service Provided By:', 'domain.referrer' => 'Contact:', 'domain.nserver.' => 'Name Servers:', 'domain.created' => 'Creation date:', 'domain.expires' => 'Expiration date:', 'domain.status' => 'Status:');
     $r = easy_parser($data_str, $items, 'dmy', array(), false, true);
     if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) {
         $r['domain']['sponsor'] = $r['domain']['sponsor'][0];
     }
     return $r;
 }
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Registrant Contact:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'billing' => 'Billing Contact:', 'domain.name' => 'Domain Name:', 'domain.nserver' => 'Domain servers in listed order:', 'domain.created' => 'Record created on', 'domain.expires' => 'Record expires on'];
     $r = easy_parser($data_str, $items, 'dmy', false, false, true);
     if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) {
         $r['domain']['sponsor'] = $r['domain']['sponsor'][0];
     }
     return $r;
 }
Exemplo n.º 7
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact, Zone Contact:', 'domain.name' => 'Domain Name:', 'domain.sponsor' => 'Registrar Name:', 'domain.nserver' => 'Domain servers in listed order:', 'domain.created' => 'Created on..............:', 'domain.expires' => 'Expires on..............:', 'domain.changed' => 'Record last updated on..:');
     $r = easy_parser($data_str, $items, 'dmy', false, false, true);
     if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) {
         $r['domain']['sponsor'] = $r['domain']['sponsor'][0];
     }
     return $r;
 }
Exemplo n.º 8
0
 function parse($data_str, $query)
 {
     $items = array('domain.name' => 'Domain:', 'domain.nserver' => 'Nameservers', 'domain.status' => 'Status:', 'domain.expires' => 'Expire Date:', 'owner' => 'Registrant', 'admin' => 'Admin Contact', 'tech' => 'Technical Contacts', 'registrar' => 'Registrar');
     $extra = array('address:' => 'address.', 'contactid:' => 'handle', 'organization:' => 'organization', 'created:' => 'created', 'last update:' => 'changed', 'web:' => 'web');
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $extra);
     if (isset($r['regrinfo']['registrar'])) {
         $r['regrinfo']['domain']['registrar'] = $r['regrinfo']['registrar'];
         unset($r['regrinfo']['registrar']);
     }
     $r['regyinfo'] = array('registrar' => 'IT-Nic', 'referrer' => 'http://www.nic.it/');
     return $r;
 }
Exemplo n.º 9
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Domain ' . $query . ':', 'admin' => 'Administrative contact:', 'tech' => 'Technical contact:', 'billing' => 'Billing contact:', '' => 'Record dates:');
     $r = easy_parser($data_str, $items, 'mdy', false, false, true);
     if (!isset($r['tech'])) {
         $r['tech'] = $r['billing'];
     }
     if (!isset($r['admin'])) {
         $r['admin'] = $r['tech'];
     }
     return $r;
 }
Exemplo n.º 10
0
 function parse($data_str, $query)
 {
     $items = ['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:'];
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'dmy');
     if (isset($b['tech'])) {
         if ($r['regrinfo']['tech']['name'] == 'Same as above') {
             $r['regrinfo']['tech'] = $r['regrinfo']['admin'];
         }
     }
     $r['regyinfo']['referrer'] = 'http://whois.educause.net';
     $r['regyinfo']['registrar'] = 'EDUCASE';
     return $r;
 }
Exemplo n.º 11
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact:', 'billing' => 'Billing Contact:', 'domain.nserver' => 'Name Servers:', 'domain.created' => 'Created On:', 'domain.expires' => 'Expiration Date:', 'domain.changed' => 'Last Updated On:', 'domain.sponsor' => 'Registrar:');
     $extra = array('city:' => 'address.city', 'state:' => 'address.state', 'dns:' => '0');
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'dmy', $extra);
     $r['regyinfo'] = array('registrar' => 'NIC Mexico', 'referrer' => 'http://www.nic.mx/');
     if (empty($r['regrinfo']['domain']['created'])) {
         $r['regrinfo']['registered'] = 'no';
     } else {
         $r['regrinfo']['registered'] = 'yes';
     }
     return $r;
 }
Exemplo n.º 12
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative contact:', 'tech' => 'Technical contact:', 'domain.nserver' => 'Name servers:', 'domain.status' => 'Domain status:', 'domain.created' => 'Approval date:', 'domain.expires' => 'Renewal date:', 'domain.changed' => 'Name servers last changed:');
     $extra = array('postal address:' => 'address.0', 'job title:' => '', 'number:' => 'handle', 'description:' => 'organization');
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $extra);
     $r['regyinfo'] = array('registrar' => 'CIRA', 'referrer' => 'http://www.cira.ca/');
     if (empty($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == 'AVAIL') {
         $r['regrinfo']['registered'] = 'no';
     } else {
         $r['regrinfo']['registered'] = 'yes';
     }
     return $r;
 }
 function parse($data_str, $query)
 {
     $items = array('domain.name' => 'Domain:', 'domain.nserver.' => 'Nserver:', 'domain.nserver.#' => 'Nsentry:', 'domain.status' => 'Status:', 'domain.changed' => 'Changed:', 'domain.desc.' => 'Descr:', 'owner' => '[Holder]', 'admin' => '[Admin-C]', 'tech' => '[Tech-C]', 'zone' => '[Zone-C]');
     $extra = array('city:' => 'address.city', 'postalcode:' => 'address.pcode', 'countrycode:' => 'address.country', 'remarks:' => '', 'sip:' => 'sip', 'type:' => '');
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $extra);
     $r['regyinfo'] = array('registrar' => 'DENIC eG', 'referrer' => 'http://www.denic.de/');
     if (!isset($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == "free") {
         $r['regrinfo']['registered'] = 'no';
     } else {
         $r['regrinfo']['domain']['changed'] = substr($r['regrinfo']['domain']['changed'], 0, 10);
         $r['regrinfo']['registered'] = 'yes';
     }
     return $r;
 }
Exemplo n.º 14
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant Contact:', 'admin' => 'Administrative Contact:', 'tech' => 'Technical Contact', 'domain.name' => 'Domain Name:', 'domain.status' => 'Status:', 'domain.nserver' => 'Name Server:', 'domain.created' => 'Creation Date:', 'domain.expires' => 'Expiration Date:');
     $r = easy_parser($data_str, $items, 'dmy', array(), false, true);
     if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) {
         $r['domain']['sponsor'] = $r['domain']['sponsor'][0];
     }
     foreach ($r as $key => $part) {
         if (isset($part['address'])) {
             $r[$key]['organization'] = array_shift($r[$key]['address']);
             $r[$key]['address']['country'] = array_pop($r[$key]['address']);
         }
     }
     return $r;
 }
Exemplo n.º 15
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative contact:', 'tech' => 'Technical contact:', 'domain.sponsor' => 'Registrar:', 'domain.nserver' => 'Name servers:', 'domain.status' => 'Domain status:', 'domain.created' => 'Creation date:', 'domain.expires' => 'Expiry date:', 'domain.changed' => 'Updated date:');
     $extra = array('postal address:' => 'address.0', 'job title:' => '', 'number:' => 'handle', 'description:' => 'organization');
     $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $extra);
     if (!empty($r['regrinfo']['domain']['sponsor'])) {
         list($v, $reg) = explode(':', $r['regrinfo']['domain']['sponsor'][0]);
         $r['regrinfo']['domain']['sponsor'] = trim($reg);
     }
     if (empty($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == 'available') {
         $r['regrinfo']['registered'] = 'no';
     } else {
         $r['regrinfo']['registered'] = 'yes';
     }
     $r['regyinfo'] = array('registrar' => 'CIRA', 'referrer' => 'http://www.cira.ca/');
     return $r;
 }
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrator:', 'tech' => 'Technical Contactor:', 'billing' => '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 = easy_parser($data_str, $items, 'mdy', $extra, false, true);
     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;
             }
         }
     }
     return $r;
 }
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant Info:', 'admin' => 'Administrative Info:', 'tech' => 'Technical Info:', 'domain.name' => 'Domain Name:', 'domain.sponsor' => 'Provider Name....:', 'domain.referrer' => 'Provider Homepage:', 'domain.nserver' => 'Domain servers in listed order:', 'domain.created' => 'Created on..............:', 'domain.expires' => 'Expires on..............:', 'domain.changed' => 'Last modified on........:', 'domain.status' => 'Status:');
     while (list($key, $val) = each($data_str)) {
         $faststr = strpos($val, ' (FAST-');
         if ($faststr) {
             $data_str[$key] = substr($val, 0, $faststr);
         }
     }
     $r = easy_parser($data_str, $items, 'dmy', array(), false, true);
     if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) {
         $r['domain']['sponsor'] = $r['domain']['sponsor'][0];
     }
     if (isset($r['domain']['nserver'])) {
         reset($r['domain']['nserver']);
         while (list($key, $val) = each($r['domain']['nserver'])) {
             if ($val == '=-=-=-=') {
                 unset($r['domain']['nserver'][$key]);
             }
         }
     }
     return $r;
 }
Exemplo n.º 18
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative Contact', 'tech' => 'Technical  Contact', 'domain.name' => 'Domain Name:', 'domain.sponsor' => 'Registrar Name....:', 'domain.referrer' => 'Registrar Homepage:', 'domain.nserver' => 'DNS Servers:', 'domain.created' => 'Record created on', 'domain.expires' => 'Record expires on', 'domain.changed' => 'Record last updated on', 'domain.status' => 'Domain status:');
     return easy_parser($data_str, $items, 'dmy', false, false, true);
 }
Exemplo n.º 19
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'REGISTRANT CONTACT INFO', 'admin' => 'ADMINISTRATIVE CONTACT INFO', 'tech' => 'TECHNICAL CONTACT INFO', 'billing' => 'BILLING CONTACT INFO', 'domain.name' => 'Domain Name:', 'domain.sponsor' => 'Registrar', 'domain.created' => 'Creation Date:', 'domain.expires' => 'Expiration Date:');
     $extra = array('phone:' => 'phone', 'email address:' => 'email');
     return easy_parser($data_str, $items, 'y-m-d', $extra, false, true);
 }
 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');
     return easy_parser($data_str, $items, 'dmy', false, true, true);
 }
 function parse($data_str, $query)
 {
     $items = array('owner#0' => 'Registrant Info:', 'owner#1' => 'Organization:', 'owner#2' => 'Registrant:', 'owner#3' => 'Registrant Contact:', 'admin' => 'Administrative', 'tech' => 'Technical', 'zone' => 'Zone', 'domain.sponsor#0' => 'Registrar Name....:', 'domain.sponsor#1' => 'Registration Service Provided By:', 'domain.referrer' => 'Registrar Homepage:', 'domain.nserver' => 'Domain servers in listed order:', 'domain.nserver' => 'DNS Servers:', 'domain.name' => 'Domain name:', 'domain.created#0' => 'Created on..............:', 'domain.created#1' => 'Creation date:', 'domain.expires#0' => 'Expires on..............:', 'domain.expires#1' => 'Expiration date:', 'domain.changed' => 'Record last updated on..:', 'domain.status' => 'Status:');
     return easy_parser($data_str, $items, 'ymd');
 }
Exemplo n.º 22
0
 function parse($data_str, $query)
 {
     $items = array('admin' => 'contact:      administrative', 'tech' => 'contact:      technical', 'domain.nserver.' => 'nserver:', 'domain.created' => 'created:', 'domain.changed' => 'changed:', 'domain.source' => 'source:', 'domain.name' => 'domain:', 'disclaimer.' => '% ');
     return easy_parser($data_str, $items, 'Ymd', false, false, false, 'owner');
 }
 function parse($data_str, $query)
 {
     $items = array('owner#0' => 'Registrant Contact', 'owner#1' => 'REGISTRANT Contact:', 'admin#0' => 'Administrative Contact', 'admin#1' => 'ADMINISTRATIVE Contact:', 'tech#0' => 'Technical Contact', 'tech#1' => 'TECHNICAL Contact:', 'billing#0' => 'Billing Contact', 'billing#1' => 'BILLING Contact:', 'domain.nserver' => 'Nameservers', 'domain.name#0' => 'Domain name:', 'domain.name#1' => 'Domain name-', 'domain.sponsor' => 'Registration Service Provided By:', 'domain.status' => 'Status:', 'domain.created#0' => 'Creation date:', 'domain.expires#0' => 'Expiration date:', 'domain.created#1' => 'Created:', 'domain.expires#1' => 'Expires:', 'domain.created#2' => 'Start of registration-', 'domain.expires#2' => 'Registered through-');
     return easy_parser($data_str, $items, 'dmy', array(), false, true);
 }
Exemplo n.º 24
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');
     return easy_parser($data_str, $items, 'dmy', false, false, true);
 }
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Registrant:', 'owner#' => '(Registrant):', 'admin' => 'Administrative Contact', 'tech' => 'Technical Contact', 'billing' => 'Billing 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:', 'domain.status' => 'Status:'];
     return easy_parser($data_str, $items, 'mdy', false, true, true);
 }
Exemplo n.º 26
0
 function parse($data_str, $query)
 {
     $items = ['owner' => 'Registrant', 'admin' => 'Admin', 'tech' => 'Technical', 'billing' => 'Billing', 'domain.nserver.' => 'Domain servers:', 'domain.created' => 'Record created on', 'domain.expires' => 'Record expires on'];
     return easy_parser($data_str, $items, 'mdy');
 }
Exemplo n.º 27
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative', 'tech' => 'Technical', 'domain.nserver' => 'Domain servers in listed order:', 'domain.name' => 'Domain name:', 'domain.created' => 'Created on:', 'domain.expires' => 'Expires on:', 'domain.changed' => 'Last Updated on:', 'domain.sponsor' => 'Registrar:');
     return easy_parser($data_str, $items, 'dmy');
 }
Exemplo n.º 28
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'owner-c', 'admin' => 'admin-c', 'tech' => 'tech-c', 'billing' => 'bill-c');
     $trans = array('nic-hdl:' => 'handle', 'person:' => 'name', 'zipcode:' => 'address.pcode', 'city:' => 'address.city', 'lastupdated:' => 'changed', 'owner-name:' => '');
     return easy_parser($data_str, $items, 'dmy', $trans);
 }
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant:', 'admin' => 'Administrative ', 'tech' => 'Technical ', 'domain.name' => 'Domain name:', 'domain.nserver.' => 'Domain servers in listed order:', 'domain.created' => 'Record created:', 'domain.expires' => 'Record expires:', 'domain.changed' => 'Record last updated:');
     return easy_parser($data_str, $items, 'ymd', false, false, true);
 }
Exemplo n.º 30
0
 function parse($data_str, $query)
 {
     $items = array('owner' => 'Registrant', 'admin' => 'Admin Contact', 'tech' => 'Tech Contact', 'billing' => 'Billing Contact', 'domain.sponsor' => 'Registration Provided By:', 'domain.created' => 'Creation Date:', 'domain.expires' => 'Expiration Date:');
     $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:' => 'address.city.', ',province:' => '', ',country:' => 'address.country', 'organization:' => 'organization', 'city, province, post code:' => 'address.city');
     return easy_parser($data_str, $items, 'mdy', $extra, false, true);
 }