Projekt

Obecné

Profil

Stáhnout (5.26 KB) Statistiky
| Větev: | Tag: | Revize:
8baed187 Michal Kliment
<?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.
*/

/* neulevel.whois 2.2 David Saez */
/* neulevel.whois 1.0 by Brian Blood <brian@macserve.net> */

if (!defined('__BIZ_HANDLER__'))
define('__BIZ_HANDLER__', 1);

require_once('whois.parser.php');

class biz_handler
{

function parse($data_str, $query)
{

$items = array(
'Domain Name:' => 'domain.name',
'Domain ID:' => 'domain.handle',
'Sponsoring Registrar:' => 'domain.sponsor',
'Domain Status:' => 'domain.status',
'Name Server:' => 'domain.nserver.',
'Domain Registration Date:' => 'domain.created',
'Domain Expiration Date:' => 'domain.expires',
'Domain Last Updated Date:' => 'domain.changed',
'Registrant ID:' => 'owner.handle',
'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 Number:' => 'owner.phone',
'Registrant Facsimile Number:' => 'owner.fax',
'Registrant Email:' => 'owner.email',
'Administrative Contact ID:' => 'admin.handle',
'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 Number:' => 'admin.phone',
'Administrative Contact Email:' => 'admin.email',
'Administrative Contact Facsimile Number:' => 'admin.fax',
'Technical Contact ID:' => 'tech.handle',
'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 Number:' => 'tech.phone',
'Technical Contact Facsimile Number:' => 'tech.fax',
'Technical Contact Email:' => 'tech.email',
'Billing Contact ID:' => 'billing.handle',
'Billing Contact Name:' => 'billing.name',
'Billing Contact Organization:' => 'billing.organization',
'Billing Contact Address1:' => 'billing.address.street.1',
'Billing Contact Address2:' => 'billing.address.street.0',
'Billing Contact Postal Code:' => 'billing.address.pcode',
'Billing Contact City:' => 'billing.address.city',
'Billing Contact State/Province:' => 'billing.address.state',
'Billing Contact Country:' => 'billing.address.country',
'Billing Contact Phone Number:' => 'billing.phone',
'Billing Contact Facsimile Number:' => 'billing.fax',
'Billing Contact Email:' => 'billing.email'
);

$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, '-md--y');

$r['regyinfo'] = array(
'referrer' => 'http://www.neulevel.biz',
'registrar' => 'NEULEVEL'
);
return ($r);
}

}
?>