improved .au handler for user with whois-check.ausregistry.net.au
This commit is contained in:
parent
11aae270f1
commit
3c33e32a40
2 changed files with 32 additions and 18 deletions
|
@ -1,5 +1,7 @@
|
|||
2006/02/01 David Saez <david@ols.es>
|
||||
- fixed README documentation
|
||||
- improved .au handler for user with
|
||||
whois-check.ausregistry.net.au
|
||||
|
||||
2006/01/31 David Saez <david@ols.es>
|
||||
- fixed lookup error on .co.za domains
|
||||
|
|
|
@ -30,8 +30,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
/* aunic.whois 1.0 by Edi Wibowo <edi@ausnik-it.com,http://www.ausnik-it.com> */
|
||||
/* check with telstra.com.au */
|
||||
|
||||
if (!defined("__AU_HANDLER__"))
|
||||
define("__AU_HANDLER__", 1);
|
||||
if (!defined('__AU_HANDLER__'))
|
||||
define('__AU_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
|
@ -42,26 +42,38 @@ class au_handler
|
|||
{
|
||||
|
||||
$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 ID:" => "owner.handle",
|
||||
"Registrant Email:" => "owner.email",
|
||||
"Registrant Contact Name:" => "owner.name",
|
||||
"Tech Name:" => "tech.name",
|
||||
"Tech Email:" => "tech.email",
|
||||
"Tech ID:" => "tech.handle",
|
||||
"Name Server:" => "domain.nserver."
|
||||
'Domain Name:' => 'domain.name',
|
||||
'Last Modified:' => 'domain.changed',
|
||||
'Registrar Name:' => 'domain.sponsor',
|
||||
'Status:' => 'domain.status',
|
||||
'Domain ROID:' => 'domain.handle',
|
||||
'Registrant:' => 'owner.organization',
|
||||
'Registrant ID:' => 'owner.handle',
|
||||
'Registrant Email:' => 'owner.email',
|
||||
'Registrant Contact Name:' => 'owner.name',
|
||||
'Tech Name:' => 'tech.name',
|
||||
'Tech Email:' => 'tech.email',
|
||||
'Tech ID:' => 'tech.handle',
|
||||
'Name Server:' => 'domain.nserver.'
|
||||
);
|
||||
|
||||
$r["regyinfo"] = array(
|
||||
"referrer" => "http://www.aunic.net",
|
||||
"registrar" => "AU-NIC"
|
||||
$r['regyinfo'] = array(
|
||||
'referrer' => 'http://www.aunic.net',
|
||||
'registrar' => 'AU-NIC'
|
||||
);
|
||||
|
||||
if ($data_str['rawdata'][0]=='Not Available')
|
||||
{
|
||||
$r['regrinfo']['registered']='yes';
|
||||
return $r;
|
||||
}
|
||||
|
||||
if ($data_str['rawdata'][0]=='Available')
|
||||
{
|
||||
$r['regrinfo']['registered']='no';
|
||||
return $r;
|
||||
}
|
||||
|
||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
|
||||
return $r;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue