cosmetic fixes to many handlers (removed unuseful spaces,

removed change history, regyinfo position unification,...)
This commit is contained in:
sparc 2011-07-08 18:16:52 +00:00
parent f9483ceff9
commit 1010e75eec
125 changed files with 712 additions and 1095 deletions

View File

@ -5,6 +5,9 @@
- fixed bug #3333558
- .uk handler improvement (partial patch #3314417)
- added support for .gt domains (request #3353926)
- cosmetic fixes to many handlers (removed unuseful
spaces, removed change history, regyinfo position
unification,...)
2011/06/26
- added handler for gandi (request #3155752)

View File

@ -5,7 +5,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -36,30 +36,30 @@ $resout = extract_block($out, 'results');
if (isSet($_GET['query']))
{
$query = $_GET['query'];
if (!empty($_GET['output']))
$output = $_GET['output'];
else
$output = '';
include_once('whois.main.php');
include_once('whois.utils.php');
$whois = new Whois();
// Set to true if you want to allow proxy requests
$allowproxy = false;
// uncomment the following line to get faster but less acurate results
// $whois->deep_whois = false;
// To use special whois servers (see README)
// To use special whois servers (see README)
//$whois->UseServer('uk','whois.nic.uk:1043?{hname} {ip} {query}');
//$whois->UseServer('au','whois-check.ausregistry.net.au');
// uncomment the following line to add support for non ICANN tld's
// $whois->non_icann = true;
$result = $whois->Lookup($query);
$resout = str_replace('{query}', $query, $resout);
$winfo = '';
@ -77,8 +77,8 @@ if (isSet($_GET['query']))
$winfo = $utils->showObject($result);
}
break;
case 'nice':
case 'nice':
if (!empty($result['rawdata']))
{
$utils = new utils;
@ -90,13 +90,13 @@ if (isSet($_GET['query']))
$winfo = implode($whois->Query['errstr'],"\n<br></br>");
else
$winfo = 'Unexpected error';
}
}
break;
case 'proxy':
if ($allowproxy)
exit(serialize($result));
default:
if(!empty($result['rawdata']))
{
@ -105,16 +105,16 @@ if (isSet($_GET['query']))
else
{
$winfo = implode($whois->Query['errstr'],"\n<br></br>");
}
}
}
//$winfo = utf8_encode($winfo);
$resout = str_replace('{result}', $winfo, $resout);
}
else
$resout = '';
echo str_replace('{results}', $resout, $out);
//-------------------------------------------------------------------------

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* uaenic.whois 1.00 Liron Newman <ln-phpwhois@eesh.net> */
/* Based upon atnic.whois 2.00 David Saez <david@ols.es> */
if (!defined('__AE_HANDLER__'))
define('__AE_HANDLER__', 1);

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -34,12 +34,11 @@ class aero_handler
{
function parse($data_str, $query)
{
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, 'ymd');
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.aero',
'registrar' => 'Societe Internationale de Telecommunications Aeronautiques SC'
);
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, 'ymd');
return $r;
}
}

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* info.whois 2.0 David Seaz - updated to common object model */
/* info.whois 1.0 David Saez Padros <david@ols.es> */
if (!defined('__AG_HANDLER__'))
define('__AG_HANDLER__', 1);
@ -37,12 +34,11 @@ class ag_handler
{
function parse($data_str, $query)
{
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.ag',
'registrar' => 'Nic AG'
);
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
return $r;
}
}

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -38,7 +38,7 @@ class asia_handler
'referrer'=>'http://www.dotasia.org/',
'registrar' => 'DotAsia'
);
return($r);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,11 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* atnic.whois 2.00 David Saez <david@ols.es> */
/* atnic.whois 0.99 Martin Pircher <martin@pircher.net> */
/* dedicated to klopfer, *24.07.1999, +21.01.2001 */
/* based upon brnic.whois by Marcelo Sanches msanches@sitebox.com.br */
if (!defined('__AT_HANDLER__'))
define('__AT_HANDLER__', 1);
@ -37,7 +32,6 @@ require_once('whois.parser.php');
class at_handler
{
function parse($data_str, $query)
{
$translate = array(
@ -60,11 +54,6 @@ class at_handler
'zone-c' => 'zone'
);
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.at',
'registrar' => 'NIC-AT'
);
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
if (isset($reg['domain']['remarks']))
@ -103,7 +92,11 @@ class at_handler
}
$r['regrinfo'] = $reg;
return ($r);
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.at',
'registrar' => 'NIC-AT'
);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,11 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* aunic.whois 2.1 by David Saez <david@ols.es> update detection schema*/
/* aunic.whois 2.0 by David Saez <david@ols.es> common object model */
/* aunic.whois 1.0 by Edi Wibowo <edi@ausnik-it.com,http://www.ausnik-it.com> */
/* check with telstra.com.au */
if (!defined('__AU_HANDLER__'))
define('__AU_HANDLER__', 1);
@ -37,7 +32,6 @@ require_once('whois.parser.php');
class au_handler
{
function parse($data_str, $query)
{
@ -57,24 +51,11 @@ class au_handler
'Name Server:' => 'domain.nserver.'
);
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
$r['regyinfo'] = array(
'referrer' => 'http://www.aunic.net',
'registrar' => 'AU-NIC'
);
if ($data_str['rawdata'][0]=='Not Available')
{
$r['regrinfo']['registered']='yes';
return $r;
}
if ($data_str['rawdata'][0]=='Available')
{
$r['regrinfo']['registered']='no';
return $r;
}
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
return $r;
}
}

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* benic.whois 1.0 Matthijs Koot <koot@cyberwar.nl> */
/* benic.whois 1.2 David Saez */
require_once('whois.parser.php');
if (!defined('__BE_HANDLER__'))
@ -35,10 +32,8 @@ if (!defined('__BE_HANDLER__'))
class be_handler
{
function parse($data, $query)
{
$items = array(
'domain.name' => 'Domain:',
'domain.status' => 'Status:',
@ -49,7 +44,7 @@ class be_handler
'tech' => 'Agent Technical Contacts:',
'agent' => 'Agent:'
);
$trans = array(
'company name2:' => ''
);
@ -60,7 +55,7 @@ class be_handler
{
$r['regrinfo']['registered'] = 'yes';
$r['regrinfo'] = get_contacts($r['regrinfo'],$trans);
if (isset($r['regrinfo']['agent']))
{
$sponsor = get_contact($r['regrinfo']['agent'],$trans);
@ -75,9 +70,7 @@ class be_handler
$r['regyinfo']['referrer'] = 'http://www.domain-registry.nl';
$r['regyinfo']['registrar'] = 'DNS Belgium';
$r['rawdata'] = $data['rawdata'];
return ($r);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* neulevel.whois 2.2 David Saez */
/* neulevel.whois 1.0 by Brian Blood <brian@macserve.net> */
if (!defined('__BIZ_HANDLER__'))
define('__BIZ_HANDLER__', 1);
@ -38,13 +35,11 @@ class biz_handler
function parse($data_str, $query)
{
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, '-md--y');
$r['regyinfo'] = array(
'referrer' => 'http://www.neulevel.biz',
'registrar' => 'NEULEVEL'
);
return ($r);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* brnic.whois 2.1 David Saez <david@ols.es>
/* brnic.whois 1.0 by Marcelo Sanches msanches@sitebox.com.br */
require_once('whois.parser.php');
if (!defined('__BR_HANDLER__'))
@ -57,11 +54,6 @@ class br_handler
$r = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
$a['regyinfo'] = array(
'registrar' => 'BR-NIC',
'referrer' => 'http://www.nic.br'
);
if (in_array('Permission denied.', $r['disclaimer']))
{
$r['registered'] = 'unknown';
@ -76,14 +68,17 @@ class br_handler
$r['owner']['organization'] = $r['domain']['owner'];
unset($r['domain']['owner']);
}
if (isset($r['domain']['responsible'])) unset($r['domain']['responsible']);
if (isset($r['domain']['address'])) unset($r['domain']['address']);
if (isset($r['domain']['phone'])) unset($r['domain']['phone']);
$a['regrinfo'] = $r;
return ($a);
$a['regyinfo'] = array(
'registrar' => 'BR-NIC',
'referrer' => 'http://www.nic.br'
);
return $a;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,10 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* cira.whois 1.0 by Mark Jeftovic <markjr@easydns.com> */
/* 2.0 David Saez <david@ols.es> */
/* standarized object model */
if (!defined('__CA_HANDLER__'))
define('__CA_HANDLER__', 1);
@ -36,7 +32,6 @@ require_once('whois.parser.php');
class ca_handler
{
function parse($data_str, $query)
{
$items = array(
@ -66,18 +61,16 @@ class ca_handler
$r['regrinfo']['domain']['sponsor'] = trim($reg);
}
$r['regyinfo'] = array(
'registrar' => 'CIRA',
'referrer' => 'http://www.cira.ca/'
);
if (empty($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == 'available')
$r['regrinfo']['registered'] = 'no';
else
$r['regrinfo']['registered'] = 'yes';
return ($r);
$r['regyinfo'] = array(
'registrar' => 'CIRA',
'referrer' => 'http://www.cira.ca/'
);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* cat.whois 1.0 David Saez */
if (!defined('__CAT_HANDLER__'))
define('__CAT_HANDLER__', 1);
@ -37,13 +35,13 @@ class cat_handler
function parse($data_str, $query)
{
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
if (!isset($r['regrinfo']['domain']['name']))
$r['regrinfo']['registered'] = 'no';
$r['regyinfo']['referrer'] = 'http://www.domini.cat/';
$r['regyinfo']['registrar'] = 'Domini punt CAT';
return ($r);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,13 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* chnic.whois 1.1 David Saez Padros <david@ols.es> For .ch & .li domains */
/* 8/1/2002 1.2 Added status (active/inactive) and corrected error */
/* for inactive domains */
/* (like creart.ch) thanx to Roger Fichmann */
/* 24/7/2002 2.0 David Saez - updated to new object model */
/* 17/3/2003 2.1 David Saez - rewritten to use generic3.whois */
require_once('whois.parser.php');
if (!defined('__CH_HANDLER__'))
@ -62,20 +55,15 @@ class ch_handler
if (!empty($r['regrinfo']['domain']['name']))
{
$r['regrinfo'] = get_contacts($r['regrinfo'],$trans);
$r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
if (isset($r['regrinfo']['domain']['changed'][0]))
$r['regrinfo']['domain']['changed'] = get_date($r['regrinfo']['domain']['changed'][0], 'dmy');
if (isset($r['regrinfo']['domain']['created'][0]))
$r['regrinfo']['domain']['created'] = get_date($r['regrinfo']['domain']['created'][0], 'dmy');
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.ch',
'registrar' => 'SWITCH Domain Name Registration'
);
$r['regrinfo']['registered'] = 'yes';
}
else
@ -84,8 +72,11 @@ class ch_handler
$r['regrinfo']['registered'] = 'no';
}
return ($r);
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.ch',
'registrar' => 'SWITCH Domain Name Registration'
);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* lunic.whois 2.0 David Saez <david@ols.es> 2003/09/08 */
/* cnnic.whois 1.0 Chewy - 2003/Sep/03 */
if (!defined('__CN_HANDLER__'))
define('__CN_HANDLER__', 1);
@ -35,7 +32,6 @@ require_once('whois.parser.php');
class cn_handler
{
function parse($data_str, $query)
{
$items = array(
@ -89,8 +85,7 @@ class cn_handler
'referrer' => 'http://www.cnnic.net.cn',
'registrar' => 'China NIC'
);
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -37,7 +37,7 @@ class co_handler
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, '-md--y');
$r['regyinfo']['referrer'] = 'http://www.cointernet.com.co/';
$r['regyinfo']['registrar'] = '.CO Internet, S.A.S.';
return ($r);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,7 +32,6 @@ require_once('whois.parser.php');
class co_Za_handler
{
function parse($data_str, $query)
{
$items = array(
@ -65,11 +64,10 @@ class co_Za_handler
);
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
$r['regyinfo']['referrer'] = 'http://www.co.za';
$r['regyinfo']['registrar'] = 'UniForum Association';
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,7 +32,6 @@ require_once('whois.parser.php');
class coop_handler
{
function parse($data_str, $query)
{
@ -66,26 +65,26 @@ class coop_handler
'Fax:' => 'fax',
'Email:' => 'email'
);
$blocks = get_blocks($data_str['rawdata'],$items);
$r=array();
if (isset($blocks['domain']))
{
$r['regrinfo']['domain'] = format_dates($blocks['domain'],'dmy');
$r['regrinfo']['registered'] = 'yes';
if (isset($blocks['owner']))
{
$r['regrinfo']['owner'] = generic_parser_b($blocks['owner'],$translate,'dmy',false);
if (isset($blocks['tech']))
$r['regrinfo']['tech'] = generic_parser_b($blocks['tech'],$translate,'dmy',false);
if (isset($blocks['admin']))
$r['regrinfo']['admin'] = generic_parser_b($blocks['admin'],$translate,'dmy',false);
if (isset($blocks['billing']))
$r['regrinfo']['billing'] = generic_parser_b($blocks['billing'],$translate,'dmy',false);
}
@ -96,7 +95,11 @@ class coop_handler
}
else
$r['regrinfo']['registered'] = 'no';
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.coop',
'registrar' => '.coop registry'
);
return $r;
}
}

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,10 +32,8 @@ require_once('whois.parser.php');
class cz_handler
{
function parse($data_str, $query)
{
$translate = array(
'expire' => 'expires',
'registered' => 'created',
@ -72,4 +70,4 @@ class cz_handler
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,17 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* denic.whois 1.0 by david saez */
/* denic.whois 0.4 by Oliver Notka <notka@ettel-gmbh.de> */
/* Fixed error when domain doesnt exist */
/* denic.whois 0.3 by David Saez <david@ols.es> */
/* denic.whois 0.2 by Elmar K. Bins <elmi@4ever.de> */
/* based upon brnic.whois by Marcelo Sanches <msanches@sitebox.com.br> */
/* and atnic.whois by Martin Pircher <martin@pircher.net> */
/* this version does not yet deliver contact data, but handles only */
if (!defined('__DE_HANDLER__'))
define('__DE_HANDLER__', 1);
@ -45,7 +34,6 @@ class de_handler
{
function parse($data_str, $query)
{
$items = array(
'domain.name' => 'Domain:',
'domain.nserver.' =>'Nserver:',
@ -84,8 +72,7 @@ class de_handler
$r['regrinfo']['domain']['changed'] = substr($r['regrinfo']['domain']['changed'], 0, 10);
$r['regrinfo']['registered'] = 'yes';
}
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,7 +32,6 @@ require_once('whois.parser.php');
class edu_handler
{
function parse($data_str, $query)
{
$items = array(
@ -44,21 +43,20 @@ class edu_handler
'owner' => 'Registrant:',
'admin' => 'Administrative Contact:',
'tech' => 'Technical Contact:',
'billing' => 'Billing Contact:'
'billing' => 'Billing Contact:'
);
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'dmy');
if (isset($b['tech']))
{
if ($r['regrinfo']['tech']['name'] == 'Same as above')
$r['regrinfo']['tech'] = $r['regrinfo']['admin'];
}
$r['regyinfo']['referrer'] = 'http://whois.educause.net';
$r['regyinfo']['registrar'] = 'EDUCASE';
return ($r);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,7 +32,6 @@ if (!defined('__EU_HANDLER__'))
class eu_handler
{
function parse($data, $query)
{
@ -46,14 +45,14 @@ class eu_handler
'owner' => 'Registrant:',
'' => 'Please visit'
);
$extra = array(
'organisation:' => 'organization',
'website:' => 'url'
);
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
if (!empty($r['regrinfo']['domain']['status']))
switch ($r['regrinfo']['domain']['status'])
{
@ -61,11 +60,11 @@ class eu_handler
case 'AVAILABLE':
$r['regrinfo']['registered'] = 'no';
break;
case 'APPLICATION PENDING':
$r['regrinfo']['registered'] = 'pending';
break;
default:
$r['regrinfo']['registered'] = 'unknown';
}
@ -77,12 +76,10 @@ class eu_handler
if (isset($r['regrinfo']['domain']['registrar']))
$r['regrinfo']['domain']['registrar'] = get_contact($r['regrinfo']['domain']['registrar'],$extra);
$r['regyinfo']['referrer'] = 'http://www.eurid.eu';
$r['regyinfo']['registrar'] = 'EURID';
$r['rawdata'] = $data['rawdata'];
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* info.whois 2.0 David Seaz - updated to common object model */
/* info.whois 1.0 David Saez Padros <david@ols.es> */
if (!defined('__FI_HANDLER__'))
define('__FI_HANDLER__', 1);
@ -35,10 +32,8 @@ require_once('whois.parser.php');
class fi_handler
{
function parse($data_str, $query)
{
$items = array(
'domain:' => 'domain.name',
'created:' => 'domain.created',
@ -51,15 +46,12 @@ class fi_handler
);
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
$r['regyinfo'] = array(
'referrer' => 'https://domain.ficora.fi/',
'registrar' => 'Finnish Communications Regulatory Authority'
);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* fj.whois 1.0 Franck Martin <franck@avonsys.com> For .fj domains */
require_once('whois.parser.php');
if (!defined('__FJ_HANDLER__'))
@ -34,10 +32,8 @@ if (!defined('__FJ_HANDLER__'))
class fj_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'domain.status' => 'Status:',
@ -50,7 +46,7 @@ class fj_handler
if (!empty($r['regrinfo']['domain']['status']))
{
$r['regrinfo'] = get_contacts($r['regrinfo']);
date_default_timezone_set("Pacific/Fiji");
if (isset($r['regrinfo']['domain']['expires']))
@ -68,6 +64,4 @@ class fj_handler
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* dotfm.whois 1.0 David Saez 4/4/2003 */
if (!defined('__FM_HANDLER__'))
define('__FM_HANDLER__', 1);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class fm_handler
{
function parse($data, $query)
{
$items = array(
'owner' => 'Registrant',
'admin' => 'Admin',
@ -52,7 +48,7 @@ class fm_handler
);
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
$items = array(
'phone number:' => 'phone',
'email address:' => 'email',
@ -63,7 +59,7 @@ class fm_handler
if (!empty($r['regrinfo']['domain']['created']))
{
$r['regrinfo'] = get_contacts($r['regrinfo'],$items);
if (count($r['regrinfo']['billing']['address']) > 4)
$r['regrinfo']['billing']['address'] = array_slice($r['regrinfo']['billing']['address'],0,4);
@ -78,9 +74,7 @@ class fm_handler
$r['regyinfo']['referrer'] = 'http://www.dot.dm';
$r['regyinfo']['registrar'] = 'dotFM';
$r['rawdata'] = $data['rawdata'];
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,10 +32,8 @@ require_once('whois.parser.php');
class fr_handler
{
function parse($data_str, $query)
{
$translate = array(
'fax-no' => 'fax',
'e-mail' => 'email',
@ -68,13 +66,13 @@ class fr_handler
$reg['domain'] = array_merge($reg['domain'],$reg['nserver']);
unset($reg['nserver']);
}
$r['regrinfo'] = $reg;
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.fr',
'registrar' => 'AFNIC'
);
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* buydomains.whois 1.0 david@ols.es 2003/03/30 */
if (!defined('__AFTERNIC_HANDLER__'))
define('__AFTERNIC_HANDLER__', 1);
@ -50,5 +48,4 @@ class afternic_handler
return easy_parser($data_str, $items, 'dmy', false, false, true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,10 +32,8 @@ require_once('whois.parser.php');
class alldomains_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrative',
@ -44,8 +42,8 @@ class alldomains_handler
'domain.sponsor' => 'Registrar:',
'domain.nserver.' => 'Domain servers in listed order:'
);
return easy_parser($data_str, $items, 'ymd');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* ascio.whois 1.0 David Saez Padros <david@ols.es> */
if (!defined('__ASCIO_HANDLER__'))
define('__ASCIO_HANDLER__', 1);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class ascio_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrative ',
@ -52,4 +48,4 @@ class ascio_handler
return easy_parser($data_str, $items, 'ymd',false,false,true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -48,4 +48,4 @@ class assorted_handler
return easy_parser($data_str, $items, 'ymd',false,false,true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* corporatedomains.whois 1.0 david@ols.es 2003/03/30 */
if (!defined('__CORPORATEDOMAINS_HANDLER__'))
define('__CORPORATEDOMAINS_HANDLER__', 1);
@ -52,5 +50,4 @@ class corporatedomains_handler
return easy_parser($data_str, $items, 'dmy', false, false, true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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('__DIRECTNIC_HANDLER__'))
define('__DIRECTNIC_HANDLER__', 1);
@ -52,4 +50,4 @@ class directnic_handler
return easy_parser($data_str, $items, 'mdy',false,false,true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* buydomains.whois 1.0 david@ols.es 2003/03/30 */
if (!defined('__DOMAINDISCOVER_HANDLER__'))
define('__DOMAINDISCOVER_HANDLER__', 1);
@ -50,5 +48,4 @@ class domaindiscover_handler
return easy_parser($data_str, $items, 'dmy', false, false, true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* domainpeople.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
if (!defined('__DOMAINPEOPLE_HANDLER__'))
define('__DOMAINPEOPLE_HANDLER__', 1);
@ -52,10 +50,10 @@ class domainpeople_handler
'domain.status' => 'Status:'
);
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
return ($r);
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,10 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* dotster.whois 1.1 David Saez Padros <david@ols.es> */
/* 17/1/2002 Fixed !! */
/* 2003/02/18 updated to common object model */
if (!defined('__DOTSTER_HANDLER__'))
define('__DOTSTER_HANDLER__', 1);
@ -54,4 +50,4 @@ class dotster_handler
return easy_parser($data_str, $items, 'dmy');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* dreamhost.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
if (!defined('__DREAMHOST_HANDLER__'))
define('__DREAMHOST_HANDLER__', 1);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class dreamhost_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant Contact:',
'admin' => 'Administrative Contact:',
@ -48,11 +44,11 @@ class dreamhost_handler
'domain.created' => 'Record created on',
'domain.expires' => 'Record expires on'
);
//print_r($data_str);
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
return ($r);
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,10 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* enom.whois 1.0 stephen leavitt 2000/12/09 */
/* enom.whois 2.0 tim schulte 2001/03/21 */
/* enom.whois 3.1 david@ols.es 2003/02/16 */
if (!defined('__ENOM_HANDLER__'))
define('__ENOM_HANDLER__', 1);
@ -36,10 +32,8 @@ require_once('whois.parser.php');
class enom_handler
{
function parse($data_str, $query)
{
$items = array(
'owner#0' => 'Registrant Contact',
'owner#1' => 'REGISTRANT Contact:',
@ -65,5 +59,4 @@ class enom_handler
return easy_parser($data_str, $items, 'dmy', false, false, true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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('__FABULOUS_HANDLER__'))
define('__FABULOUS_HANDLER__', 1);
@ -46,17 +44,11 @@ class fabulous_handler
$r = easy_parser($data_str, $items, 'mdy',false,false,true);
if (!isset($r['tech']))
{
$r['tech'] = $r['billing'];
}
if (!isset($r['tech'])) $r['tech'] = $r['billing'];
if (!isset($r['admin']))
{
$r['admin'] = $r['tech'];
}
return ($r);
if (!isset($r['admin'])) $r['admin'] = $r['tech'];
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* fastdomain.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
if (!defined('__FASTDOMAIN_HANDLER__'))
define('__FASTDOMAIN_HANDLER__', 1);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class fastdomain_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant Info:',
'admin' => 'Administrative Info:',
@ -62,9 +58,9 @@ class fastdomain_handler
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
if (isset($r['domain']['nserver']))
{
reset($r['domain']['nserver']);
@ -76,7 +72,7 @@ class fastdomain_handler
}
}
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -53,4 +53,4 @@ class gandi_handler
return easy_parser($data_str, $items, 'dmy', $trans);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* godaddy.whois 1.0 David Saez Padros <david@ols.es> */
if (!defined('__GODADDY_HANDLER__'))
define('__GODADDY_HANDLER__', 1);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class godaddy_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrative Contact',
@ -54,8 +50,7 @@ class godaddy_handler
$r['owner'] = get_contact($r['owner']);
$r['admin'] = get_contact($r['admin'],false,true);
$r['tech'] = get_contact($r['tech'],false,true);
$r = format_dates($r, 'dmy');
return ($r);
return format_dates($r, 'dmy');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -44,8 +44,8 @@ class iana_handler
'domain.name' => 'domain:',
'disclaimer.' => '% '
);
return easy_parser($data_str,$items,'Ymd',false,false,false,'owner');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* interdomain.whois 2.0 David Saez Padros <david@ols.es> */
/* interdomain.whois 1.1 David Saez Padros <david@ols.es> */
if (!defined('__INTERDOMAIN_HANDLER__'))
define('__INTERDOMAIN_HANDLER__', 1);
@ -80,4 +77,4 @@ class interdomain_handler
return generic_parser_b($data_str, $items, 'dmy');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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('__ITSYOURDOMAIN_HANDLER__'))
define('__ITSYOURDOMAIN_HANDLER__', 1);
@ -51,4 +49,4 @@ class itsyourdomain_handler
return easy_parser($data_str, $items, 'mdy');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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.10 David Saez <david@ols.es> */
if (!defined('__JOKER_HANDLER__'))
define('__JOKER_HANDLER__', 1);
@ -34,7 +32,6 @@ require_once('whois.parser.php');
class joker_handler
{
function parse($data_str, $query)
{
$translate = array(
@ -49,13 +46,13 @@ class joker_handler
'person' => 'name',
'domain' => 'name'
);
$contacts = array(
'admin-c' => 'admin',
'tech-c' => 'tech',
'billing-c' => 'billing'
);
$items = array(
'owner' => 'name',
'organization' => 'organization',
@ -65,7 +62,7 @@ class joker_handler
);
$r = generic_parser_a($data_str, $translate, $contacts, 'domain', 'Ymd');
foreach($items as $tag => $convert)
{
if (isset($r['domain'][$tag]))
@ -75,7 +72,7 @@ class joker_handler
}
}
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* markmonitor.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
if (!defined('__MARKMONITOR_HANDLER__'))
define('__MARKMONITOR_HANDLER__', 1);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class markmonitor_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrative Contact:',
@ -49,11 +45,11 @@ class markmonitor_handler
'domain.expires' => 'Expires on..............:',
'domain.changed' => 'Record last updated on..:'
);
//print_r($data_str);
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
return ($r);
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* inwwcom.whois 1.0 jeremiah bellomy 2000/04/06 */
/* inwwcom.whois 2.0 david@ols.es 2003/02/09 */
require_once('whois.parser.php');
if (!defined('__MELBOURNEIT_HANDLER__'))
@ -59,4 +56,4 @@ class melbourneit_handler
return generic_parser_b($data_str, $items, 'ymd');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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.1 David Saez Padros <david@ols.es> */
if (!defined('__MONIKER_HANDLER__'))
define('__MONIKER_HANDLER__', 1);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class moniker_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant',
'admin' => 'Administrative ',
@ -53,4 +49,4 @@ class moniker_handler
return easy_parser($data_str, $items, 'ymd');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,32 +25,29 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* Example 'namejuice.com' */
if (!defined('__NAMEJUICE_HANDLER__'))
define('__NAMEJUICE_HANDLER__', 1);
require_once('whois.parser.php');
class namejuice_handler
{
function parse($data_str, $query)
{
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant Contact:',
'admin' => 'Administrative Contact:',
'tech' => 'Technical Contact:',
'domain.name' => 'Domain name:',
'domain.nserver.' => 'Name Servers:',
'domain.created' => 'Creation date:',
'domain.expires' => 'Expiration date:',
'domain.changed' => 'Update date:',
'domain.status' => 'Status:',
'domain.sponsor' => 'Registration Service Provided By:'
);
$items = array(
'owner' => 'Registrant Contact:',
'admin' => 'Administrative Contact:',
'tech' => 'Technical Contact:',
'domain.name' => 'Domain name:',
'domain.nserver.' => 'Name Servers:',
'domain.created' => 'Creation date:',
'domain.expires' => 'Expiration date:',
'domain.changed' => 'Update date:',
'domain.status' => 'Status:',
'domain.sponsor' => 'Registration Service Provided By:'
);
return easy_parser($data_str, $items, 'dmy', false, true, true);
}
}
return easy_parser($data_str, $items, 'dmy', false, true, true);
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -50,7 +50,7 @@ class nameking_handler
'tel --:' => 'phone',
'email-:' => 'email',
'email:' => 'email',
'mail:' => 'email',
'mail:' => 'email',
'name--' => 'name',
'org:' => 'organization',
'zipcode:' => 'address.pcode',
@ -63,8 +63,8 @@ class nameking_handler
'organization:' => 'organization',
'city, province, post code:' => 'address.city'
);
return easy_parser($data_str, $items, 'mdy', $extra, false, true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* names4ever.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
if (!defined('__NAMES4EVER_HANDLER__'))
define('__NAMES4EVER_HANDLER__', 1);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class names4ever_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrative Contact',
@ -52,10 +48,7 @@ class names4ever_handler
'domain.status' => 'Domain status:'
);
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
//if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
//$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
return ($r);
return easy_parser($data_str, $items, 'dmy', false, false, true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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.1 David Saez Padros <david@ols.es> */
if (!defined('__NAMEVAULT_HANDLER__'))
define('__NAMEVAULT_HANDLER__', 1);
@ -51,4 +49,4 @@ class namevault_handler
return easy_parser($data_str, $items, 'dmy', false, true, true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
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('__NETWORKSOLUTIONS_HANDLER__'))
define('__NETWORKSOLUTIONS_HANDLER__', 1);
@ -50,4 +47,4 @@ class networksolutions_handler
return easy_parser($data_str, $items, 'dmy',false,true,true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,10 +32,8 @@ require_once('whois.parser.php');
class nicco_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Holder Contact',
'admin' => 'Admin Contact',
@ -58,8 +56,7 @@ class nicco_handler
$r['owner'] = get_contact($r['owner'],$translate);
$r['admin'] = get_contact($r['admin'],$translate,true);
$r['tech'] = get_contact($r['tech'],$translate,true);
$r = format_dates($r, 'dmy');
return ($r);
return format_dates($r, 'dmy');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,10 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* NICLINE.whois 1.0 Carlos Galvez <cgalvez@espaciowww.com> */
/* NICLINE.whois 1.1 David Saez */
/* Example 'niclide.com' */
if (!defined('__NICLINE_HANDLER__'))
define('__NICLINE_HANDLER__', 1);
@ -36,10 +32,8 @@ require_once('whois.parser.php');
class nicline_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrative contact:',
@ -54,4 +48,4 @@ class nicline_handler
return easy_parser($data_str, $items, 'dmy');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,10 +32,8 @@ require_once('whois.parser.php');
class onlinenic_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrator:',
@ -55,7 +53,7 @@ class onlinenic_handler
'tel --:' => 'phone',
'email-:' => 'email',
'email:' => 'email',
'mail:' => 'email',
'mail:' => 'email',
'name--' => 'name',
'org:' => 'organization',
'zipcode:' => 'address.pcode',
@ -66,7 +64,7 @@ class onlinenic_handler
',province:' => '',
',country:' => 'address.country'
);
$r = easy_parser($data_str, $items, 'mdy',$extra,false,true);
foreach($r as $key => $part)
@ -78,10 +76,8 @@ class onlinenic_handler
$r[$key]['email'] = $email;
if ($phone != '') $r[$key]['phone'] = $phone;
}
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
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('__OPENSRS_HANDLER__'))
define('__OPENSRS_HANDLER__', 1);
@ -55,7 +52,7 @@ class opensrs_handler
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,7 +32,6 @@ require_once('whois.parser.php');
class ovh_handler
{
function parse($data_str, $query)
{
$items = array(
@ -45,8 +44,8 @@ class ovh_handler
'domain.expires' => 'Record expires on',
'domain.created' => 'Record created on'
);
return easy_parser($data_str, $items, 'mdy',false,false,true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,10 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* gtld.whois 1.0 mark jeftovic 1999/12/06 */
/* gtld.whois 1.1 david@ols.es 2003/02/09 */
/* gtld.whois 1.2 david@ols.es 2003/09/12 */
if (!defined('__GTLD_HANDLER__'))
define('__GTLD_HANDLER__', 1);
@ -36,9 +32,6 @@ require_once('whois.parser.php');
class gtld_handler extends WhoisClient
{
// Deep whois ?
//var $deep_whois = true;
var $HANDLER_VERSION = '1.1';
var $REG_FIELDS = array(
@ -49,7 +42,7 @@ class gtld_handler extends WhoisClient
'Name Server:' => 'regrinfo.domain.nserver.', // identical descriptors
'Updated Date:' => 'regrinfo.domain.changed',
'Last Updated On:' => 'regrinfo.domain.changed',
'EPP Status:' => 'regrinfo.domain.epp_status.',
'EPP Status:' => 'regrinfo.domain.epp_status.',
'Status:' => 'regrinfo.domain.status.',
'Creation Date:' => 'regrinfo.domain.created',
'Created On:' => 'regrinfo.domain.created',
@ -65,7 +58,7 @@ class gtld_handler extends WhoisClient
$this->result = generic_parser_b($data['rawdata'], $this->REG_FIELDS, 'dmy');
unset($this->result['registered']);
if (isset($this->result['nodomain']))
{
unset($this->result['nodomain']);
@ -81,8 +74,8 @@ class gtld_handler extends WhoisClient
// Domain is registered no matter what next server says
$this->result['regrinfo']['registered'] = 'yes';
return $this->result;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,10 +32,8 @@ require_once('whois.parser.php');
class psiusa_handler
{
function parse($data_str, $query)
{
$items = array(
'created:' => 'domain.created',
'last-changed:' => 'domain.changed',
@ -86,8 +84,7 @@ class psiusa_handler
'[zone-c] email:' => 'zone.email',
);
$r = generic_parser_b($data_str, $items);
return ($r);
return generic_parser_b($data_str, $items);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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);
@ -56,4 +54,4 @@ class publicdomainregistry_handler
return easy_parser($data_str, $items, 'mdy', false, true, true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
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('__REGISTER_HANDLER__'))
define('__REGISTER_HANDLER__', 1);
@ -62,4 +59,4 @@ class register_handler
return easy_parser($data_str, $items, 'ymd');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,10 +32,8 @@ require_once('whois.parser.php');
class rrpproxy_handler
{
function parse($data_str, $query)
{
$items = array(
'created-date:' => 'domain.created',
'updated-date:' => 'domain.changed',
@ -88,8 +86,7 @@ class rrpproxy_handler
'billing-email:' => 'billing.email'
);
$r = generic_parser_b($data_str, $items);
return ($r);
return generic_parser_b($data_str, $items);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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);
@ -34,10 +32,8 @@ require_once('whois.parser.php');
class schlund_handler
{
function parse($data_str, $query)
{
$items = array(
'created:' => 'domain.created',
'last-changed:' => 'domain.changed',
@ -84,8 +80,7 @@ class schlund_handler
'bill-c-email:' => 'billing.email'
);
$r = generic_parser_b($data_str, $items);
return ($r);
return generic_parser_b($data_str, $items);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* srsplus.whois 1.0 david@ols.es 11/4/2003 */
if (!defined('__SRSPLUS_HANDLER__'))
define('__SRSPLUS_HANDLER__', 1);
@ -50,4 +48,4 @@ class srsplus_handler
return easy_parser($data_str, $items, 'ymd',false,true,true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ 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('__TMAGNIC_HANDLER__'))
define('__TMAGNIC_HANDLER__', 1);
@ -51,4 +49,4 @@ class tmagnic_handler
return easy_parser($data_str, $items, 'ymd',false,false,true);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* tvcorp.whois 1.1 David Saez Padros <david@ols.es> */
if (!defined('__TVCORP_HANDLER__'))
define('__TVCORP_HANDLER__', 1);
@ -49,4 +47,4 @@ class tvcorp_handler
return easy_parser($data_str, $items, 'mdy');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -49,4 +49,4 @@ class wildwestdomains_handler
return easy_parser($data_str, $items, 'mdy');
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,20 +25,16 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* hunic.whois 0.01 Manuel Machajdik <machajdik@gmxpro.net> */
/* based upon org.whois and atnic.whois */
if(!defined('__HU_HANDLER__'))
define('__HU_HANDLER__',1);
require_once('whois.parser.php');
class hu_handler {
function parse ($data_str, $query) {
$translate = array (
class hu_handler
{
function parse ($data_str, $query)
{
$translate = array (
'fax-no' => 'fax',
'e-mail' => 'email',
'hun-id' => 'handle',
@ -49,7 +45,7 @@ class hu_handler {
'registered' => 'created'
);
$contacts = array (
$contacts = array (
'registrar' => 'owner',
'admin-c' => 'admin',
'tech-c' => 'tech',
@ -57,44 +53,43 @@ class hu_handler {
'zone-c' => 'zone',
'owner-hun-id' => 'owner'
);
// make those broken hungary comments standards-conforming
// replace first found hun-id with owner-hun-id (will be parsed later on)
// make output UTF-8
$comments = true;
$owner_id = true;
foreach ($data_str['rawdata'] as $i => $val)
{
if ($comments)
// make those broken hungary comments standards-conforming
// replace first found hun-id with owner-hun-id (will be parsed later on)
// make output UTF-8
$comments = true;
$owner_id = true;
foreach ($data_str['rawdata'] as $i => $val)
{
if (strpos($data_str['rawdata'][$i],'domain:') === false)
if ($comments)
{
if ($i) $data_str['rawdata'][$i] = '% '.$data_str['rawdata'][$i];
if (strpos($data_str['rawdata'][$i],'domain:') === false)
{
if ($i) $data_str['rawdata'][$i] = '% '.$data_str['rawdata'][$i];
}
else
$comments = false;
}
else
$comments = false;
if ($owner_id && substr($data_str['rawdata'][$i],0,7) == 'hun-id:')
{
$data_str['rawdata'][$i] = 'owner-'.$data_str['rawdata'][$i];
$owner_id = false;
}
}
else
if ($owner_id && substr($data_str['rawdata'][$i],0,7) == 'hun-id:')
{
$data_str['rawdata'][$i] = 'owner-'.$data_str['rawdata'][$i];
$owner_id = false;
}
}
$reg = generic_parser_a($data_str['rawdata'],$translate,$contacts);
unset($reg['domain']['organization']);
unset($reg['domain']['address']);
unset($reg['domain']['phone']);
unset($reg['domain']['fax']);
$r['regrinfo'] = $reg;
$r['regyinfo'] = array('referrer'=>'http://www.nic.hu','registrar'=>'HUNIC');
$r['rawdata'] = $data_str['rawdata'];
format_dates($r,'ymd');
return($r);
$reg = generic_parser_a($data_str['rawdata'],$translate,$contacts);
unset($reg['domain']['organization']);
unset($reg['domain']['address']);
unset($reg['domain']['phone']);
unset($reg['domain']['fax']);
$r['regrinfo'] = $reg;
$r['regyinfo'] = array('referrer'=>'http://www.nic.hu','registrar'=>'HUNIC');
return format_dates($r,'ymd');
}
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -45,11 +45,6 @@ class ie_handler
'tech-c' => 'tech',
);
$r['regyinfo'] = array(
'referrer' => 'http://www.domainregistry.ie',
'registrar' => 'IE Domain Registry'
);
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
if (isset($reg['domain']['descr']))
@ -59,6 +54,10 @@ class ie_handler
}
$r['regrinfo'] = $reg;
$r['regyinfo'] = array(
'referrer' => 'http://www.domainregistry.ie',
'registrar' => 'IE Domain Registry'
);
return $r;
}
}

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* info.whois 2.0 David Seaz - updated to common object model */
/* info.whois 1.0 David Saez Padros <david@ols.es> */
if (!defined('__IN_HANDLER__'))
define('__IN_HANDLER__', 1);

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* info.whois 2.0 David Seaz - updated to common object model */
/* info.whois 1.0 David Saez Padros <david@ols.es> */
if (!defined('__INFO_HANDLER__'))
define('__INFO_HANDLER__', 1);

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,17 +32,13 @@ require_once('whois.gtld.iana.php');
class int_handler
{
function parse($data_str, $query)
{
$iana = new iana_handler();
$r['regrinfo'] = $iana->parse($data_str['rawdata'], $query);
$r['regyinfo']['referrer'] = 'http://www.iana.org/int-dom/int.htm';
$r['regyinfo']['registrar'] = 'Internet Assigned Numbers Authority';
return ($r);
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* ripe.whois 1.0 David Saez 7/6/2002 */
require_once('whois.parser.php');
if (!defined('__AFRINIC_HANDLER__'))
@ -34,7 +32,6 @@ if (!defined('__AFRINIC_HANDLER__'))
class afrinic_handler
{
function parse($data_str, $query)
{
$translate = array(
@ -64,18 +61,17 @@ class afrinic_handler
if (isset($r['owner']['remarks']) && is_array($r['owner']['remarks']))
while (list($key, $val) = each($r['owner']['remarks']))
{
{
$pos = strpos($val,'rwhois://');
if ($pos!==false)
$r['rwhois'] = strtok(substr($val,$pos),' ');
}
$r = array( 'regrinfo' => $r );
$r['regyinfo']['type'] = 'ip';
$r['regyinfo']['registrar'] = 'African Network Information Center';
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* apnic.whois 1.0 David Saez 3/4/2003 */
require_once('whois.parser.php');
if(!defined('__APNIC_HANDLER__'))
@ -46,12 +44,12 @@ class apnic_handler
'descr' => 'desc',
'aut-num' => 'handle'
);
$contacts = array (
'admin-c' => 'admin',
'tech-c' => 'tech'
);
$blocks = generic_parser_a_blocks($data_str,$translate,$disclaimer);
if (isset($disclaimer) && is_array($disclaimer)) $r['disclaimer'] = $disclaimer;
@ -82,12 +80,12 @@ class apnic_handler
$blk = $rb[$key][count($rb[$key])-1];
else
$blk = $rb[$key];
//$blk = strtoupper(strtok($blk,' '));
if (isset($blocks[$blk])) $r[$val] = $blocks[$blk];
unset($rb[$key]);
unset($rb[$key]);
}
$r['network'] = $rb;
format_dates($r,'Ymd');
@ -100,17 +98,17 @@ class apnic_handler
}
else
$r['owner']['organization'] = $r['network']['desc'];
unset($r['network']['desc']);
}
if (isset($r['network']['address']))
{
if (isset($r['owner']['address']))
$r['owner']['address'][] = $r['network']['address'];
else
$r['owner']['address'] = $r['network']['address'];
unset($r['network']['address']);
}
}
@ -120,5 +118,5 @@ class apnic_handler
$r['regyinfo']['registrar'] = 'Asia Pacific Network Information Centre';
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,7 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* arin.whois 1.0 David Saez 7/6/2002 */
if (!defined('__ARIN_HANDLER__'))
define('__ARIN_HANDLER__', 1);
@ -34,7 +33,6 @@ require_once('whois.parser.php');
class arin_handler
{
function parse($data_str, $query)
{
$items = array(
@ -71,10 +69,10 @@ class arin_handler
$r = generic_parser_b($data_str, $items, 'ymd', false, true);
if (@isset($r['abuse']['email']))
if (@isset($r['abuse']['email']))
$r['abuse']['email'] = implode(',',$r['abuse']['email']);
return array( 'regrinfo' => $r );
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* krnic.whois 1.0 David Saez 7/6/2002 */
if (!defined('__KRNIC_HANDLER__'))
define('__KRNIC_HANDLER__', 1);
@ -34,23 +32,21 @@ require_once('whois.parser.php');
class krnic_handler
{
function parse($data_str, $query)
{
$blocks = array(
'owner1' => '[ Organization Information ]',
'tech1' => '[ Technical Contact Information ]',
'owner2' => '[ ISP Organization Information ]',
'admin2' => '[ ISP IP Admin Contact Information ]',
'tech2' => '[ ISP IP Tech Contact Information ]',
'admin3' => '[ ISP IPv4 Admin Contact Information ]',
'tech3' => '[ ISP IPv4 Tech Contact Information ]',
'abuse' => '[ ISP Network Abuse Contact Information ]',
'network.inetnum' => 'IPv4 Address :',
'network.name' => 'Network Name :',
'network.mnt-by' => 'Connect ISP Name :',
@ -72,26 +68,26 @@ class krnic_handler
'Phone :' => 'phone',
'Fax :' => 'fax',
'E-Mail :' => 'email',
'E-Mail :' => 'email'
'E-Mail :' => 'email'
);
$b = get_blocks($data_str, $blocks);
if (isset($b['network']))
$r['network'] = $b['network'];
if (isset($b['owner1']))
$r['owner'] = generic_parser_b($b['owner1'], $items, 'Ymd', false);
else
if (isset($b['owner2']))
$r['owner'] = generic_parser_b($b['owner2'], $items, 'Ymd', false);
if (isset($b['admin2']))
$r['admin'] = generic_parser_b($b['admin2'], $items, 'Ymd', false);
else
if (isset($b['admin3']))
$r['admin'] = generic_parser_b($b['admin3'], $items, 'Ymd', false);
if (isset($b['tech1']))
$r['tech'] = generic_parser_b($b['tech1'], $items, 'Ymd', false);
else
@ -100,18 +96,17 @@ class krnic_handler
else
if (isset($b['tech3']))
$r['tech'] = generic_parser_b($b['tech3'], $items, 'Ymd', false);
if (isset($b['abuse']))
$r['abuse'] = generic_parser_b($b['abuse'], $items, 'Ymd', false);
$r = format_dates($r, 'Ymd');
$r = array( 'regrinfo' => $r );
$r['regyinfo']['type'] ='ip';
$r['regyinfo']['registrar'] = 'Korean Network Information Centre';
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* lacnic.whois 1.0 David Saez 3/7/2003 */
require_once('whois.parser.php');
if (!defined('__LACNIC_HANDLER__'))
@ -34,7 +32,6 @@ if (!defined('__LACNIC_HANDLER__'))
class lacnic_handler
{
function parse($data_str, $query)
{
$translate = array(
@ -69,7 +66,7 @@ class lacnic_handler
if (!empty($r['network']['aut-num']))
$r['network']['handle'] = $r['network']['aut-num'];
if (is_array($r['network']['nserver']))
$r['network']['nserver'] = array_unique($r['network']['nserver']);
@ -78,6 +75,5 @@ class lacnic_handler
$r['regyinfo']['registrar'] = 'Latin American and Caribbean IP address Regional Registry';
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,18 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* ipw.whois 1.00 David Saez 12/07/2001 */
/* 1.01 David Saez 06/07/2002 Added support for */
/* BRNIC, KRNIC, TWNIC and LACNIC */
/* Check with 218.165.121.114 (apnic) */
/* 62.97.102.115 (ripe) */
/* 207.217.120.54 (arin) */
/* 200.165.206.74 (brnic) */
/* 210.178.148.129 (krnic) */
/* 200.44.33.31 (lacnic) */
/* 210.255.180.14 (jpnic) */
if (!defined('__IP_HANDLER__'))
define('__IP_HANDLER__', 1);
@ -46,7 +34,7 @@ class ip_handler extends WhoisClient
{
// Deep whois ?
var $deep_whois = true;
var $HANDLER_VERSION = '1.0';
var $REGISTRARS = array(
@ -66,7 +54,7 @@ class ip_handler extends WhoisClient
'whois.lacnic.net' => 'lacnic',
'whois.afrinic.net' => 'afrinic'
);
var $more_data = array(); // More queries to get more accurated data
var $done = array();
@ -89,9 +77,9 @@ class ip_handler extends WhoisClient
$this->Query['query'] = $query;
$rawdata = $data['rawdata'];
if (empty($rawdata)) return $result;
$presults[] = $rawdata;
$ip = ip2long($query);
$done = array();
@ -100,24 +88,24 @@ class ip_handler extends WhoisClient
{
$rwdata = array_shift($presults);
$found = false;
foreach($rwdata as $line)
{
if (!strncmp($line,'American Registry for Internet Numbers',38)) continue;
$p = strpos($line, '(NETBLK-');
if ($p === false) $p = strpos($line, '(NET-');
if ($p !== false)
{
$net = strtok(substr($line,$p+1),') ');
list($low,$high) = explode('-',str_replace(' ','',substr($line,$p+strlen($net)+3)));
if (!isset($done[$net]) && $ip >= ip2long($low) && $ip <= ip2long($high))
{
$owner = substr($line,0,$p-1);
if (!empty($this->REGISTRARS['owner']))
{
$this->handle_rwhois($this->REGISTRARS['owner'],$query);
@ -133,7 +121,7 @@ class ip_handler extends WhoisClient
$found = true;
}
}
if (!$found)
{
$this->Query['file'] = 'whois.ip.arin.php';
@ -148,7 +136,7 @@ class ip_handler extends WhoisClient
{
$srv_data = array_shift($this->more_data);
$this->Query['server'] = $srv_data['server'];
unset($this->Query['handler']);
unset($this->Query['handler']);
// Use original query
$rwdata = $this->GetRawData($srv_data['query']);
@ -157,7 +145,7 @@ class ip_handler extends WhoisClient
if (!empty($srv_data['handler']))
{
$this->Query['handler'] = $srv_data['handler'];
if (!empty($srv_data['file']))
$this->Query['file'] = $srv_data['file'];
else
@ -172,7 +160,7 @@ class ip_handler extends WhoisClient
// Normalize nameserver fields
if (isset($result['regrinfo']['network']['nserver']))
{
if (!is_array($result['regrinfo']['network']['nserver']))
@ -185,28 +173,28 @@ class ip_handler extends WhoisClient
return $result;
}
//-----------------------------------------------------------------
function parse_results($result,$rwdata,$query,$reset)
{
$rwres = $this->Process($rwdata);
if ($result['regyinfo']['type'] == 'AS' && !empty($rwres['regrinfo']['network']))
{
$rwres['regrinfo']['AS'] = $rwres['regrinfo']['network'];
unset($rwres['regrinfo']['network']);
}
if ($reset)
{
$result['regrinfo'] = $rwres['regrinfo'];
$result['rawdata'] = $rwdata;
}
else
{
{
$result['rawdata'][] = '';
foreach ($rwdata as $line)
$result['rawdata'][] = $line;
@ -230,7 +218,7 @@ class ip_handler extends WhoisClient
case 'KRNIC':
$this->handle_rwhois('whois.krnic.net',$query);
break;
case 'African Network Information Center':
$this->handle_rwhois('whois.afrinic.net',$query);
break;
@ -244,13 +232,13 @@ class ip_handler extends WhoisClient
}
//-----------------------------------------------------------------
function handle_rwhois($server,$query)
{
// Avoid querying the same server twice
$parts = parse_url($server);
if (empty($parts['host']))
$host = $parts['path'];
else
@ -262,7 +250,7 @@ class ip_handler extends WhoisClient
'query' => $query,
'server' => $server
);
if (isset($this->HANDLERS[$host]))
{
$q['handler'] = $this->HANDLERS[$host];
@ -281,9 +269,9 @@ class ip_handler extends WhoisClient
}
//-----------------------------------------------------------------
function join_result($result, $key, $newres)
{
{
if (isset($result['regrinfo'][$key]) && !array_key_exists(0,$result['regrinfo'][$key]))
{
$r = $result['regrinfo'][$key];
@ -294,4 +282,4 @@ class ip_handler extends WhoisClient
return $result;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* ripe.whois 1.0 David Saez 7/6/2002 */
require_once('whois.parser.php');
if (!defined('__RIPE_HANDLER__'))
@ -49,7 +47,7 @@ class ripe_handler
'admin-c' => 'admin',
'tech-c' => 'tech'
);
if (!empty($data_str['rawdata'])) $data_str = $data_str['rawdata'];
$r = generic_parser_a($data_str, $translate, $contacts, 'network');
@ -59,7 +57,7 @@ class ripe_handler
$r['owner']['organization'] = $r['network']['desc'];
unset($r['network']['desc']);
}
if (isset($r['admin']['abuse-mailbox']))
{
$r['abuse']['email'] = $r['admin']['abuse-mailbox'];
@ -71,18 +69,17 @@ class ripe_handler
$r['abuse']['email'] = $r['tech']['abuse-mailbox'];
unset($r['tech']['abuse-mailbox']);
}
// Clean mess
if (isset($r['tech']['tech-c'])) unset($r['tech']['tech-c']);
if (isset($r['tech']['admin-c'])) unset($r['tech']['admin-c']);
if (isset($r['admin']['tech-c'])) unset($r['admin']['tech-c']);
if (isset($r['admin']['admin-c'])) unset($r['admin']['admin-c']);
$r = array( 'regrinfo' => $r );
$r['regyinfo']['type'] ='ip';
$r['regyinfo']['registrar'] = 'RIPE Network Coordination Centre';
return $r;
}
}
?>
?>

View File

@ -1,5 +1,4 @@
<?php
/**
* PHPWhois IR Lookup Extension - http://github.com/sepehr/phpwhois-ir
*
@ -23,7 +22,6 @@
if (!defined('__IR_HANDLER__'))
define('__IR_HANDLER__', 1);
// Loadup the parser.
require_once('whois.parser.php');
@ -49,14 +47,14 @@ class ir_handler
'holder-c' => 'owner'
);
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
$r['regrinfo'] = $reg;
$r['regyinfo'] = array(
'referrer'=>'http://whois.nic.ir/',
'registrar' => 'NIC-IR'
);
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
$r['regrinfo'] = $reg;
return ($r);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,40 +25,31 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* isnic.whois 1.00 David Saez <david@ols.es> */
if (!defined("__IS_HANDLER__"))
define("__IS_HANDLER__", 1);
if (!defined('__IS_HANDLER__'))
define('__IS_HANDLER__', 1);
require_once('whois.parser.php');
class is_handler
{
function parse($data_str, $query)
{
$translate = array(
"fax-no" => "fax",
"e-mail" => "email",
"nic-hdl" => "handle",
"person" => "name"
'fax-no' => 'fax',
'e-mail' => 'email',
'nic-hdl' => 'handle',
'person' => 'name'
);
$contacts = array(
"owner-c" => "owner",
"admin-c" => "admin",
"tech-c" => "tech",
"billing-c" => "billing",
"zone-c" => "zone"
'owner-c' => 'owner',
'admin-c' => 'admin',
'tech-c' => 'tech',
'billing-c' => 'billing',
'zone-c' => 'zone'
);
$r["regyinfo"] = array(
"referrer" => "http://www.isnic.is",
"registrar" => "ISNIC"
);
$reg = generic_parser_a($data_str["rawdata"], $translate, $contacts, 'domain', 'mdy');
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'mdy');
if (isset($reg['domain']['descr']))
{
@ -67,8 +58,12 @@ class is_handler
unset($reg['domain']['descr']);
}
$r["regrinfo"] = $reg;
return ($r);
$r['regrinfo'] = $reg;
$r['regyinfo'] = array(
'referrer' => 'http://www.isnic.is',
'registrar' => 'ISNIC'
);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,7 +25,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/*
/*
BUG
- nserver -> array
- ContactID in address
@ -38,10 +38,8 @@ require_once('whois.parser.php');
class it_handler
{
function parse($data_str, $query)
{
$items = array(
'domain.name' => 'Domain:',
'domain.nserver' => 'Nameservers',
@ -63,7 +61,7 @@ class it_handler
);
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd',$extra);
if (isset($r['regrinfo']['registrar']))
{
$r['regrinfo']['domain']['registrar'] = $r['regrinfo']['registrar'];
@ -74,8 +72,7 @@ class it_handler
'registrar' => 'IT-Nic',
'referrer' => 'http://www.nic.it/'
);
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -55,16 +55,16 @@ class jp_handler extends WhoisClient
);
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
$r['regyinfo'] = array(
'referrer' => 'http://www.jprs.jp',
'registrar' => 'Japan Registry Services'
);
if (!$this->deep_whois) return $r;
$r['rawdata'] = $data_str['rawdata'];
$items = array(
'a. [JPNIC Handle]' => 'handle',
'c. [Last, First]' => 'name',
@ -74,9 +74,9 @@ class jp_handler extends WhoisClient
'p. [FAX]' => 'fax',
'[Last Update]' => 'changed'
);
$this->Query['server'] = 'jp.whois-servers.net';
if (!empty($r['regrinfo']['admin']['handle']))
{
$rwdata = $this->GetRawData('CONTACT '.$r['regrinfo']['admin']['handle'].'/e');
@ -91,7 +91,7 @@ class jp_handler extends WhoisClient
if (!empty($r['regrinfo']['admin']['handle']) &&
$r['regrinfo']['admin']['handle'] == $r['regrinfo']['tech']['handle'])
{
$r['regrinfo']['tech'] = $r['regrinfo']['admin'];
$r['regrinfo']['tech'] = $r['regrinfo']['admin'];
}
else
{

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,10 +32,8 @@ require_once('whois.parser.php');
class lt_handler
{
function parse($data_str, $query)
{
$translate = array(
'contact nic-hdl:' => 'handle',
'contact name:' => 'name'
@ -60,8 +58,7 @@ class lt_handler
'referrer' => 'http://www.domreg.lt',
'registrar' => 'DOMREG.LT'
);
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* lunic.whois 2.0 David Saez <david@ols.es> 2003/01/26 */
/* lunic.whois 1.0 J.M. Roth <jmroth@iip.lu> 2002/11/03 */
if (!defined('__LU_HANDLER__'))
define('__LU_HANDLER__', 1);
@ -35,7 +32,6 @@ require_once('whois.parser.php');
class lu_handler
{
function parse($data_str, $query)
{
$items = array(
@ -76,9 +72,7 @@ class lu_handler
'referrer' => 'http://www.dns.lu',
'registrar' => 'DNS-LU'
);
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,8 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* ly.whois 1.0 Franck Martin <franck@avonsys.com> For .ly domains */
require_once('whois.parser.php');
if (!defined('__LY_HANDLER__'))
@ -34,10 +32,8 @@ if (!defined('__LY_HANDLER__'))
class ly_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrative Contact:',
@ -57,14 +53,7 @@ class ly_handler
if (!empty($r['regrinfo']['domain']['name']))
{
$r['regrinfo'] = get_contacts($r['regrinfo'],$extra);
$r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.ly',
'registrar' => 'Libya ccTLD'
);
$r['regrinfo']['registered'] = 'yes';
}
else
@ -73,7 +62,11 @@ class ly_handler
$r['regrinfo']['registered'] = 'no';
}
return ($r);
$r['regyinfo'] = array(
'referrer' => 'http://www.nic.ly',
'registrar' => 'Libya ccTLD'
);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -32,16 +32,16 @@ class Whois extends WhoisClient
{
// Deep whois ?
var $deep_whois = true;
// Windows based ?
var $windows = false;
// Recursion allowed ?
var $gtld_recurse = true;
// Support for non-ICANN tld's
// Support for non-ICANN tld's
var $non_icann = false;
// Network Solutions registry server
var $NSI_REGISTRY = "whois.nsiregistry.net";
@ -57,7 +57,7 @@ class Whois extends WhoisClient
$this->windows = true;
else
$this->windows = false;
// Set version
$this->VERSION = sprintf("phpWhois v%s-%s", $this->CODE_VERSION, $this->DATA_VERSION);
}
@ -65,30 +65,30 @@ class Whois extends WhoisClient
/*
* Use special whois server
*/
function UseServer ($tld, $server)
{
$this->WHOIS_SPECIAL[$tld] = $server;
}
/*
* Lookup query
*/
function Lookup($query = '', $is_utf = true)
{
// start clean
$this->Query = array( 'status' => '' );
$query = trim($query);
$IDN = new idna_convert();
if ($is_utf)
$query = $IDN->encode($query);
else
$query = $IDN->encode(utf8_encode($query));
// If domain to query was not set
if (!isSet($query) || $query == '')
{
@ -107,7 +107,7 @@ class Whois extends WhoisClient
{
// IPv4 Prepare to do lookup via the 'ip' handler
$ip = @gethostbyname($query);
if (isset($this->WHOIS_SPECIAL['ip']))
{
$this->Query['server'] = $this->WHOIS_SPECIAL['ip'];
@ -184,7 +184,7 @@ class Whois extends WhoisClient
$special_tlds = array_merge($this->WHOIS_SPECIAL,$this->WHOIS_NON_ICANN);
else
$special_tlds = $this->WHOIS_SPECIAL;
foreach($tldtests as $tld)
{
// Test if we know in advance that no whois server is
@ -194,7 +194,7 @@ class Whois extends WhoisClient
if (isset($special_tlds[$tld]))
{
$val = $special_tlds[$tld];
if ($val == '') return $this->Unknown();
$domain = substr($query, 0, - strlen($tld) - 1);
@ -203,7 +203,7 @@ class Whois extends WhoisClient
break;
}
}
if ($server == '')
foreach($tldtests as $tld)
{
@ -212,7 +212,7 @@ class Whois extends WhoisClient
// Assumes a valid DNS response indicates a recognised tld (!?)
$cname = $tld.'.whois-servers.net';
if (gethostbyname($cname) == $cname) continue;
$server = $tld.'.whois-servers.net';
break;
@ -228,21 +228,21 @@ class Whois extends WhoisClient
foreach($tldtests as $htld)
{
// special handler exists for the tld ?
if (isSet($this->DATA[$htld]))
{
$handler = $this->DATA[$htld];
break;
}
// Regular handler exists for the tld ?
// Regular handler exists for the tld ?
if (($fp = @fopen('whois.'.$htld.'.php', 'r', 1)) and fclose($fp))
{
$handler = $htld;
break;
}
}
// If there is a handler set it
if ($handler != '')
@ -252,10 +252,10 @@ class Whois extends WhoisClient
}
// Special parameters ?
if (isset($this->WHOIS_PARAM[$server]))
$this->Query['server'] = $this->Query['server'].'?'.str_replace('$',$domain,$this->WHOIS_PARAM[$server]);
$result = $this->GetData('',$this->deep_whois);
$this->Checkdns($result);
return $result;
@ -273,10 +273,10 @@ class Whois extends WhoisClient
$this->Query['status'] = 'error';
$result['rawdata'][] = $this->Query['errstr'][] = $this->Query['query'].' domain is not supported';
$this->Checkdns($result);
$this->FixResult($result, $this->Query['query']);
$this->FixResult($result, $this->Query['query']);
return $result;
}
/* Get nameservers if missing */
function Checkdns(&$result)
@ -293,7 +293,7 @@ class Whois extends WhoisClient
/*
* Fix and/or add name server information
*/
function FixResult(&$result, $domain)
{
// Add usual fields
@ -310,7 +310,7 @@ class Whois extends WhoisClient
}
// Normalize nameserver fields
if (isset($result['regrinfo']['domain']['nserver']))
{
if (!is_array($result['regrinfo']['domain']['nserver']))

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* info.whois 2.0 David Seaz - updated to common object model */
/* info.whois 1.0 David Saez Padros <david@ols.es> */
if (!defined('__ME_HANDLER__'))
define('__ME_HANDLER__', 1);

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -35,13 +35,13 @@ class mobi_handler
function parse($data_str, $query)
{
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
if (!strncmp($data_str['rawdata'][0], 'WHOIS LIMIT EXCEEDED', 20))
$r['regrinfo']['registered'] = 'unknown';
$r['regyinfo']['referrer'] = 'http://www.mtld.mobi/';
$r['regyinfo']['registrar'] = 'Dot Mobi Registry';
return ($r);
return $r;
}
}
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,9 +25,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* mxnic.whois 1.0 Torfinn Nome <torfinn@nome.no> 2003-02-15 */
/* Based upon info.whois by David Saez Padros <david@ols.es> */
if (!defined('__MX_HANDLER__'))
define('__MX_HANDLER__', 1);
@ -35,14 +32,13 @@ require_once('whois.parser.php');
class mx_handler
{
function parse($data_str, $query)
{
$items = array(
'owner' => 'Registrant:',
'admin' => 'Administrative Contact:',
'tech' => 'Technical Contact:',
'billing' => 'Billing Contact:',
'billing' => 'Billing Contact:',
'domain.nserver' => 'Name Servers:',
'domain.created' => 'Created On:',
'domain.expires' => 'Expiration Date:',
@ -57,20 +53,18 @@ class mx_handler
);
$r['regrinfo'] = easy_parser($data_str['rawdata'],$items,'dmy',$extra);
$r['regyinfo'] = array(
'registrar' => 'NIC Mexico',
'referrer' => 'http://www.nic.mx/'
);
if (empty($r['regrinfo']['domain']['created']))
$r['regrinfo']['registered'] = 'no';
else
$r['regrinfo']['registered'] = 'yes';
return ($r);
return $r;
}
}
?>
?>

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:

View File

@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
Maintained by David Saez (david@ols.es)
Maintained by David Saez
For the most recent version of this package visit:
@ -25,10 +25,6 @@ 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('__NL_HANDLER__'))
define('__NL_HANDLER__', 1);
@ -36,10 +32,8 @@ require_once('whois.parser.php');
class nl_handler
{
function parse($data, $query)
{
$items = array(
'domain.name' => 'Domain name:',
'domain.status' => 'Status:',
@ -50,20 +44,20 @@ class nl_handler
'admin' => 'Administrative contact:',
'tech' => 'Technical contact(s):'
);
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
$r['regyinfo']['referrer'] = 'http://www.domain-registry.nl';
$r['regyinfo']['registrar'] = 'Stichting Internet Domeinregistratie NL';
if (!isset($r['regrinfo']['domain']['status']))
{
$r['regrinfo']['registered'] = 'no';
return $r;
}
if (isset($r['regrinfo']['tech']))
$r['regrinfo']['tech'] = $this->get_contact($r['regrinfo']['tech']);
if (isset($r['regrinfo']['zone']))
$r['regrinfo']['zone'] = $this->get_contact($r['regrinfo']['zone']);
@ -72,23 +66,23 @@ class nl_handler
if (isset($r['regrinfo']['owner']))
$r['regrinfo']['owner'] = $this->get_contact($r['regrinfo']['owner']);
$r['regrinfo']['registered'] = 'yes';
format_dates($r, 'dmy');
return ($r);
format_dates($r,'dmy');
return $r;
}
function get_contact($data)
{
$r = get_contact($data);
if (isset($r['name']) && preg_match('/^[A-Z0-9]+-[A-Z0-9]+$/',$r['name']))
{
$r['handle'] = $r['name'];
$r['name'] = array_shift ($r['address']);
}
return $r;
}
}
?>
?>

Some files were not shown because too many files have changed in this diff Show More