2003-01-18 11:51:20 +00:00
|
|
|
<?
|
|
|
|
/*
|
|
|
|
Whois2.php PHP classes to conduct whois queries
|
|
|
|
|
|
|
|
Copyright (C)1999,2000 easyDNS Technologies Inc. & Mark Jeftovic
|
|
|
|
|
|
|
|
Maintained by Mark Jeftovic <markjr@easydns.com>
|
|
|
|
|
|
|
|
For the most recent version of this package:
|
|
|
|
|
|
|
|
http://www.easydns.com/~markjr/whois2/
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2003-03-17 10:06:55 +00:00
|
|
|
/* nlnic.whois 1.2 David Saez - updated to use generic3.whois */
|
2003-01-18 11:51:20 +00:00
|
|
|
/* nlnic.whois 1.1 David Saez - common object model */
|
|
|
|
/* nlnic.whois 1.0 Matthijs Koot - 2003/01/14 - <koot@cyberwar.nl> */
|
|
|
|
|
|
|
|
if(!defined("__NLNIC_HANDLER__")) define("__NLNIC_HANDLER__",1);
|
|
|
|
|
2003-03-17 10:06:55 +00:00
|
|
|
require_once("generic3.whois");
|
|
|
|
|
2003-01-18 11:51:20 +00:00
|
|
|
class nlnic extends Whois {
|
|
|
|
|
|
|
|
function nlnic($data)
|
|
|
|
{
|
|
|
|
$this->result=$this->parse($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
function parse ($data)
|
|
|
|
{
|
|
|
|
|
2003-03-17 10:06:55 +00:00
|
|
|
$items = array(
|
|
|
|
"domain.name" => "Domain name:",
|
|
|
|
"domain.status" => "Status:",
|
|
|
|
"domain.nserver" => "Domain nameservers:",
|
|
|
|
"domain.created" => "Date first registered:",
|
|
|
|
"domain.changed" => "Record last updated:",
|
|
|
|
"domain.sponsor" => "Record maintained by:",
|
|
|
|
"owner" => "Registrant:",
|
|
|
|
"admin" => "Administrative contact:",
|
|
|
|
"tech" => "Technical contact:"
|
|
|
|
);
|
2003-01-18 11:51:20 +00:00
|
|
|
|
2003-03-17 10:06:55 +00:00
|
|
|
$r["rawdata"]=$data["rawdata"];
|
2003-03-22 21:17:44 +00:00
|
|
|
$r["regyinfo"]["referrer"]="http://www.domain-registry.nl";
|
2003-03-17 10:06:55 +00:00
|
|
|
$r["regyinfo"]["registrar"]="Stichting Internet Domeinregistratie NL";
|
|
|
|
|
|
|
|
$r["regrinfo"] = get_blocks($data["rawdata"],$items);
|
|
|
|
|
|
|
|
$r["regrinfo"]["domain"]["name"]=$r["regrinfo"]["domain"]["name"][0];
|
|
|
|
|
|
|
|
$r["regrinfo"]["tech"] = get_contact($r["regrinfo"]["tech"]);
|
|
|
|
$r["regrinfo"]["owner"] = get_contact($r["regrinfo"]["owner"]);
|
|
|
|
$r["regrinfo"]["admin"] = get_contact($r["regrinfo"]["admin"]);
|
2003-01-18 11:51:20 +00:00
|
|
|
|
|
|
|
return($r);
|
|
|
|
}
|
|
|
|
}
|