added am handler

This commit is contained in:
sparc 2012-03-29 10:41:42 +00:00
parent 0a3877e60d
commit 1bff4b2cc0
2 changed files with 43 additions and 0 deletions

42
src/whois.am.php Normal file
View file

@ -0,0 +1,42 @@
<?php
if (!defined('__AM_HANDLER__'))
define('__AM_HANDLER__', 1);
require_once('whois.parser.php');
class am_handler
{
function parse($data_str, $query)
{
$items = array(
'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'] = get_blocks($data_str['rawdata'], $items);
if (!empty($r['regrinfo']['domain']['name']))
{
$r['regrinfo'] = get_contacts($r['regrinfo'],$trans);
$r['regrinfo']['registered'] = 'yes';
}
else
{
$r = '';
$r['regrinfo']['registered'] = 'no';
}
$r['regyinfo'] = array(
'referrer' => 'http://www.isoc.am',
'registrar' => 'ISOCAM'
);
return $r;
}
}

View file

@ -2,6 +2,7 @@
ae nic.ae
ag nic.ag
am isoc.am
at nic.at
au telstra.com.au
be nic.be