allow easy plugin for new gtld handlers
This commit is contained in:
parent
022c7daf82
commit
7b7fcb3622
|
@ -1,3 +1,7 @@
|
|||
2007/04/17
|
||||
- allow easy plugin for new gtld handlers
|
||||
- minor improvement to testsuite.php
|
||||
|
||||
2007/04/16
|
||||
- added basic support for .bz
|
||||
- whois.info.php cosmetic changes
|
||||
|
|
11
Handlers.md
11
Handlers.md
|
@ -155,10 +155,13 @@ for several different country domains you need to add it to the array
|
|||
DATA where the key is the iso country code and the value the handler
|
||||
name (xx).
|
||||
|
||||
Handlers for .com/.net/.tv domains are defined in whois.gtld.php
|
||||
and are named whois.gtld.xxx.php where xxx is the name of the
|
||||
handler defined as the value in the array REGISTRARS in the
|
||||
file whois.gtld.php. It must be implemented the same way as
|
||||
Handlers for .com/.net/.tv domains are handled by whois.gtld.php
|
||||
and named whois.gtld.xxx.php where xxx is the 'midname' (for example,
|
||||
for whois.srsplus.com, the midname is srsplus) of the whois server who
|
||||
provides information for that domains. If you want to reuse another
|
||||
handler of your handler 'midname' conflicts with any existing gtld
|
||||
handler you could define the handler name in the array WHOIS_GTLD_HANDLER
|
||||
in the file whois.servers.php. It must be implemented the same way as
|
||||
country handlers.
|
||||
|
||||
Some useful utility functions have been written to aid in developing
|
||||
|
|
|
@ -423,16 +423,25 @@ class WhoisClient {
|
|||
function DeepWhois ($query, $result) {
|
||||
|
||||
if (!isset($result['regyinfo']['whois'])) return $result;
|
||||
|
||||
$this->Query['server'] = $result['regyinfo']['whois'];
|
||||
|
||||
$this->Query['server'] = $wserver = $result['regyinfo']['whois'];
|
||||
$subresult = $this->GetRawData($query,$query_args);
|
||||
|
||||
if (!empty($subresult))
|
||||
{
|
||||
$result['rawdata'] = $subresult;
|
||||
|
||||
@$this->Query['handler'] = $this->WHOIS_HANDLER[$result['regyinfo']['whois']];
|
||||
|
||||
|
||||
if (isset($this->WHOIS_GTLD_HANDLER[$wserver]))
|
||||
$this->Query['handler'] = $this->WHOIS_GTLD_HANDLER[$wserver];
|
||||
else
|
||||
{
|
||||
$parts = explode('.',$wserver);
|
||||
$hname = $parts[1];
|
||||
|
||||
if (($fp = @fopen('whois.gtld.'.$hname.'.php', 'r', 1)) and fclose($fp))
|
||||
$this->Query['handler'] = $hname;
|
||||
}
|
||||
|
||||
if (!empty($this->Query['handler']))
|
||||
{
|
||||
$this->Query['file'] = sprintf('whois.gtld.%s.php', $this->Query['handler']);
|
||||
|
|
|
@ -27,38 +27,34 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
/* directnic.whois 1.0 david@ols.es 2003/03/30 */
|
||||
|
||||
if (!defined("__DIRECTNIC_HANDLER__"))
|
||||
define("__DIRECTNIC_HANDLER__", 1);
|
||||
if (!defined('__DIRECTNIC_HANDLER__'))
|
||||
define('__DIRECTNIC_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class directnic_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
"owner" => "Registrant:",
|
||||
"admin" => "Administrative Contact",
|
||||
"tech" => "Technical Contact",
|
||||
"domain.name" => "Domain name:",
|
||||
"domain.sponsor" => "Registration Service Provider:",
|
||||
"domain.nserver" => "Domain servers in listed order:",
|
||||
"domain.changed" => "Record last updated ",
|
||||
"domain.created" => "Record created on",
|
||||
"domain.expires" => "Record expires on"
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative Contact',
|
||||
'tech' => 'Technical Contact',
|
||||
'domain.name' => 'Domain name:',
|
||||
'domain.sponsor' => 'Registration Service Provider:',
|
||||
'domain.nserver' => 'Domain servers in listed order:',
|
||||
'domain.changed' => 'Record last updated ',
|
||||
'domain.created' => 'Record created on',
|
||||
'domain.expires' => 'Record expires on'
|
||||
);
|
||||
|
||||
$r = get_blocks($data_str, $items);
|
||||
|
||||
$r["owner"] = get_contact($r["owner"]);
|
||||
$r["admin"] = get_contact($r["admin"]);
|
||||
$r["tech"] = get_contact($r["tech"]);
|
||||
$r['owner'] = get_contact($r['owner']);
|
||||
$r['admin'] = get_contact($r['admin']);
|
||||
$r['tech'] = get_contact($r['tech']);
|
||||
format_dates($r, 'mdy');
|
||||
return ($r);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -27,38 +27,35 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
/* buydomains.whois 1.0 david@ols.es 2003/03/30 */
|
||||
|
||||
if (!defined("__BUYDOMAINS_HANDLER__"))
|
||||
define("__BUYDOMAINS_HANDLER__", 1);
|
||||
if (!defined('__DOMAINDISCOVER_HANDLER__'))
|
||||
define('__DOMAINDISCOVER_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class buydomains_handler
|
||||
class domaindiscover_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
"owner" => "Registrant:",
|
||||
"admin" => "Administrative Contact",
|
||||
"tech" => "Technical Contact",
|
||||
"zone" => "Zone Contact",
|
||||
"domain.name" => "Domain Name:",
|
||||
"domain.changed" => "Last updated on",
|
||||
"domain.created" => "Domain created on",
|
||||
"domain.expires" => "Domain expires on"
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative Contact',
|
||||
'tech' => 'Technical Contact',
|
||||
'zone' => 'Zone Contact',
|
||||
'domain.name' => 'Domain Name:',
|
||||
'domain.changed' => 'Last updated on',
|
||||
'domain.created' => 'Domain created on',
|
||||
'domain.expires' => 'Domain expires on'
|
||||
);
|
||||
|
||||
$r = get_blocks($data_str, $items);
|
||||
|
||||
$r["owner"] = get_contact($r["owner"]);
|
||||
$r["admin"] = get_contact($r["admin"]);
|
||||
$r["tech"] = get_contact($r["tech"]);
|
||||
$r["zone"] = get_contact($r["zone"]);
|
||||
$r['owner'] = get_contact($r['owner']);
|
||||
$r['admin'] = get_contact($r['admin']);
|
||||
$r['tech'] = get_contact($r['tech']);
|
||||
$r['zone'] = get_contact($r['zone']);
|
||||
format_dates($r, 'dmy');
|
||||
return ($r);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
|
@ -27,27 +27,25 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
/* innerwise.whois 1.0 David Saez Padros <david@ols.es> */
|
||||
|
||||
if (!defined("__INNERWISE_HANDLER__"))
|
||||
define("__INNERWISE_HANDLER__", 1);
|
||||
if (!defined('__ITSYOURDOMAIN_HANDLER__'))
|
||||
define('__ITSYOURDOMAIN_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class innerwise_handler
|
||||
class itsyourdomain_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
"owner" => "Registrant",
|
||||
"admin" => "Administrative",
|
||||
"tech" => "Technical",
|
||||
"billing" => "Billing",
|
||||
"domain.name" => "Domain:",
|
||||
"domain.nserver." => "Domain Name Servers:",
|
||||
"domain.created" => "Record created on ",
|
||||
"domain.expires" => "Record expires on ",
|
||||
"domain.changed" => "Record last updated on "
|
||||
'owner' => 'Registrant',
|
||||
'admin' => 'Administrative',
|
||||
'tech' => 'Technical',
|
||||
'billing' => 'Billing',
|
||||
'domain.name' => 'Domain:',
|
||||
'domain.nserver.' => 'Domain Name Servers:',
|
||||
'domain.created' => 'Record created on ',
|
||||
'domain.expires' => 'Record expires on ',
|
||||
'domain.changed' => 'Record last updated on '
|
||||
);
|
||||
|
||||
$r = get_blocks($data_str, $items);
|
|
@ -30,36 +30,33 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
if (!defined("__INWWCOM_HANDLER__"))
|
||||
define("__INWWCOM_HANDLER__", 1);
|
||||
if (!defined('__MELBOURNEIT_HANDLER__'))
|
||||
define('__MELBOURNEIT_HANDLER__', 1);
|
||||
|
||||
class inwwcom_handler
|
||||
class melbourneit_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
$items = array(
|
||||
"Domain Name.........." => "domain.name",
|
||||
"Registration Date...." => "domain.created",
|
||||
"Expiry Date.........." => "domain.expires",
|
||||
"Organisation Name...." => "owner.name",
|
||||
"Organisation Address." => "owner.address.",
|
||||
"Admin Name..........." => "admin.name",
|
||||
"Admin Address........" => "admin.address.",
|
||||
"Admin Email.........." => "admin.email",
|
||||
"Admin Phone.........." => "admin.phone",
|
||||
"Admin Fax............" => "admin.fax",
|
||||
"Tech Name............" => "tech.name",
|
||||
"Tech Address........." => "tech.address.",
|
||||
"Tech Email..........." => "tech.email",
|
||||
"Tech Phone..........." => "tech.phone",
|
||||
"Tech Fax............." => "tech.fax",
|
||||
"Name Server.........." => "domain.nserver."
|
||||
'Domain Name..........' => 'domain.name',
|
||||
'Registration Date....' => 'domain.created',
|
||||
'Expiry Date..........' => 'domain.expires',
|
||||
'Organisation Name....' => 'owner.name',
|
||||
'Organisation Address.' => 'owner.address.',
|
||||
'Admin Name...........' => 'admin.name',
|
||||
'Admin Address........' => 'admin.address.',
|
||||
'Admin Email..........' => 'admin.email',
|
||||
'Admin Phone..........' => 'admin.phone',
|
||||
'Admin Fax............' => 'admin.fax',
|
||||
'Tech Name............' => 'tech.name',
|
||||
'Tech Address.........' => 'tech.address.',
|
||||
'Tech Email...........' => 'tech.email',
|
||||
'Tech Phone...........' => 'tech.phone',
|
||||
'Tech Fax.............' => 'tech.fax',
|
||||
'Name Server..........' => 'domain.nserver.'
|
||||
);
|
||||
|
||||
return generic_parser_b($data_str, $items);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
|
@ -28,17 +28,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
/* netsol.whois 1.0 mark jeftovic 1999/12/06 */
|
||||
/* netsol.whois 2.0 david saez */
|
||||
|
||||
if (!defined('__NETSOL_HANDLER__'))
|
||||
define('__NETSOL_HANDLER__', 1);
|
||||
if (!defined('__NETWORKSOLUTIONS_HANDLER__'))
|
||||
define('__NETWORKSOLUTIONS_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class netsol_handler
|
||||
class networksolutions_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative Contact',
|
9
whois.gtld.opensrsnet.php → src/whois.gtld.opensrs.php
Normal file → Executable file
9
whois.gtld.opensrsnet.php → src/whois.gtld.opensrs.php
Normal file → Executable file
|
@ -28,17 +28,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
/* opensrsnet.whois 1.0 jeremiah bellomy 2000/04/06 */
|
||||
/* opensrsnet.whois 2.1 david@ols.es 2003/02/15 */
|
||||
|
||||
if (!defined('__OPENSRSNET_HANDLER__'))
|
||||
define('__OPENSRSNET_HANDLER__', 1);
|
||||
if (!defined('__OPENSRS_HANDLER__'))
|
||||
define('__OPENSRS_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class opensrsnet_handler
|
||||
class opensrs_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative Contact',
|
||||
|
@ -63,5 +61,4 @@ class opensrsnet_handler
|
|||
return ($r);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
60
src/whois.gtld.publicdomainregistry.php
Normal file
60
src/whois.gtld.publicdomainregistry.php
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?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.
|
||||
*/
|
||||
|
||||
/* directnic.whois 1.0 david@ols.es 2003/03/30 */
|
||||
|
||||
if (!defined('__PUBLICDOMAINREGISTRY_HANDLER__'))
|
||||
define('__PUBLICDOMAINREGISTRY_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class publicdomainregistry_handler
|
||||
{
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
$items = array(
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative Contact',
|
||||
'tech' => 'Technical Contact',
|
||||
'domain.name' => 'Domain name:',
|
||||
'domain.sponsor' => 'Registration Service Provider:',
|
||||
'domain.nserver' => 'Domain servers in listed order:',
|
||||
'domain.changed' => 'Record last updated ',
|
||||
'domain.created' => 'Record created on',
|
||||
'domain.expires' => 'Record expires on'
|
||||
);
|
||||
|
||||
$r = get_blocks($data_str, $items);
|
||||
|
||||
$r['owner'] = get_contact($r['owner']);
|
||||
$r['admin'] = get_contact($r['admin']);
|
||||
$r['tech'] = get_contact($r['tech']);
|
||||
format_dates($r, 'mdy');
|
||||
return ($r);
|
||||
}
|
||||
}
|
||||
?>
|
9
whois.gtld.registercom.php → src/whois.gtld.register.php
Normal file → Executable file
9
whois.gtld.registercom.php → src/whois.gtld.register.php
Normal file → Executable file
|
@ -28,17 +28,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
/* registercom.whois 1.0 mark jeftovic 1999/12/26 */
|
||||
/* registercom.whois 2.1 david@ols.es 2003/02/18 */
|
||||
|
||||
if (!defined('__REGISTERCOM_HANDLER__'))
|
||||
define('__REGISTERCOM_HANDLER__', 1);
|
||||
if (!defined('__REGISTER_HANDLER__'))
|
||||
define('__REGISTER_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class registercom_handler
|
||||
class register_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner#0' => 'Registrant Info:',
|
||||
'owner#1' => 'Organization:',
|
||||
|
@ -70,5 +68,4 @@ class registercom_handler
|
|||
return ($r);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -27,32 +27,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
/* cronon.whois 1.0 David Saez Padros <david@ols.es> */
|
||||
|
||||
if (!defined("__CRONON_HANDLER__"))
|
||||
define("__CRONON_HANDLER__", 1);
|
||||
if (!defined('__TMAGNIC_HANDLER__'))
|
||||
define('__TMAGNIC_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class cronon_handler
|
||||
class tmagnic_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
"owner" => "Owner Contact:",
|
||||
"admin" => "Admin Contact",
|
||||
"tech" => "Technical Contact, Zone Contact",
|
||||
"domain.name" => "Domain Name:",
|
||||
"domain.nserver." => "Domain servers in listed order:",
|
||||
"domain.expires" => "Record expires on: ",
|
||||
"domain.changed" => "Record last updated on: ",
|
||||
'owner' => 'Owner Contact:',
|
||||
'admin' => 'Admin Contact',
|
||||
'tech' => 'Technical Contact, Zone Contact',
|
||||
'domain.name' => 'Domain Name:',
|
||||
'domain.nserver.' => 'Domain servers in listed order:',
|
||||
'domain.expires' => 'Record expires on: ',
|
||||
'domain.changed' => 'Record last updated on: ',
|
||||
'' => 'RACE Name:'
|
||||
);
|
||||
|
||||
$r = get_blocks($data_str, $items);
|
||||
$r["owner"] = get_contact($r["owner"]);
|
||||
$r["admin"] = get_contact($r["admin"]);
|
||||
$r["tech"] = get_contact($r["tech"]);
|
||||
$r['owner'] = get_contact($r['owner']);
|
||||
$r['admin'] = get_contact($r['admin']);
|
||||
$r['tech'] = get_contact($r['tech']);
|
||||
format_dates($r, 'ymd');
|
||||
return ($r);
|
||||
}
|
|
@ -90,40 +90,9 @@ $this->WHOIS_SPECIAL = array(
|
|||
|
||||
/* handled gTLD whois servers */
|
||||
|
||||
$this->WHOIS_HANDLER = array(
|
||||
'rs.domainbank.net' => 'domainbank',
|
||||
'whois.allindomains.com' => 'alldomains',
|
||||
'whois.ascio.com' => 'ascio',
|
||||
$this->WHOIS_GTLD_HANDLER = array(
|
||||
'whois.bulkregister.com' => 'enom',
|
||||
'whois.corenic.net' => 'core',
|
||||
'whois.directnic.com' => 'directnic',
|
||||
'whois.domaincontender.com' => 'contender',
|
||||
'whois.domaindiscover.com' => 'buydomains',
|
||||
'whois.dotregistrar.com' => 'dotregistrar',
|
||||
'whois.dotster.com' => 'dotster',
|
||||
'whois.encirca.biz' => 'encirca',
|
||||
'whois.enom.com' => 'enom',
|
||||
'whois.godaddy.com' => 'godaddy',
|
||||
'whois.iana.org' => 'iana',
|
||||
'whois.interdomain.net' => 'interdomain',
|
||||
'whois.itsyourdomain.com' => 'innerwise',
|
||||
'whois.joker.com' => 'joker',
|
||||
'whois.melbourneit.com' => 'inwwcom',
|
||||
'whois.moniker.com' => 'moniker',
|
||||
'whois.namejuice.com' => 'namejuice',
|
||||
'whois.namesdirect.com' => 'ndirect',
|
||||
'whois.networksolutions.com' => 'netsol',
|
||||
'whois.nicline.com' => 'nicline',
|
||||
'whois.nominalia.com' => 'nominalia',
|
||||
'whois.opensrs.net' => 'opensrsnet',
|
||||
'whois.ovh.com' => 'ovh',
|
||||
'whois.publicdomainregistry.com' => 'directi',
|
||||
'whois.psi-usa.info' => 'psiusa',
|
||||
'whois.register.com' => 'registercom',
|
||||
'whois.schlund.info' => 'schlund',
|
||||
'whois.srsplus.com' => 'srsplus',
|
||||
'whois.stargateinc.com' => 'stargate',
|
||||
'whois.tmagnic.net' => 'cronon',
|
||||
'whois.www.tv' => 'tvcorp'
|
||||
);
|
||||
|
||||
|
|
24
test.txt
24
test.txt
|
@ -35,36 +35,36 @@ ws samoanic.ws informe.ws
|
|||
|
||||
alldomains alldomains.com
|
||||
ascio ascio.com
|
||||
buydomains buydomains.com
|
||||
contender domaincontender.com
|
||||
core corenic.com
|
||||
cronon antiquea.com
|
||||
directi directi.com
|
||||
corenic corenic.com
|
||||
directnic directnic.com
|
||||
domainbank domainbank.com
|
||||
domaincontender domaincontender.com
|
||||
domaindiscover buydomains.com
|
||||
dotregistrar dotregistrar.com
|
||||
dotster dotster.com
|
||||
encirca nic.jobs
|
||||
enom enom.com adultlaw.com alabanza.com
|
||||
godaddy godaddy.com
|
||||
iana example.com
|
||||
innerwise sexido.com
|
||||
interdomain interdominio.com
|
||||
inwwcom inww.com
|
||||
itsyourdomain sexido.com
|
||||
joker joker.com
|
||||
melbourneit inww.com
|
||||
moniker moniker.com
|
||||
namejuice namejuice.com
|
||||
ndirect namesdirect.com
|
||||
netsol networksolutions.com
|
||||
namesdirect namesdirect.com
|
||||
networksolutions networksolutions.com
|
||||
nicline nicline.com
|
||||
nominalia nominalia.com
|
||||
opensrsnet tucows.com
|
||||
opensrs tucows.com
|
||||
ovh ovh.com
|
||||
publicdomainregistry directi.com
|
||||
psiusa urllog.net
|
||||
registercom register.com
|
||||
register register.com
|
||||
schlund schlund.com
|
||||
srsplus olsns.com
|
||||
stargate stargate.com
|
||||
stargateinc stargate.com
|
||||
tmagnic antiquea.com
|
||||
tvcorp www.tv
|
||||
|
||||
// Other
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,105 +0,0 @@
|
|||
<?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.
|
||||
*/
|
||||
|
||||
/* core.whois 1.0 mark jeftovic 1999/12/06 */
|
||||
/* Adapted from netsol.whois by Denny Reiter 2000/12/12 */
|
||||
/* core.whois 2.0 david@ols.es 2003/02/26 */
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
if (!defined("__CORE_HANDLER__"))
|
||||
define("__CORE_HANDLER__", 1);
|
||||
|
||||
class core_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
"Domain ID:" => "domain.handle",
|
||||
"Domain Name:" => "domain.name",
|
||||
"Creation Date:" => "domain.created",
|
||||
"Expiration Date:" => "domain.expires",
|
||||
"Last Modification Date:" => "domain.changed",
|
||||
"Sponsoring Registrar:" => "domain.sponsor",
|
||||
"Name Server:" => "domain.nserver.",
|
||||
"Registrant Organization:" => "owner.organization",
|
||||
"Registrant Name:" => "owner.name",
|
||||
"Registrant Address:" => "owner.address.street.0",
|
||||
"Registrant Address 2:" => "owner.address.street.1",
|
||||
"Registrant City:" => "owner.address.city",
|
||||
"Registrant State/Province:" => "owner.address.state",
|
||||
"Registrant Postal Code:" => "owner.address.pcode",
|
||||
"Registrant Country:" => "owner.address.country",
|
||||
"Registrant Phone Number:" => "owner.phone",
|
||||
"Registrant Fax Number:" => "owner.fax",
|
||||
"Registrant Email:" => "owner.email",
|
||||
"Admin ID:" => "admin.handle",
|
||||
"Admin Organization:" => "admin.organization",
|
||||
"Admin Name:" => "admin.name",
|
||||
"Admin Address:" => "admin.address.street.0",
|
||||
"Admin Address 2:" => "admin.address.street.1",
|
||||
"Admin City:" => "admin.address.city",
|
||||
"Admin State/Province:" => "admin.address.state",
|
||||
"Admin Postal Code:" => "admin.address.pcode",
|
||||
"Admin Country:" => "admin.address.country",
|
||||
"Admin Phone Number:" => "admin.phone",
|
||||
"Admin Fax Number:" => "admin.fax",
|
||||
"Admin Email:" => "admin.email",
|
||||
"Tech ID:" => "tech.handle",
|
||||
"Tech Organization:" => "tech.organization",
|
||||
"Tech Name:" => "tech.name",
|
||||
"Tech Address:" => "tech.address.street.0",
|
||||
"Tech Address 2:" => "tech.address.street.1",
|
||||
"Tech City:" => "tech.address.city",
|
||||
"Tech State/Province:" => "tech.address.state",
|
||||
"Tech Postal Code:" => "tech.address.pcode",
|
||||
"Tech Country:" => "tech.address.country",
|
||||
"Tech Phone Number:" => "tech.phone",
|
||||
"Tech Fax Number:" => "tech.fax",
|
||||
"Tech Email:" => "tech.email",
|
||||
"Zone ID:" => "zone.handle",
|
||||
"Zone Organization:" => "zone.organization",
|
||||
"Zone Name:" => "zone.name",
|
||||
"Zone Address:" => "zone.address.street.0",
|
||||
"Zone Address 2:" => "zone.address.street.1",
|
||||
"Zone City:" => "zone.address.city",
|
||||
"Zone State/Province:" => "zone.address.state",
|
||||
"Zone Postal Code:" => "zone.address.pcode",
|
||||
"Zone Country:" => "zone.address.country",
|
||||
"Zone Phone Number:" => "zone.phone",
|
||||
"Zone Fax Number:" => "zone.fax",
|
||||
"Zone Email:" => "zone.email"
|
||||
);
|
||||
|
||||
return generic_parser_b($data_str, $items);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
105
whois.gtld.corenic.php
Normal file
105
whois.gtld.corenic.php
Normal file
|
@ -0,0 +1,105 @@
|
|||
<?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.
|
||||
*/
|
||||
|
||||
/* core.whois 1.0 mark jeftovic 1999/12/06 */
|
||||
/* Adapted from netsol.whois by Denny Reiter 2000/12/12 */
|
||||
/* core.whois 2.0 david@ols.es 2003/02/26 */
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
if (!defined('__CORENIC_HANDLER__'))
|
||||
define('__CORENIC_HANDLER__', 1);
|
||||
|
||||
class corenic_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'Domain ID:' => 'domain.handle',
|
||||
'Domain Name:' => 'domain.name',
|
||||
'Creation Date:' => 'domain.created',
|
||||
'Expiration Date:' => 'domain.expires',
|
||||
'Last Modification Date:' => 'domain.changed',
|
||||
'Sponsoring Registrar:' => 'domain.sponsor',
|
||||
'Name Server:' => 'domain.nserver.',
|
||||
'Registrant Organization:' => 'owner.organization',
|
||||
'Registrant Name:' => 'owner.name',
|
||||
'Registrant Address:' => 'owner.address.street.0',
|
||||
'Registrant Address 2:' => 'owner.address.street.1',
|
||||
'Registrant City:' => 'owner.address.city',
|
||||
'Registrant State/Province:' => 'owner.address.state',
|
||||
'Registrant Postal Code:' => 'owner.address.pcode',
|
||||
'Registrant Country:' => 'owner.address.country',
|
||||
'Registrant Phone Number:' => 'owner.phone',
|
||||
'Registrant Fax Number:' => 'owner.fax',
|
||||
'Registrant Email:' => 'owner.email',
|
||||
'Admin ID:' => 'admin.handle',
|
||||
'Admin Organization:' => 'admin.organization',
|
||||
'Admin Name:' => 'admin.name',
|
||||
'Admin Address:' => 'admin.address.street.0',
|
||||
'Admin Address 2:' => 'admin.address.street.1',
|
||||
'Admin City:' => 'admin.address.city',
|
||||
'Admin State/Province:' => 'admin.address.state',
|
||||
'Admin Postal Code:' => 'admin.address.pcode',
|
||||
'Admin Country:' => 'admin.address.country',
|
||||
'Admin Phone Number:' => 'admin.phone',
|
||||
'Admin Fax Number:' => 'admin.fax',
|
||||
'Admin Email:' => 'admin.email',
|
||||
'Tech ID:' => 'tech.handle',
|
||||
'Tech Organization:' => 'tech.organization',
|
||||
'Tech Name:' => 'tech.name',
|
||||
'Tech Address:' => 'tech.address.street.0',
|
||||
'Tech Address 2:' => 'tech.address.street.1',
|
||||
'Tech City:' => 'tech.address.city',
|
||||
'Tech State/Province:' => 'tech.address.state',
|
||||
'Tech Postal Code:' => 'tech.address.pcode',
|
||||
'Tech Country:' => 'tech.address.country',
|
||||
'Tech Phone Number:' => 'tech.phone',
|
||||
'Tech Fax Number:' => 'tech.fax',
|
||||
'Tech Email:' => 'tech.email',
|
||||
'Zone ID:' => 'zone.handle',
|
||||
'Zone Organization:' => 'zone.organization',
|
||||
'Zone Name:' => 'zone.name',
|
||||
'Zone Address:' => 'zone.address.street.0',
|
||||
'Zone Address 2:' => 'zone.address.street.1',
|
||||
'Zone City:' => 'zone.address.city',
|
||||
'Zone State/Province:' => 'zone.address.state',
|
||||
'Zone Postal Code:' => 'zone.address.pcode',
|
||||
'Zone Country:' => 'zone.address.country',
|
||||
'Zone Phone Number:' => 'zone.phone',
|
||||
'Zone Fax Number:' => 'zone.fax',
|
||||
'Zone Email:' => 'zone.email'
|
||||
);
|
||||
|
||||
return generic_parser_b($data_str, $items);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
|
@ -25,17 +25,15 @@ 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('__CONTENDER_HANDLER__'))
|
||||
define('__CONTENDER_HANDLER__', 1);
|
||||
if (!defined('__DOMAINCONTENDER_HANDLER__'))
|
||||
define('__DOMAINCONTENDER_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class contender_handler
|
||||
class domaincontender_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative Contact:',
|
|
@ -25,17 +25,15 @@ 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('__NDIRECT_HANDLER__'))
|
||||
define('__NDIRECT_HANDLER__', 1);
|
||||
if (!defined('__NAMESDIRECT_HANDLER__'))
|
||||
define('__NAMESDIRECT_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class ndirect_handler
|
||||
class namesdirect_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative',
|
|
@ -27,17 +27,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
/* stargate.whois 1.1 David Saez Padros <david@ols.es> */
|
||||
|
||||
if (!defined("__STARGATE_HANDLER__"))
|
||||
define("__STARGATE_HANDLER__", 1);
|
||||
if (!defined('__STARGATEINC_HANDLER__'))
|
||||
define('__STARGATEINC_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class stargate_handler
|
||||
class stargateinc_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant',
|
||||
'admin' => 'Administrative',
|
Loading…
Reference in a new issue