phpWhois.org/src/whois.gtld.schlund.php

86 lines
3.7 KiB
PHP
Raw Normal View History

2005-08-26 06:46:49 +00:00
<?php
2005-03-01 19:58:54 +00:00
/*
2005-07-27 09:57:53 +00:00
Whois.php PHP classes to conduct whois queries
2005-03-01 19:58:54 +00:00
2005-07-27 09:57:53 +00:00
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
2005-03-01 19:58:54 +00:00
Maintained by David Saez
2005-03-01 19:58:54 +00:00
2005-07-27 09:57:53 +00:00
For the most recent version of this package visit:
2005-03-01 19:58:54 +00:00
2005-08-31 15:26:22 +00:00
http://www.phpwhois.org
2005-03-01 19:58:54 +00:00
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.
2005-08-26 06:46:49 +00:00
*/
2005-03-01 19:58:54 +00:00
2008-05-17 17:49:17 +00:00
if (!defined('__SCHLUND_HANDLER__'))
define('__SCHLUND_HANDLER__', 1);
2005-03-01 19:58:54 +00:00
2005-07-27 18:45:34 +00:00
require_once('whois.parser.php');
2005-03-01 19:58:54 +00:00
2005-08-26 06:46:49 +00:00
class schlund_handler
{
function parse($data_str, $query)
{
$items = array(
2008-05-17 17:49:17 +00:00
'created:' => 'domain.created',
'last-changed:' => 'domain.changed',
'status:' => 'domain.status',
'registrant-firstname:' => 'owner.name.first',
'registrant-lastname:' => 'owner.name.last',
'registrant-organization:' => 'owner.organization',
'registrant-street1:' => 'owner.address.street.',
'registrant-street2:' => 'owner.address.street.',
'registrant-pcode:' => 'owner.address.pcode',
'registrant-city:' => 'owner.address.city',
'registrant-ccode:' => 'owner.address.country',
'registrant-phone:' => 'owner.phone',
2008-10-10 08:19:13 +00:00
'registrant-email:' => 'owner.email',
2008-05-17 17:49:17 +00:00
'admin-c-firstname:' => 'admin.name.first',
'admin-c-lastname:' => 'admin.name.last',
'admin-c-organization:' => 'admin.organization',
'admin-c-street1:' => 'admin.address.street.',
'admin-c-street2:' => 'admin.address.street.',
'admin-c-pcode:' => 'admin.address.pcode',
'admin-c-city:' => 'admin.address.city',
'admin-c-ccode:' => 'admin.address.country',
'admin-c-phone:' => 'admin.phone',
'admin-c-email:' => 'admin.email',
'tech-c-firstname:' => 'tech.name.first',
'tech-c-lastname:' => 'tech.name.last',
'tech-c-organization:' => 'tech.organization',
'tech-c-street1:' => 'tech.address.street.',
'tech-c-street2:' => 'tech.address.street.',
'tech-c-pcode:' => 'tech.address.pcode',
'tech-c-city:' => 'tech.address.city',
'tech-c-ccode:' => 'tech.address.country',
'tech-c-phone:' => 'tech.phone',
'tech-c-email:' => 'tech.email',
'bill-c-firstname:' => 'billing.name.first',
'bill-c-lastname:' => 'billing.name.last',
'bill-c-organization:' => 'billing.organization',
'bill-c-street1:' => 'billing.address.street.',
'bill-c-street2:' => 'billing.address.street.',
'bill-c-pcode:' => 'billing.address.pcode',
'bill-c-city:' => 'billing.address.city',
'bill-c-ccode:' => 'billing.address.country',
'bill-c-phone:' => 'billing.phone',
'bill-c-email:' => 'billing.email'
2005-08-26 06:46:49 +00:00
);
2005-03-01 19:58:54 +00:00
return generic_parser_b($data_str, $items);
2005-08-26 06:46:49 +00:00
}
2005-03-01 19:58:54 +00:00
}
?>