79 lines
2.4 KiB
Text
79 lines
2.4 KiB
Text
<?
|
|
/*
|
|
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.
|
|
*/
|
|
|
|
/* nlnic.whois 1.2 David Saez - updated to use generic3.whois */
|
|
/* 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);
|
|
|
|
require_once("generic3.whois");
|
|
|
|
class nlnic extends Whois {
|
|
|
|
function nlnic($data)
|
|
{
|
|
$this->result=$this->parse($data);
|
|
}
|
|
|
|
function parse ($data)
|
|
{
|
|
|
|
$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:"
|
|
);
|
|
|
|
$r["rawdata"]=$data["rawdata"];
|
|
$r["regyinfo"]["referrer"]="http://www.domain-registry.nl";
|
|
$r["regyinfo"]["registrar"]="Stichting Internet Domeinregistratie NL";
|
|
|
|
$r["regrinfo"] = get_blocks($data["rawdata"],$items);
|
|
|
|
if (!isset($r["regrinfo"]["domain"]["name"][0])) {
|
|
$r["regrinfo"]["registered"]="no";
|
|
return $r;
|
|
}
|
|
|
|
$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"]);
|
|
|
|
$r["regrinfo"]["registered"]="yes";
|
|
return($r);
|
|
}
|
|
}
|
|
?>
|