added support for CHINESEDOMAINS
This commit is contained in:
parent
7a5462536d
commit
1916405926
4 changed files with 62 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
|||
- some handlers reported zcode instead of pcode
|
||||
- added support for AfriNIC (ip whois)
|
||||
- updated HANDLERS documentation
|
||||
- added support for CHINESEDOMAINS
|
||||
|
||||
2005/07/26 David Saez <david@ols.es>
|
||||
- added handler for za.org & za.net, thanx to
|
||||
|
|
|
@ -58,9 +58,10 @@ class gtld_handler extends WhoisClient {
|
|||
"ASCIO TECHNOLOGIES, INC." => "ascio",
|
||||
"BULKREGISTER.COM, INC." => "bulkr",
|
||||
"BULKREGISTER, LLC." => "bulkr",
|
||||
'COMPUTER SERVICES LANGENBACH GMBH DBA JOKER.COM' => 'joker',
|
||||
'CHINESEDOMAINS, LLC' => 'chdom',
|
||||
'COMPUTER SERVICES LANGENBACH GMBH DBA JOKER.COM' => 'joker',
|
||||
"CORE INTERNET COUNCIL OF REGISTRARS" => "core",
|
||||
'CRONON AG BERLIN, NIEDERLASSUNG REGENSBURG' => 'cronon',
|
||||
'CRONON AG BERLIN, NIEDERLASSUNG REGENSBURG' => 'cronon',
|
||||
"DOMAIN BANK, INC." => "domainbank",
|
||||
"DOMAINDISCOVER" => "buydomains",
|
||||
"DOTSTER, INC." => "dotster",
|
||||
|
|
3
test.txt
3
test.txt
|
@ -24,7 +24,8 @@ ws samoanic.ws
|
|||
|
||||
// .com/.org/.net/.tv
|
||||
|
||||
ascio.com ascio.com
|
||||
ascio ascio.com
|
||||
chdom naturebox.com
|
||||
bulkr bulkregister.com
|
||||
buydomains buydomains.com
|
||||
core corenic.com
|
||||
|
|
56
whois.gtld.chdom.php
Executable file
56
whois.gtld.chdom.php
Executable file
|
@ -0,0 +1,56 @@
|
|||
<?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://phpwhois.sourceforge.net
|
||||
|
||||
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('__CHDOM_HANDLER__')) define('__CHDOM_HANDLER__',1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class chdom_handler {
|
||||
|
||||
function parse ($data_str,$query) {
|
||||
|
||||
$items=array(
|
||||
'admin' => 'Administrative',
|
||||
'tech' => 'Technical',
|
||||
'domain.created' => 'Created on:',
|
||||
'domain.changed' => 'Last Updated on:',
|
||||
'domain.expires' => 'Expires on:',
|
||||
'domain.nserver' => 'Domain servers in listed order:',
|
||||
'domain.sponsor' => "Registrar:"
|
||||
);
|
||||
|
||||
$r['rawdata']=$data_str;
|
||||
|
||||
$r['regrinfo'] = get_blocks($data_str,$items);
|
||||
|
||||
$r=format_dates($r,'dmy');
|
||||
return $r;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in a new issue