'fax', 'e-mail' => 'email', 'nic-hdl' => 'handle', 'person' => 'name', 'address' => 'address.', 'domain-name' => '', 'updated' => 'changed', 'registration-date' => 'created', 'domain-status' => 'status', 'nameserver' => 'nserver' ); $contacts = array( 'admin-contact' => 'admin', 'technical-contact' => 'tech', 'zone-contact' => 'zone', 'billing-contact' => 'billing' ); $extra = array( 'postal code:' => 'address.pcode' ); $reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain','Ymd'); if (isset($reg['domain']['description'])) { $reg['owner'] = get_contact($reg['domain']['description'],$extra); unset($reg['domain']['description']); foreach($reg as $key => $item) { if (isset($item['address'])) { $data = $item['address']; unset($reg[$key]['address']); $reg[$key] = array_merge($reg[$key],get_contact($data,$extra)); } } $reg['registered'] = 'yes'; } else $reg['registered'] = 'no'; $r['regrinfo'] = $reg; $r['regyinfo'] = array( 'referrer' => 'http://www.nic.ro', 'registrar' => 'nic.ro' ); return $r; } } ?>