phpWhois.org/whois.gtld.encirca.php

90 lines
3.8 KiB
PHP
Raw Normal View History

2006-12-18 17:28:40 +00:00
<?php
/*
Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
For the most recent version of this package visit:
http://www.phpwhois.org
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
if (!defined('__ENCIRCA_HANDLER__'))
define('__ENCIRCA_HANDLER__', 1);
require_once('whois.parser.php');
class encirca_handler
{
function parse($data_str, $query)
{
$items = array(
'Domain Name:' => 'domain.name',
'Sponsoring Registrar:' => 'domain.sponsor',
'Name Server:' => 'domain.nserver.',
'Registrant Name:' => 'owner.name',
'Registrant Organization:' => 'owner.organization',
'Registrant Address1:' => 'owner.address.street.0',
'Registrant Address2:' => 'owner.address.street.1',
'Registrant Postal Code:' => 'owner.address.pcode',
'Registrant City:' => 'owner.address.city',
'Registrant State/Province:' => 'owner.address.state',
'Registrant Country:' => 'owner.address.country',
'Registrant Phone:' => 'owner.phone',
'Registrant Facsimile Number:' => 'owner.fax',
'Registrant Email:' => 'owner.email',
'Administrative Contact Name:' => 'admin.name',
'Administrative Contact Organization:' => 'admin.organization',
'Administrative Contact Address1:' => 'admin.address.street.0',
'Administrative Contact Address2:' => 'admin.address.street.1',
'Administrative Contact Postal Code:' => 'admin.address.pcode',
'Administrative Contact City:' => 'admin.address.city',
'Administrative Contact State/Province:' => 'admin.address.state',
'Administrative Contact Country:' => 'admin.address.country',
'Administrative Contact Phone:' => 'admin.phone',
'Administrative Contact Email:' => 'admin.email',
'Administrative Contact Facsimile Number:' => 'admin.fax',
'Technical Contact Name:' => 'tech.name',
'Technical Contact Organization:' => 'tech.organization',
'Technical Contact Address1:' => 'tech.address.street.0',
'Technical Contact Address2:' => 'tech.address.street.1',
'Technical Contact Postal Code:' => 'tech.address.pcode',
'Technical Contact City:' => 'tech.address.city',
'Technical Contact State/Province:' => 'tech.address.state',
'Technical Contact Country:' => 'tech.address.country',
'Technical Contact Phone:' => 'tech.phone',
'Technical Contact Facsimile Number:' => 'tech.fax',
'Technical Contact Email:' => 'tech.email'
);
$r['regrinfo'] = generic_parser_b($data_str, $items, '-md--y');
$r['regyinfo'] = array(
'referrer' => 'http://www.encirca.biz',
'registrar' => 'ENCIRCA'
);
return ($r);
}
}
?>