lots' of changes

This commit is contained in:
sparc 2005-03-01 19:58:54 +00:00
parent 343deb01b3
commit 7a99279b07
25 changed files with 467 additions and 35 deletions

View file

@ -1,3 +1,19 @@
2005/03/01 David Saez <david@ols.es>
- fixed Network Solutions detection
- ordered list of handlers in gtld.whois
- added handler for Moniker
- added handler for Innerwise
- added handler for Stargate
- added handler for Cronon
- added handler for Joker
- fixed scripts using php short tags
thanx to rpm@keynetics.com
- added handler for Schlund
2004/08/06 David Saez <david@ols.es>
- fixed denic.whois when domain does not
exist, thanx to bjoern@xrow.de
2004/04/24 David Saez <david@ols.es>
- added .is handler
- added some notes about generic support functions

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

59
cronon.whois Normal file
View file

@ -0,0 +1,59 @@
<?php
/*
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.
*/
/* cronon.whois 1.0 David Saez Padros <david@ols.es> */
if(!defined("__CRONON_HANDLER__")) define("__CRONON_HANDLER__",1);
require_once("generic3.whois");
class cronon extends gtld {
function cronon($data) {
$this->result=$this->parse($data);
}
function parse ($data_str) {
$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: "
);
$r = get_blocks($data_str,$items);
$r["owner"] = get_contact($r["owner"]);
$r["admin"] = get_contact($r["admin"]);
$r["tech"] = get_contact($r["tech"]);
return($r);
}
}
?>

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -34,7 +34,7 @@ $endtag="";
while (list($key,$val)=each($rawdata))
{
$val=trim($val);
if ($val=="") continue;
if ($val=='') continue;
$found=false;
reset($items);
@ -43,10 +43,17 @@ while (list($key,$val)=each($rawdata))
$pos=strpos($val,$match);
if ($field!="" && $pos!==false) {
$last=substr(trim($val),-1,1);
if ($field!='' && $pos!==false) {
if ($val==$match) {
$found=true;
$endtag='';
$line=$val;
break;
}
if ($last==":" || $last=="-" || $last=="]") {
$last=substr($val,-1,1);
if ($last==':' || $last=='-' || $last==']') {
$found=true;
$endtag=$last;
$line=$val;

View file

@ -54,25 +54,32 @@ class gtld extends Whois {
var $REGISTRARS = array(
"ALABANZA, INC." => "bulkregistercom",
'ARSYS INTERNET, S.L. D/B/A NICLINE.COM' => "nicline",
"ASCIO TECHNOLOGIES, INC." => "ascio",
"BULKREGISTER.COM, INC." => "bulkregistercom",
"BULKREGISTER, LLC." => "bulkregistercom",
'COMPUTER SERVICES LANGENBACH GMBH DBA JOKER.COM' => 'joker',
"CORE INTERNET COUNCIL OF REGISTRARS" => "core",
"DOTSTER, INC." => "dotster",
"ENOM, INC." => "enom",
"MELBOURNE IT, LTD. D/B/A INTERNET NAMES WORLDWIDE" => "inwwcom",
"NETWORK SOLUTIONS, INC." => "netsol",
"REGISTER.COM, INC." => "registercom",
"TUCOWS, INC." => "opensrsnet",
"IHOLDINGS.COM, INC. D/B/A DOTREGISTRAR.COM" => "dotregistrar",
"INTERDOMAIN, S.A." => "interdomain",
"ASCIO TECHNOLOGIES, INC." => "ascio",
"INTERCOSMOS MEDIA GROUP, INC. D/B/A DIRECTNIC.COM" => "directnic",
"DOMAINDISCOVER" => "buydomains",
"TLDS, INC. DBA SRSPLUS" => "srsplus",
'CRONON AG BERLIN, NIEDERLASSUNG REGENSBURG' => 'cronon',
"DOMAIN BANK, INC." => "domainbank",
"GO DADDY SOFTWARE, INC." => "godaddy",
"ARSYS INTERNET, S.L. D/B/A NICLINE.COM" => "nicline",
"WILD WEST DOMAINS, INC." => "godaddy"
"DOMAINDISCOVER" => "buydomains",
"DOTSTER, INC." => "dotster",
"ENOM, INC." => 'enom',
"GO DADDY SOFTWARE, INC." => 'godaddy',
"IHOLDINGS.COM, INC. D/B/A DOTREGISTRAR.COM" => 'dotregistrar',
"INNERWISE, INC. D/B/A ITSYOURDOMAIN.COM" => 'innerwise',
"INTERCOSMOS MEDIA GROUP, INC. D/B/A DIRECTNIC.COM" => "directnic",
"INTERDOMAIN, S.A." => "interdomain",
"MELBOURNE IT, LTD. D/B/A INTERNET NAMES WORLDWIDE" => "inwwcom",
"MONIKER ONLINE SERVICES, INC." => 'moniker',
"NETWORK SOLUTIONS, INC." => "netsol",
"NETWORK SOLUTIONS, LLC." => "netsol",
"REGISTER.COM, INC." => "registercom",
'SCHLUND+PARTNER AG' => 'schlund',
'STARGATE HOLDINGS CORP.' => 'stargate',
'TLDS, INC. DBA SRSPLUS' => 'srsplus',
'TUCOWS, INC.' => 'opensrsnet',
'WILD WEST DOMAINS, INC.' => 'godaddy'
);
function gTLD ($data, $query) {

62
innerwise.whois Normal file
View file

@ -0,0 +1,62 @@
<?php
/*
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.
*/
/* innerwise.whois 1.0 David Saez Padros <david@ols.es> */
if(!defined("__INNERWISE_HANDLER__")) define("__INNERWISE_HANDLER__",1);
require_once("generic3.whois");
class innerwise extends gtld {
function innerwise($data) {
$this->result=$this->parse($data);
}
function parse ($data_str) {
$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 "
);
$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["billing"] = get_contact($r["billing"]);
return($r);
}
}
?>

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

61
joker.whois Normal file
View file

@ -0,0 +1,61 @@
<?
/*
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.
*/
/* joker.whois 1.00 David Saez <david@ols.es> */
if(!defined("__JOKER_HANDLER__")) define("__JOKER_HANDLER__",1);
include_once("generic2.whois");
class joker extends gtld {
function joker($data) {
$this->result=$this->parse($data);
}
function parse ($data_str) {
$items = array(
"owner.name" => "owner:",
"owner.address.street" => "address:",
"owner.address.zcode" => "postal-code:",
"owner.address.city" => "city:",
"owner.address.state" => "state:",
"owner.address.country" => "country:",
"admin.email" => "admin-c:",
"tech.email" => "tech-c:",
"billing.email" => "billing-c:",
"domain.created" => "created:",
"domain.changed" => "modified:",
"domain.sponsor" => "reseller-1:"
);
$r=generic_whois($data_str,$items);
return($r);
}
}
?>

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

62
moniker.whois Normal file
View file

@ -0,0 +1,62 @@
<?php
/*
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.
*/
/* moniker.whois 1.0 David Saez Padros <david@ols.es> */
if(!defined("__MONIKER_HANDLER__")) define("__MONIKER_HANDLER__",1);
require_once("generic3.whois");
class moniker extends gtld {
function moniker($data) {
$this->result=$this->parse($data);
}
function parse ($data_str) {
$items = array( "owner" => "Registrant:",
"admin" => "Administrative ",
"tech" => "Technical ",
"billing" => "Billing ",
"domain.name" => "Domain Name:",
"domain.nserver." => "Domain servers in listed order:",
"domain.created" => "Record created on ",
"domain.expires" => "Domain expires on ",
"domain.changed" => "Database last updated 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["billing"] = get_contact($r["billing"]);
return($r);
}
}
?>

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

View file

@ -1,4 +1,4 @@
<?
<?php
/*
Whois2.php PHP classes to conduct whois queries

92
schlund.whois Normal file
View file

@ -0,0 +1,92 @@
<?
/*
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.
*/
/* schlund.whois 1.00 David Saez <david@ols.es> */
if(!defined("__SCHLUND_HANDLER__")) define("__SCHLUND_HANDLER__",1);
include_once("generic2.whois");
class schlund extends gtld {
function schlund($data) {
$this->result=$this->parse($data);
}
function parse ($data_str) {
$items = array(
"domain.created" => "created:",
"domain.changed" => "last-changed:",
"domain.status" => "status:",
"owner.name.first" => "registrant-firstname:",
"owner.name.last" => "registrant-lastname:",
"owner.organization" => "registrant-organization:",
"owner.address.street." => "registrant-street1:",
"owner.address.street." => "registrant-street2:",
"owner.address.zcode" => "registrant-pcode:",
"owner.address.city" => "registrant-city:",
"owner.address.country" => "registrant-ccode:",
"owner.phone" => "registrant-phone:",
"onwer.email" => "registrant-email:",
"admin.name.first" => "admin-c-firstname:",
"admin.name.last" => "admin-c-lastname:",
"admin.organization" => "admin-c-organization:",
"admin.address.street." => "admin-c-street1:",
"admin.address.street." => "admin-c-street2:",
"admin.address.zcode" => "admin-c-pcode:",
"admin.address.city" => "admin-c-city:",
"admin.address.country" => "admin-c-ccode:",
"admin.phone" => "admin-c-phone:",
"admin.email" => "admin-c-email:",
"tech.name.first" => "tech-c-firstname:",
"tech.name.last" => "tech-c-lastname:",
"tech.organization" => "tech-c-organization:",
"tech.address.street." => "tech-c-street1:",
"tech.address.street." => "tech-c-street2:",
"tech.address.zcode" => "tech-c-pcode:",
"tech.address.city" => "tech-c-city:",
"tech.address.country" => "tech-c-ccode:",
"tech.phone" => "tech-c-phone:",
"tech.email" => "tech-c-email:",
"billing.name.first" => "bill-c-firstname:",
"billing.name.last" => "bill-c-lastname:",
"billing.organization" => "bill-c-organization:",
"billing.address.street." => "bill-c-street1:",
"billing.address.street." => "bill-c-street2:",
"billing.address.zcode" => "bill-c-pcode:",
"billing.address.city" => "bill-c-city:",
"billing.address.country" => "bill-c-ccode:",
"billing.phone" => "bill-c-phone:",
"billing.email" => "bill-c-email:"
);
$r=generic_whois($data_str,$items);
return($r);
}
}
?>

61
stargate.whois Normal file
View file

@ -0,0 +1,61 @@
<?php
/*
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.
*/
/* stargate.whois 1.0 David Saez Padros <david@ols.es> */
if(!defined("__STARGATE_HANDLER__")) define("__STARGATE_HANDLER__",1);
require_once("generic3.whois");
class stargate extends gtld {
function stargate($data) {
$this->result=$this->parse($data);
}
function parse ($data_str) {
$items = array( "owner" => "Registrant",
"admin" => "Administrative",
"tech" => "Technical",
"billing" => "Billing",
"domain.name" => "Domain Name:",
"domain.nserver." => "Name Servers",
"domain.created" => "Domain Created:",
"domain.expires" => "Domain Expires:"
);
$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["billing"] = get_contact($r["billing"]);
return($r);
}
}
?>

View file

@ -9,6 +9,7 @@ cnnic cnnic.net.cn
denic 4ever.de
dotfm dot.fm
esnic ols.es
hunic nic.hu
lunic dns.lu
mxnic nic.mx
nicse nic-se.se
@ -23,20 +24,24 @@ ascio.com ascio.com
bulkregistercom bulkregister.com
buydomains buydomains.com
core corenic.com
cronon antiquea.com
directnic directnic.com
domainbank domainbank.com
dotregistrar dotregistrar.com
dotster dotster.com
enom enom.com
godaddy godaddy.com
wwd iprocommunicator.com
joker managerialanalyzer.com
innerwise sexido.com
interdomain interdominio.com
inwwcom ?
moniker kaka.com
netsol olsns.com
nicline nicline.com
opensrsnet tucows.com
registercom register.com
srsplus srsplus.com
wwd iprocommunicator.com
// Other