cosmetic fixes to many handlers (removed unuseful spaces,
removed change history, regyinfo position unification,...)
This commit is contained in:
parent
f9483ceff9
commit
1010e75eec
|
@ -5,6 +5,9 @@
|
||||||
- fixed bug #3333558
|
- fixed bug #3333558
|
||||||
- .uk handler improvement (partial patch #3314417)
|
- .uk handler improvement (partial patch #3314417)
|
||||||
- added support for .gt domains (request #3353926)
|
- added support for .gt domains (request #3353926)
|
||||||
|
- cosmetic fixes to many handlers (removed unuseful
|
||||||
|
spaces, removed change history, regyinfo position
|
||||||
|
unification,...)
|
||||||
|
|
||||||
2011/06/26
|
2011/06/26
|
||||||
- added handler for gandi (request #3155752)
|
- added handler for gandi (request #3155752)
|
||||||
|
|
|
@ -5,7 +5,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
|
34
example.php
34
example.php
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -36,30 +36,30 @@ $resout = extract_block($out, 'results');
|
||||||
if (isSet($_GET['query']))
|
if (isSet($_GET['query']))
|
||||||
{
|
{
|
||||||
$query = $_GET['query'];
|
$query = $_GET['query'];
|
||||||
|
|
||||||
if (!empty($_GET['output']))
|
if (!empty($_GET['output']))
|
||||||
$output = $_GET['output'];
|
$output = $_GET['output'];
|
||||||
else
|
else
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
||||||
include_once('whois.main.php');
|
include_once('whois.main.php');
|
||||||
include_once('whois.utils.php');
|
include_once('whois.utils.php');
|
||||||
|
|
||||||
$whois = new Whois();
|
$whois = new Whois();
|
||||||
|
|
||||||
// Set to true if you want to allow proxy requests
|
// Set to true if you want to allow proxy requests
|
||||||
$allowproxy = false;
|
$allowproxy = false;
|
||||||
|
|
||||||
// uncomment the following line to get faster but less acurate results
|
// uncomment the following line to get faster but less acurate results
|
||||||
// $whois->deep_whois = false;
|
// $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('uk','whois.nic.uk:1043?{hname} {ip} {query}');
|
||||||
//$whois->UseServer('au','whois-check.ausregistry.net.au');
|
//$whois->UseServer('au','whois-check.ausregistry.net.au');
|
||||||
|
|
||||||
// uncomment the following line to add support for non ICANN tld's
|
// uncomment the following line to add support for non ICANN tld's
|
||||||
// $whois->non_icann = true;
|
// $whois->non_icann = true;
|
||||||
|
|
||||||
$result = $whois->Lookup($query);
|
$result = $whois->Lookup($query);
|
||||||
$resout = str_replace('{query}', $query, $resout);
|
$resout = str_replace('{query}', $query, $resout);
|
||||||
$winfo = '';
|
$winfo = '';
|
||||||
|
@ -77,8 +77,8 @@ if (isSet($_GET['query']))
|
||||||
$winfo = $utils->showObject($result);
|
$winfo = $utils->showObject($result);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'nice':
|
case 'nice':
|
||||||
if (!empty($result['rawdata']))
|
if (!empty($result['rawdata']))
|
||||||
{
|
{
|
||||||
$utils = new utils;
|
$utils = new utils;
|
||||||
|
@ -90,13 +90,13 @@ if (isSet($_GET['query']))
|
||||||
$winfo = implode($whois->Query['errstr'],"\n<br></br>");
|
$winfo = implode($whois->Query['errstr'],"\n<br></br>");
|
||||||
else
|
else
|
||||||
$winfo = 'Unexpected error';
|
$winfo = 'Unexpected error';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'proxy':
|
case 'proxy':
|
||||||
if ($allowproxy)
|
if ($allowproxy)
|
||||||
exit(serialize($result));
|
exit(serialize($result));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if(!empty($result['rawdata']))
|
if(!empty($result['rawdata']))
|
||||||
{
|
{
|
||||||
|
@ -105,16 +105,16 @@ if (isSet($_GET['query']))
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$winfo = implode($whois->Query['errstr'],"\n<br></br>");
|
$winfo = implode($whois->Query['errstr'],"\n<br></br>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//$winfo = utf8_encode($winfo);
|
//$winfo = utf8_encode($winfo);
|
||||||
|
|
||||||
$resout = str_replace('{result}', $winfo, $resout);
|
$resout = str_replace('{result}', $winfo, $resout);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$resout = '';
|
$resout = '';
|
||||||
|
|
||||||
echo str_replace('{results}', $resout, $out);
|
echo str_replace('{results}', $resout, $out);
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__AE_HANDLER__'))
|
||||||
define('__AE_HANDLER__', 1);
|
define('__AE_HANDLER__', 1);
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -34,12 +34,11 @@ class aero_handler
|
||||||
{
|
{
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, 'ymd');
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'http://www.nic.aero',
|
'referrer' => 'http://www.nic.aero',
|
||||||
'registrar' => 'Societe Internationale de Telecommunications Aeronautiques SC'
|
'registrar' => 'Societe Internationale de Telecommunications Aeronautiques SC'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, 'ymd');
|
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__AG_HANDLER__'))
|
||||||
define('__AG_HANDLER__', 1);
|
define('__AG_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -37,12 +34,11 @@ class ag_handler
|
||||||
{
|
{
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'http://www.nic.ag',
|
'referrer' => 'http://www.nic.ag',
|
||||||
'registrar' => 'Nic AG'
|
'registrar' => 'Nic AG'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
|
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class asia_handler
|
||||||
'referrer'=>'http://www.dotasia.org/',
|
'referrer'=>'http://www.dotasia.org/',
|
||||||
'registrar' => 'DotAsia'
|
'registrar' => 'DotAsia'
|
||||||
);
|
);
|
||||||
return($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__AT_HANDLER__'))
|
||||||
define('__AT_HANDLER__', 1);
|
define('__AT_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -37,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class at_handler
|
class at_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$translate = array(
|
$translate = array(
|
||||||
|
@ -60,11 +54,6 @@ class at_handler
|
||||||
'zone-c' => 'zone'
|
'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');
|
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
|
||||||
|
|
||||||
if (isset($reg['domain']['remarks']))
|
if (isset($reg['domain']['remarks']))
|
||||||
|
@ -103,7 +92,11 @@ class at_handler
|
||||||
}
|
}
|
||||||
|
|
||||||
$r['regrinfo'] = $reg;
|
$r['regrinfo'] = $reg;
|
||||||
return ($r);
|
$r['regyinfo'] = array(
|
||||||
|
'referrer' => 'http://www.nic.at',
|
||||||
|
'registrar' => 'NIC-AT'
|
||||||
|
);
|
||||||
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__AU_HANDLER__'))
|
||||||
define('__AU_HANDLER__', 1);
|
define('__AU_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -37,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class au_handler
|
class au_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -57,24 +51,11 @@ class au_handler
|
||||||
'Name Server:' => 'domain.nserver.'
|
'Name Server:' => 'domain.nserver.'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'http://www.aunic.net',
|
'referrer' => 'http://www.aunic.net',
|
||||||
'registrar' => 'AU-NIC'
|
'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;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__BE_HANDLER__'))
|
if (!defined('__BE_HANDLER__'))
|
||||||
|
@ -35,10 +32,8 @@ if (!defined('__BE_HANDLER__'))
|
||||||
|
|
||||||
class be_handler
|
class be_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data, $query)
|
function parse($data, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'domain.name' => 'Domain:',
|
'domain.name' => 'Domain:',
|
||||||
'domain.status' => 'Status:',
|
'domain.status' => 'Status:',
|
||||||
|
@ -49,7 +44,7 @@ class be_handler
|
||||||
'tech' => 'Agent Technical Contacts:',
|
'tech' => 'Agent Technical Contacts:',
|
||||||
'agent' => 'Agent:'
|
'agent' => 'Agent:'
|
||||||
);
|
);
|
||||||
|
|
||||||
$trans = array(
|
$trans = array(
|
||||||
'company name2:' => ''
|
'company name2:' => ''
|
||||||
);
|
);
|
||||||
|
@ -60,7 +55,7 @@ class be_handler
|
||||||
{
|
{
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
$r['regrinfo'] = get_contacts($r['regrinfo'],$trans);
|
$r['regrinfo'] = get_contacts($r['regrinfo'],$trans);
|
||||||
|
|
||||||
if (isset($r['regrinfo']['agent']))
|
if (isset($r['regrinfo']['agent']))
|
||||||
{
|
{
|
||||||
$sponsor = get_contact($r['regrinfo']['agent'],$trans);
|
$sponsor = get_contact($r['regrinfo']['agent'],$trans);
|
||||||
|
@ -75,9 +70,7 @@ class be_handler
|
||||||
|
|
||||||
$r['regyinfo']['referrer'] = 'http://www.domain-registry.nl';
|
$r['regyinfo']['referrer'] = 'http://www.domain-registry.nl';
|
||||||
$r['regyinfo']['registrar'] = 'DNS Belgium';
|
$r['regyinfo']['registrar'] = 'DNS Belgium';
|
||||||
$r['rawdata'] = $data['rawdata'];
|
return $r;
|
||||||
|
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__BIZ_HANDLER__'))
|
||||||
define('__BIZ_HANDLER__', 1);
|
define('__BIZ_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -38,13 +35,11 @@ class biz_handler
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, '-md--y');
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], false, '-md--y');
|
||||||
|
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'http://www.neulevel.biz',
|
'referrer' => 'http://www.neulevel.biz',
|
||||||
'registrar' => 'NEULEVEL'
|
'registrar' => 'NEULEVEL'
|
||||||
);
|
);
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__BR_HANDLER__'))
|
if (!defined('__BR_HANDLER__'))
|
||||||
|
@ -57,11 +54,6 @@ class br_handler
|
||||||
|
|
||||||
$r = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
|
$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']))
|
if (in_array('Permission denied.', $r['disclaimer']))
|
||||||
{
|
{
|
||||||
$r['registered'] = 'unknown';
|
$r['registered'] = 'unknown';
|
||||||
|
@ -76,14 +68,17 @@ class br_handler
|
||||||
$r['owner']['organization'] = $r['domain']['owner'];
|
$r['owner']['organization'] = $r['domain']['owner'];
|
||||||
unset($r['domain']['owner']);
|
unset($r['domain']['owner']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($r['domain']['responsible'])) unset($r['domain']['responsible']);
|
if (isset($r['domain']['responsible'])) unset($r['domain']['responsible']);
|
||||||
if (isset($r['domain']['address'])) unset($r['domain']['address']);
|
if (isset($r['domain']['address'])) unset($r['domain']['address']);
|
||||||
if (isset($r['domain']['phone'])) unset($r['domain']['phone']);
|
if (isset($r['domain']['phone'])) unset($r['domain']['phone']);
|
||||||
|
|
||||||
$a['regrinfo'] = $r;
|
$a['regrinfo'] = $r;
|
||||||
|
$a['regyinfo'] = array(
|
||||||
return ($a);
|
'registrar' => 'BR-NIC',
|
||||||
|
'referrer' => 'http://www.nic.br'
|
||||||
|
);
|
||||||
|
return $a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__CA_HANDLER__'))
|
||||||
define('__CA_HANDLER__', 1);
|
define('__CA_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -36,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class ca_handler
|
class ca_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
|
@ -66,18 +61,16 @@ class ca_handler
|
||||||
$r['regrinfo']['domain']['sponsor'] = trim($reg);
|
$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')
|
if (empty($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == 'available')
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
else
|
else
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
|
|
||||||
return ($r);
|
$r['regyinfo'] = array(
|
||||||
|
'registrar' => 'CIRA',
|
||||||
|
'referrer' => 'http://www.cira.ca/'
|
||||||
|
);
|
||||||
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* cat.whois 1.0 David Saez */
|
|
||||||
|
|
||||||
if (!defined('__CAT_HANDLER__'))
|
if (!defined('__CAT_HANDLER__'))
|
||||||
define('__CAT_HANDLER__', 1);
|
define('__CAT_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -37,13 +35,13 @@ class cat_handler
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
|
||||||
|
|
||||||
if (!isset($r['regrinfo']['domain']['name']))
|
if (!isset($r['regrinfo']['domain']['name']))
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
|
|
||||||
$r['regyinfo']['referrer'] = 'http://www.domini.cat/';
|
$r['regyinfo']['referrer'] = 'http://www.domini.cat/';
|
||||||
$r['regyinfo']['registrar'] = 'Domini punt CAT';
|
$r['regyinfo']['registrar'] = 'Domini punt CAT';
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__CH_HANDLER__'))
|
if (!defined('__CH_HANDLER__'))
|
||||||
|
@ -62,20 +55,15 @@ class ch_handler
|
||||||
if (!empty($r['regrinfo']['domain']['name']))
|
if (!empty($r['regrinfo']['domain']['name']))
|
||||||
{
|
{
|
||||||
$r['regrinfo'] = get_contacts($r['regrinfo'],$trans);
|
$r['regrinfo'] = get_contacts($r['regrinfo'],$trans);
|
||||||
|
|
||||||
$r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
|
$r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
|
||||||
|
|
||||||
if (isset($r['regrinfo']['domain']['changed'][0]))
|
if (isset($r['regrinfo']['domain']['changed'][0]))
|
||||||
$r['regrinfo']['domain']['changed'] = get_date($r['regrinfo']['domain']['changed'][0], 'dmy');
|
$r['regrinfo']['domain']['changed'] = get_date($r['regrinfo']['domain']['changed'][0], 'dmy');
|
||||||
|
|
||||||
if (isset($r['regrinfo']['domain']['created'][0]))
|
if (isset($r['regrinfo']['domain']['created'][0]))
|
||||||
$r['regrinfo']['domain']['created'] = get_date($r['regrinfo']['domain']['created'][0], 'dmy');
|
$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';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -84,8 +72,11 @@ class ch_handler
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($r);
|
$r['regyinfo'] = array(
|
||||||
|
'referrer' => 'http://www.nic.ch',
|
||||||
|
'registrar' => 'SWITCH Domain Name Registration'
|
||||||
|
);
|
||||||
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__CN_HANDLER__'))
|
||||||
define('__CN_HANDLER__', 1);
|
define('__CN_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -35,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class cn_handler
|
class cn_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
|
@ -89,8 +85,7 @@ class cn_handler
|
||||||
'referrer' => 'http://www.cnnic.net.cn',
|
'referrer' => 'http://www.cnnic.net.cn',
|
||||||
'registrar' => 'China NIC'
|
'registrar' => 'China NIC'
|
||||||
);
|
);
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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['regrinfo'] = generic_parser_b($data_str['rawdata'], false, '-md--y');
|
||||||
$r['regyinfo']['referrer'] = 'http://www.cointernet.com.co/';
|
$r['regyinfo']['referrer'] = 'http://www.cointernet.com.co/';
|
||||||
$r['regyinfo']['registrar'] = '.CO Internet, S.A.S.';
|
$r['regyinfo']['registrar'] = '.CO Internet, S.A.S.';
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class co_Za_handler
|
class co_Za_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
|
@ -65,11 +64,10 @@ class co_Za_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
|
||||||
|
|
||||||
$r['regyinfo']['referrer'] = 'http://www.co.za';
|
$r['regyinfo']['referrer'] = 'http://www.co.za';
|
||||||
$r['regyinfo']['registrar'] = 'UniForum Association';
|
$r['regyinfo']['registrar'] = 'UniForum Association';
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class coop_handler
|
class coop_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -66,26 +65,26 @@ class coop_handler
|
||||||
'Fax:' => 'fax',
|
'Fax:' => 'fax',
|
||||||
'Email:' => 'email'
|
'Email:' => 'email'
|
||||||
);
|
);
|
||||||
|
|
||||||
$blocks = get_blocks($data_str['rawdata'],$items);
|
$blocks = get_blocks($data_str['rawdata'],$items);
|
||||||
|
|
||||||
$r=array();
|
$r=array();
|
||||||
|
|
||||||
if (isset($blocks['domain']))
|
if (isset($blocks['domain']))
|
||||||
{
|
{
|
||||||
$r['regrinfo']['domain'] = format_dates($blocks['domain'],'dmy');
|
$r['regrinfo']['domain'] = format_dates($blocks['domain'],'dmy');
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
|
|
||||||
if (isset($blocks['owner']))
|
if (isset($blocks['owner']))
|
||||||
{
|
{
|
||||||
$r['regrinfo']['owner'] = generic_parser_b($blocks['owner'],$translate,'dmy',false);
|
$r['regrinfo']['owner'] = generic_parser_b($blocks['owner'],$translate,'dmy',false);
|
||||||
|
|
||||||
if (isset($blocks['tech']))
|
if (isset($blocks['tech']))
|
||||||
$r['regrinfo']['tech'] = generic_parser_b($blocks['tech'],$translate,'dmy',false);
|
$r['regrinfo']['tech'] = generic_parser_b($blocks['tech'],$translate,'dmy',false);
|
||||||
|
|
||||||
if (isset($blocks['admin']))
|
if (isset($blocks['admin']))
|
||||||
$r['regrinfo']['admin'] = generic_parser_b($blocks['admin'],$translate,'dmy',false);
|
$r['regrinfo']['admin'] = generic_parser_b($blocks['admin'],$translate,'dmy',false);
|
||||||
|
|
||||||
if (isset($blocks['billing']))
|
if (isset($blocks['billing']))
|
||||||
$r['regrinfo']['billing'] = generic_parser_b($blocks['billing'],$translate,'dmy',false);
|
$r['regrinfo']['billing'] = generic_parser_b($blocks['billing'],$translate,'dmy',false);
|
||||||
}
|
}
|
||||||
|
@ -96,7 +95,11 @@ class coop_handler
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
|
|
||||||
|
$r['regyinfo'] = array(
|
||||||
|
'referrer' => 'http://www.nic.coop',
|
||||||
|
'registrar' => '.coop registry'
|
||||||
|
);
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class cz_handler
|
class cz_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$translate = array(
|
$translate = array(
|
||||||
'expire' => 'expires',
|
'expire' => 'expires',
|
||||||
'registered' => 'created',
|
'registered' => 'created',
|
||||||
|
@ -72,4 +70,4 @@ class cz_handler
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__DE_HANDLER__'))
|
||||||
define('__DE_HANDLER__', 1);
|
define('__DE_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -45,7 +34,6 @@ class de_handler
|
||||||
{
|
{
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'domain.name' => 'Domain:',
|
'domain.name' => 'Domain:',
|
||||||
'domain.nserver.' =>'Nserver:',
|
'domain.nserver.' =>'Nserver:',
|
||||||
|
@ -84,8 +72,7 @@ class de_handler
|
||||||
$r['regrinfo']['domain']['changed'] = substr($r['regrinfo']['domain']['changed'], 0, 10);
|
$r['regrinfo']['domain']['changed'] = substr($r['regrinfo']['domain']['changed'], 0, 10);
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class edu_handler
|
class edu_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
|
@ -44,21 +43,20 @@ class edu_handler
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative Contact:',
|
'admin' => 'Administrative Contact:',
|
||||||
'tech' => 'Technical Contact:',
|
'tech' => 'Technical Contact:',
|
||||||
'billing' => 'Billing Contact:'
|
'billing' => 'Billing Contact:'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'dmy');
|
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'dmy');
|
||||||
|
|
||||||
if (isset($b['tech']))
|
if (isset($b['tech']))
|
||||||
{
|
{
|
||||||
if ($r['regrinfo']['tech']['name'] == 'Same as above')
|
if ($r['regrinfo']['tech']['name'] == 'Same as above')
|
||||||
$r['regrinfo']['tech'] = $r['regrinfo']['admin'];
|
$r['regrinfo']['tech'] = $r['regrinfo']['admin'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$r['regyinfo']['referrer'] = 'http://whois.educause.net';
|
$r['regyinfo']['referrer'] = 'http://whois.educause.net';
|
||||||
$r['regyinfo']['registrar'] = 'EDUCASE';
|
$r['regyinfo']['registrar'] = 'EDUCASE';
|
||||||
return ($r);
|
return ($r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ if (!defined('__EU_HANDLER__'))
|
||||||
|
|
||||||
class eu_handler
|
class eu_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data, $query)
|
function parse($data, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -46,14 +45,14 @@ class eu_handler
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'' => 'Please visit'
|
'' => 'Please visit'
|
||||||
);
|
);
|
||||||
|
|
||||||
$extra = array(
|
$extra = array(
|
||||||
'organisation:' => 'organization',
|
'organisation:' => 'organization',
|
||||||
'website:' => 'url'
|
'website:' => 'url'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
|
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
|
||||||
|
|
||||||
if (!empty($r['regrinfo']['domain']['status']))
|
if (!empty($r['regrinfo']['domain']['status']))
|
||||||
switch ($r['regrinfo']['domain']['status'])
|
switch ($r['regrinfo']['domain']['status'])
|
||||||
{
|
{
|
||||||
|
@ -61,11 +60,11 @@ class eu_handler
|
||||||
case 'AVAILABLE':
|
case 'AVAILABLE':
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'APPLICATION PENDING':
|
case 'APPLICATION PENDING':
|
||||||
$r['regrinfo']['registered'] = 'pending';
|
$r['regrinfo']['registered'] = 'pending';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$r['regrinfo']['registered'] = 'unknown';
|
$r['regrinfo']['registered'] = 'unknown';
|
||||||
}
|
}
|
||||||
|
@ -77,12 +76,10 @@ class eu_handler
|
||||||
|
|
||||||
if (isset($r['regrinfo']['domain']['registrar']))
|
if (isset($r['regrinfo']['domain']['registrar']))
|
||||||
$r['regrinfo']['domain']['registrar'] = get_contact($r['regrinfo']['domain']['registrar'],$extra);
|
$r['regrinfo']['domain']['registrar'] = get_contact($r['regrinfo']['domain']['registrar'],$extra);
|
||||||
|
|
||||||
$r['regyinfo']['referrer'] = 'http://www.eurid.eu';
|
$r['regyinfo']['referrer'] = 'http://www.eurid.eu';
|
||||||
$r['regyinfo']['registrar'] = 'EURID';
|
$r['regyinfo']['registrar'] = 'EURID';
|
||||||
$r['rawdata'] = $data['rawdata'];
|
return $r;
|
||||||
|
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__FI_HANDLER__'))
|
||||||
define('__FI_HANDLER__', 1);
|
define('__FI_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -35,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class fi_handler
|
class fi_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'domain:' => 'domain.name',
|
'domain:' => 'domain.name',
|
||||||
'created:' => 'domain.created',
|
'created:' => 'domain.created',
|
||||||
|
@ -51,15 +46,12 @@ class fi_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items);
|
||||||
|
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'https://domain.ficora.fi/',
|
'referrer' => 'https://domain.ficora.fi/',
|
||||||
'registrar' => 'Finnish Communications Regulatory Authority'
|
'registrar' => 'Finnish Communications Regulatory Authority'
|
||||||
);
|
);
|
||||||
|
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__FJ_HANDLER__'))
|
if (!defined('__FJ_HANDLER__'))
|
||||||
|
@ -34,10 +32,8 @@ if (!defined('__FJ_HANDLER__'))
|
||||||
|
|
||||||
class fj_handler
|
class fj_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'domain.status' => 'Status:',
|
'domain.status' => 'Status:',
|
||||||
|
@ -50,7 +46,7 @@ class fj_handler
|
||||||
if (!empty($r['regrinfo']['domain']['status']))
|
if (!empty($r['regrinfo']['domain']['status']))
|
||||||
{
|
{
|
||||||
$r['regrinfo'] = get_contacts($r['regrinfo']);
|
$r['regrinfo'] = get_contacts($r['regrinfo']);
|
||||||
|
|
||||||
date_default_timezone_set("Pacific/Fiji");
|
date_default_timezone_set("Pacific/Fiji");
|
||||||
|
|
||||||
if (isset($r['regrinfo']['domain']['expires']))
|
if (isset($r['regrinfo']['domain']['expires']))
|
||||||
|
@ -68,6 +64,4 @@ class fj_handler
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__FM_HANDLER__'))
|
||||||
define('__FM_HANDLER__', 1);
|
define('__FM_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class fm_handler
|
class fm_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data, $query)
|
function parse($data, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant',
|
'owner' => 'Registrant',
|
||||||
'admin' => 'Admin',
|
'admin' => 'Admin',
|
||||||
|
@ -52,7 +48,7 @@ class fm_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
|
$r['regrinfo'] = get_blocks($data['rawdata'], $items);
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'phone number:' => 'phone',
|
'phone number:' => 'phone',
|
||||||
'email address:' => 'email',
|
'email address:' => 'email',
|
||||||
|
@ -63,7 +59,7 @@ class fm_handler
|
||||||
if (!empty($r['regrinfo']['domain']['created']))
|
if (!empty($r['regrinfo']['domain']['created']))
|
||||||
{
|
{
|
||||||
$r['regrinfo'] = get_contacts($r['regrinfo'],$items);
|
$r['regrinfo'] = get_contacts($r['regrinfo'],$items);
|
||||||
|
|
||||||
if (count($r['regrinfo']['billing']['address']) > 4)
|
if (count($r['regrinfo']['billing']['address']) > 4)
|
||||||
$r['regrinfo']['billing']['address'] = array_slice($r['regrinfo']['billing']['address'],0,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']['referrer'] = 'http://www.dot.dm';
|
||||||
$r['regyinfo']['registrar'] = 'dotFM';
|
$r['regyinfo']['registrar'] = 'dotFM';
|
||||||
$r['rawdata'] = $data['rawdata'];
|
return $r;
|
||||||
|
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class fr_handler
|
class fr_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$translate = array(
|
$translate = array(
|
||||||
'fax-no' => 'fax',
|
'fax-no' => 'fax',
|
||||||
'e-mail' => 'email',
|
'e-mail' => 'email',
|
||||||
|
@ -68,13 +66,13 @@ class fr_handler
|
||||||
$reg['domain'] = array_merge($reg['domain'],$reg['nserver']);
|
$reg['domain'] = array_merge($reg['domain'],$reg['nserver']);
|
||||||
unset($reg['nserver']);
|
unset($reg['nserver']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$r['regrinfo'] = $reg;
|
$r['regrinfo'] = $reg;
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'http://www.nic.fr',
|
'referrer' => 'http://www.nic.fr',
|
||||||
'registrar' => 'AFNIC'
|
'registrar' => 'AFNIC'
|
||||||
);
|
);
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__AFTERNIC_HANDLER__'))
|
||||||
define('__AFTERNIC_HANDLER__', 1);
|
define('__AFTERNIC_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -50,5 +48,4 @@ class afternic_handler
|
||||||
return easy_parser($data_str, $items, 'dmy', false, false, true);
|
return easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class alldomains_handler
|
class alldomains_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative',
|
'admin' => 'Administrative',
|
||||||
|
@ -44,8 +42,8 @@ class alldomains_handler
|
||||||
'domain.sponsor' => 'Registrar:',
|
'domain.sponsor' => 'Registrar:',
|
||||||
'domain.nserver.' => 'Domain servers in listed order:'
|
'domain.nserver.' => 'Domain servers in listed order:'
|
||||||
);
|
);
|
||||||
|
|
||||||
return easy_parser($data_str, $items, 'ymd');
|
return easy_parser($data_str, $items, 'ymd');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__ASCIO_HANDLER__'))
|
||||||
define('__ASCIO_HANDLER__', 1);
|
define('__ASCIO_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class ascio_handler
|
class ascio_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative ',
|
'admin' => 'Administrative ',
|
||||||
|
@ -52,4 +48,4 @@ class ascio_handler
|
||||||
return easy_parser($data_str, $items, 'ymd',false,false,true);
|
return easy_parser($data_str, $items, 'ymd',false,false,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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);
|
return easy_parser($data_str, $items, 'ymd',false,false,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__CORPORATEDOMAINS_HANDLER__'))
|
||||||
define('__CORPORATEDOMAINS_HANDLER__', 1);
|
define('__CORPORATEDOMAINS_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -52,5 +50,4 @@ class corporatedomains_handler
|
||||||
return easy_parser($data_str, $items, 'dmy', false, false, true);
|
return easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__DIRECTNIC_HANDLER__'))
|
||||||
define('__DIRECTNIC_HANDLER__', 1);
|
define('__DIRECTNIC_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -52,4 +50,4 @@ class directnic_handler
|
||||||
return easy_parser($data_str, $items, 'mdy',false,false,true);
|
return easy_parser($data_str, $items, 'mdy',false,false,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__DOMAINDISCOVER_HANDLER__'))
|
||||||
define('__DOMAINDISCOVER_HANDLER__', 1);
|
define('__DOMAINDISCOVER_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -50,5 +48,4 @@ class domaindiscover_handler
|
||||||
return easy_parser($data_str, $items, 'dmy', false, false, true);
|
return easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__DOMAINPEOPLE_HANDLER__'))
|
||||||
define('__DOMAINPEOPLE_HANDLER__', 1);
|
define('__DOMAINPEOPLE_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -52,10 +50,10 @@ class domainpeople_handler
|
||||||
'domain.status' => 'Status:'
|
'domain.status' => 'Status:'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__DOTSTER_HANDLER__'))
|
||||||
define('__DOTSTER_HANDLER__', 1);
|
define('__DOTSTER_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -54,4 +50,4 @@ class dotster_handler
|
||||||
return easy_parser($data_str, $items, 'dmy');
|
return easy_parser($data_str, $items, 'dmy');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__DREAMHOST_HANDLER__'))
|
||||||
define('__DREAMHOST_HANDLER__', 1);
|
define('__DREAMHOST_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class dreamhost_handler
|
class dreamhost_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant Contact:',
|
'owner' => 'Registrant Contact:',
|
||||||
'admin' => 'Administrative Contact:',
|
'admin' => 'Administrative Contact:',
|
||||||
|
@ -48,11 +44,11 @@ class dreamhost_handler
|
||||||
'domain.created' => 'Record created on',
|
'domain.created' => 'Record created on',
|
||||||
'domain.expires' => 'Record expires on'
|
'domain.expires' => 'Record expires on'
|
||||||
);
|
);
|
||||||
//print_r($data_str);
|
|
||||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__ENOM_HANDLER__'))
|
||||||
define('__ENOM_HANDLER__', 1);
|
define('__ENOM_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -36,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class enom_handler
|
class enom_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner#0' => 'Registrant Contact',
|
'owner#0' => 'Registrant Contact',
|
||||||
'owner#1' => 'REGISTRANT Contact:',
|
'owner#1' => 'REGISTRANT Contact:',
|
||||||
|
@ -65,5 +59,4 @@ class enom_handler
|
||||||
return easy_parser($data_str, $items, 'dmy', false, false, true);
|
return easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__FABULOUS_HANDLER__'))
|
||||||
define('__FABULOUS_HANDLER__', 1);
|
define('__FABULOUS_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -46,17 +44,11 @@ class fabulous_handler
|
||||||
|
|
||||||
$r = easy_parser($data_str, $items, 'mdy',false,false,true);
|
$r = easy_parser($data_str, $items, 'mdy',false,false,true);
|
||||||
|
|
||||||
if (!isset($r['tech']))
|
if (!isset($r['tech'])) $r['tech'] = $r['billing'];
|
||||||
{
|
|
||||||
$r['tech'] = $r['billing'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($r['admin']))
|
if (!isset($r['admin'])) $r['admin'] = $r['tech'];
|
||||||
{
|
|
||||||
$r['admin'] = $r['tech'];
|
return $r;
|
||||||
}
|
|
||||||
|
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__FASTDOMAIN_HANDLER__'))
|
||||||
define('__FASTDOMAIN_HANDLER__', 1);
|
define('__FASTDOMAIN_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class fastdomain_handler
|
class fastdomain_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant Info:',
|
'owner' => 'Registrant Info:',
|
||||||
'admin' => 'Administrative Info:',
|
'admin' => 'Administrative Info:',
|
||||||
|
@ -62,9 +58,9 @@ class fastdomain_handler
|
||||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||||
|
|
||||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||||
|
|
||||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||||
|
|
||||||
if (isset($r['domain']['nserver']))
|
if (isset($r['domain']['nserver']))
|
||||||
{
|
{
|
||||||
reset($r['domain']['nserver']);
|
reset($r['domain']['nserver']);
|
||||||
|
@ -76,7 +72,7 @@ class fastdomain_handler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -53,4 +53,4 @@ class gandi_handler
|
||||||
return easy_parser($data_str, $items, 'dmy', $trans);
|
return easy_parser($data_str, $items, 'dmy', $trans);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__GODADDY_HANDLER__'))
|
||||||
define('__GODADDY_HANDLER__', 1);
|
define('__GODADDY_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class godaddy_handler
|
class godaddy_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative Contact',
|
'admin' => 'Administrative Contact',
|
||||||
|
@ -54,8 +50,7 @@ class godaddy_handler
|
||||||
$r['owner'] = get_contact($r['owner']);
|
$r['owner'] = get_contact($r['owner']);
|
||||||
$r['admin'] = get_contact($r['admin'],false,true);
|
$r['admin'] = get_contact($r['admin'],false,true);
|
||||||
$r['tech'] = get_contact($r['tech'],false,true);
|
$r['tech'] = get_contact($r['tech'],false,true);
|
||||||
$r = format_dates($r, 'dmy');
|
return format_dates($r, 'dmy');
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ class iana_handler
|
||||||
'domain.name' => 'domain:',
|
'domain.name' => 'domain:',
|
||||||
'disclaimer.' => '% '
|
'disclaimer.' => '% '
|
||||||
);
|
);
|
||||||
|
|
||||||
return easy_parser($data_str,$items,'Ymd',false,false,false,'owner');
|
return easy_parser($data_str,$items,'Ymd',false,false,false,'owner');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__INTERDOMAIN_HANDLER__'))
|
||||||
define('__INTERDOMAIN_HANDLER__', 1);
|
define('__INTERDOMAIN_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -80,4 +77,4 @@ class interdomain_handler
|
||||||
return generic_parser_b($data_str, $items, 'dmy');
|
return generic_parser_b($data_str, $items, 'dmy');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__ITSYOURDOMAIN_HANDLER__'))
|
||||||
define('__ITSYOURDOMAIN_HANDLER__', 1);
|
define('__ITSYOURDOMAIN_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -51,4 +49,4 @@ class itsyourdomain_handler
|
||||||
return easy_parser($data_str, $items, 'mdy');
|
return easy_parser($data_str, $items, 'mdy');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__JOKER_HANDLER__'))
|
||||||
define('__JOKER_HANDLER__', 1);
|
define('__JOKER_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class joker_handler
|
class joker_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$translate = array(
|
$translate = array(
|
||||||
|
@ -49,13 +46,13 @@ class joker_handler
|
||||||
'person' => 'name',
|
'person' => 'name',
|
||||||
'domain' => 'name'
|
'domain' => 'name'
|
||||||
);
|
);
|
||||||
|
|
||||||
$contacts = array(
|
$contacts = array(
|
||||||
'admin-c' => 'admin',
|
'admin-c' => 'admin',
|
||||||
'tech-c' => 'tech',
|
'tech-c' => 'tech',
|
||||||
'billing-c' => 'billing'
|
'billing-c' => 'billing'
|
||||||
);
|
);
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'name',
|
'owner' => 'name',
|
||||||
'organization' => 'organization',
|
'organization' => 'organization',
|
||||||
|
@ -65,7 +62,7 @@ class joker_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = generic_parser_a($data_str, $translate, $contacts, 'domain', 'Ymd');
|
$r = generic_parser_a($data_str, $translate, $contacts, 'domain', 'Ymd');
|
||||||
|
|
||||||
foreach($items as $tag => $convert)
|
foreach($items as $tag => $convert)
|
||||||
{
|
{
|
||||||
if (isset($r['domain'][$tag]))
|
if (isset($r['domain'][$tag]))
|
||||||
|
@ -75,7 +72,7 @@ class joker_handler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__MARKMONITOR_HANDLER__'))
|
||||||
define('__MARKMONITOR_HANDLER__', 1);
|
define('__MARKMONITOR_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class markmonitor_handler
|
class markmonitor_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative Contact:',
|
'admin' => 'Administrative Contact:',
|
||||||
|
@ -49,11 +45,11 @@ class markmonitor_handler
|
||||||
'domain.expires' => 'Expires on..............:',
|
'domain.expires' => 'Expires on..............:',
|
||||||
'domain.changed' => 'Record last updated on..:'
|
'domain.changed' => 'Record last updated on..:'
|
||||||
);
|
);
|
||||||
//print_r($data_str);
|
|
||||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__MELBOURNEIT_HANDLER__'))
|
if (!defined('__MELBOURNEIT_HANDLER__'))
|
||||||
|
@ -59,4 +56,4 @@ class melbourneit_handler
|
||||||
return generic_parser_b($data_str, $items, 'ymd');
|
return generic_parser_b($data_str, $items, 'ymd');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__MONIKER_HANDLER__'))
|
||||||
define('__MONIKER_HANDLER__', 1);
|
define('__MONIKER_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class moniker_handler
|
class moniker_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant',
|
'owner' => 'Registrant',
|
||||||
'admin' => 'Administrative ',
|
'admin' => 'Administrative ',
|
||||||
|
@ -53,4 +49,4 @@ class moniker_handler
|
||||||
return easy_parser($data_str, $items, 'ymd');
|
return easy_parser($data_str, $items, 'ymd');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Example 'namejuice.com' */
|
|
||||||
|
|
||||||
if (!defined('__NAMEJUICE_HANDLER__'))
|
if (!defined('__NAMEJUICE_HANDLER__'))
|
||||||
define('__NAMEJUICE_HANDLER__', 1);
|
define('__NAMEJUICE_HANDLER__', 1);
|
||||||
|
|
||||||
require_once('whois.parser.php');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
class namejuice_handler
|
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(
|
return easy_parser($data_str, $items, 'dmy', false, true, true);
|
||||||
'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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ class nameking_handler
|
||||||
'tel --:' => 'phone',
|
'tel --:' => 'phone',
|
||||||
'email-:' => 'email',
|
'email-:' => 'email',
|
||||||
'email:' => 'email',
|
'email:' => 'email',
|
||||||
'mail:' => 'email',
|
'mail:' => 'email',
|
||||||
'name--' => 'name',
|
'name--' => 'name',
|
||||||
'org:' => 'organization',
|
'org:' => 'organization',
|
||||||
'zipcode:' => 'address.pcode',
|
'zipcode:' => 'address.pcode',
|
||||||
|
@ -63,8 +63,8 @@ class nameking_handler
|
||||||
'organization:' => 'organization',
|
'organization:' => 'organization',
|
||||||
'city, province, post code:' => 'address.city'
|
'city, province, post code:' => 'address.city'
|
||||||
);
|
);
|
||||||
|
|
||||||
return easy_parser($data_str, $items, 'mdy', $extra, false, true);
|
return easy_parser($data_str, $items, 'mdy', $extra, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__NAMES4EVER_HANDLER__'))
|
||||||
define('__NAMES4EVER_HANDLER__', 1);
|
define('__NAMES4EVER_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class names4ever_handler
|
class names4ever_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative Contact',
|
'admin' => 'Administrative Contact',
|
||||||
|
@ -52,10 +48,7 @@ class names4ever_handler
|
||||||
'domain.status' => 'Domain status:'
|
'domain.status' => 'Domain status:'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
return 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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__NAMEVAULT_HANDLER__'))
|
||||||
define('__NAMEVAULT_HANDLER__', 1);
|
define('__NAMEVAULT_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -51,4 +49,4 @@ class namevault_handler
|
||||||
return easy_parser($data_str, $items, 'dmy', false, true, true);
|
return easy_parser($data_str, $items, 'dmy', false, true, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__NETWORKSOLUTIONS_HANDLER__'))
|
||||||
define('__NETWORKSOLUTIONS_HANDLER__', 1);
|
define('__NETWORKSOLUTIONS_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -50,4 +47,4 @@ class networksolutions_handler
|
||||||
return easy_parser($data_str, $items, 'dmy',false,true,true);
|
return easy_parser($data_str, $items, 'dmy',false,true,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class nicco_handler
|
class nicco_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Holder Contact',
|
'owner' => 'Holder Contact',
|
||||||
'admin' => 'Admin Contact',
|
'admin' => 'Admin Contact',
|
||||||
|
@ -58,8 +56,7 @@ class nicco_handler
|
||||||
$r['owner'] = get_contact($r['owner'],$translate);
|
$r['owner'] = get_contact($r['owner'],$translate);
|
||||||
$r['admin'] = get_contact($r['admin'],$translate,true);
|
$r['admin'] = get_contact($r['admin'],$translate,true);
|
||||||
$r['tech'] = get_contact($r['tech'],$translate,true);
|
$r['tech'] = get_contact($r['tech'],$translate,true);
|
||||||
$r = format_dates($r, 'dmy');
|
return format_dates($r, 'dmy');
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__NICLINE_HANDLER__'))
|
||||||
define('__NICLINE_HANDLER__', 1);
|
define('__NICLINE_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -36,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class nicline_handler
|
class nicline_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative contact:',
|
'admin' => 'Administrative contact:',
|
||||||
|
@ -54,4 +48,4 @@ class nicline_handler
|
||||||
return easy_parser($data_str, $items, 'dmy');
|
return easy_parser($data_str, $items, 'dmy');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class onlinenic_handler
|
class onlinenic_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrator:',
|
'admin' => 'Administrator:',
|
||||||
|
@ -55,7 +53,7 @@ class onlinenic_handler
|
||||||
'tel --:' => 'phone',
|
'tel --:' => 'phone',
|
||||||
'email-:' => 'email',
|
'email-:' => 'email',
|
||||||
'email:' => 'email',
|
'email:' => 'email',
|
||||||
'mail:' => 'email',
|
'mail:' => 'email',
|
||||||
'name--' => 'name',
|
'name--' => 'name',
|
||||||
'org:' => 'organization',
|
'org:' => 'organization',
|
||||||
'zipcode:' => 'address.pcode',
|
'zipcode:' => 'address.pcode',
|
||||||
|
@ -66,7 +64,7 @@ class onlinenic_handler
|
||||||
',province:' => '',
|
',province:' => '',
|
||||||
',country:' => 'address.country'
|
',country:' => 'address.country'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = easy_parser($data_str, $items, 'mdy',$extra,false,true);
|
$r = easy_parser($data_str, $items, 'mdy',$extra,false,true);
|
||||||
|
|
||||||
foreach($r as $key => $part)
|
foreach($r as $key => $part)
|
||||||
|
@ -78,10 +76,8 @@ class onlinenic_handler
|
||||||
$r[$key]['email'] = $email;
|
$r[$key]['email'] = $email;
|
||||||
if ($phone != '') $r[$key]['phone'] = $phone;
|
if ($phone != '') $r[$key]['phone'] = $phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__OPENSRS_HANDLER__'))
|
||||||
define('__OPENSRS_HANDLER__', 1);
|
define('__OPENSRS_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -55,7 +52,7 @@ class opensrs_handler
|
||||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||||
|
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class ovh_handler
|
class ovh_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
|
@ -45,8 +44,8 @@ class ovh_handler
|
||||||
'domain.expires' => 'Record expires on',
|
'domain.expires' => 'Record expires on',
|
||||||
'domain.created' => 'Record created on'
|
'domain.created' => 'Record created on'
|
||||||
);
|
);
|
||||||
|
|
||||||
return easy_parser($data_str, $items, 'mdy',false,false,true);
|
return easy_parser($data_str, $items, 'mdy',false,false,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__GTLD_HANDLER__'))
|
||||||
define('__GTLD_HANDLER__', 1);
|
define('__GTLD_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -36,9 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class gtld_handler extends WhoisClient
|
class gtld_handler extends WhoisClient
|
||||||
{
|
{
|
||||||
// Deep whois ?
|
|
||||||
//var $deep_whois = true;
|
|
||||||
|
|
||||||
var $HANDLER_VERSION = '1.1';
|
var $HANDLER_VERSION = '1.1';
|
||||||
|
|
||||||
var $REG_FIELDS = array(
|
var $REG_FIELDS = array(
|
||||||
|
@ -49,7 +42,7 @@ class gtld_handler extends WhoisClient
|
||||||
'Name Server:' => 'regrinfo.domain.nserver.', // identical descriptors
|
'Name Server:' => 'regrinfo.domain.nserver.', // identical descriptors
|
||||||
'Updated Date:' => 'regrinfo.domain.changed',
|
'Updated Date:' => 'regrinfo.domain.changed',
|
||||||
'Last Updated On:' => '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.',
|
'Status:' => 'regrinfo.domain.status.',
|
||||||
'Creation Date:' => 'regrinfo.domain.created',
|
'Creation Date:' => 'regrinfo.domain.created',
|
||||||
'Created On:' => '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');
|
$this->result = generic_parser_b($data['rawdata'], $this->REG_FIELDS, 'dmy');
|
||||||
|
|
||||||
unset($this->result['registered']);
|
unset($this->result['registered']);
|
||||||
|
|
||||||
if (isset($this->result['nodomain']))
|
if (isset($this->result['nodomain']))
|
||||||
{
|
{
|
||||||
unset($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
|
// Domain is registered no matter what next server says
|
||||||
$this->result['regrinfo']['registered'] = 'yes';
|
$this->result['regrinfo']['registered'] = 'yes';
|
||||||
|
|
||||||
return $this->result;
|
return $this->result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class psiusa_handler
|
class psiusa_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'created:' => 'domain.created',
|
'created:' => 'domain.created',
|
||||||
'last-changed:' => 'domain.changed',
|
'last-changed:' => 'domain.changed',
|
||||||
|
@ -86,8 +84,7 @@ class psiusa_handler
|
||||||
'[zone-c] email:' => 'zone.email',
|
'[zone-c] email:' => 'zone.email',
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = generic_parser_b($data_str, $items);
|
return generic_parser_b($data_str, $items);
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__PUBLICDOMAINREGISTRY_HANDLER__'))
|
||||||
define('__PUBLICDOMAINREGISTRY_HANDLER__', 1);
|
define('__PUBLICDOMAINREGISTRY_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -56,4 +54,4 @@ class publicdomainregistry_handler
|
||||||
return easy_parser($data_str, $items, 'mdy', false, true, true);
|
return easy_parser($data_str, $items, 'mdy', false, true, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__REGISTER_HANDLER__'))
|
||||||
define('__REGISTER_HANDLER__', 1);
|
define('__REGISTER_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -62,4 +59,4 @@ class register_handler
|
||||||
return easy_parser($data_str, $items, 'ymd');
|
return easy_parser($data_str, $items, 'ymd');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class rrpproxy_handler
|
class rrpproxy_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'created-date:' => 'domain.created',
|
'created-date:' => 'domain.created',
|
||||||
'updated-date:' => 'domain.changed',
|
'updated-date:' => 'domain.changed',
|
||||||
|
@ -88,8 +86,7 @@ class rrpproxy_handler
|
||||||
'billing-email:' => 'billing.email'
|
'billing-email:' => 'billing.email'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = generic_parser_b($data_str, $items);
|
return generic_parser_b($data_str, $items);
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__SCHLUND_HANDLER__'))
|
||||||
define('__SCHLUND_HANDLER__', 1);
|
define('__SCHLUND_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class schlund_handler
|
class schlund_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'created:' => 'domain.created',
|
'created:' => 'domain.created',
|
||||||
'last-changed:' => 'domain.changed',
|
'last-changed:' => 'domain.changed',
|
||||||
|
@ -84,8 +80,7 @@ class schlund_handler
|
||||||
'bill-c-email:' => 'billing.email'
|
'bill-c-email:' => 'billing.email'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = generic_parser_b($data_str, $items);
|
return generic_parser_b($data_str, $items);
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__SRSPLUS_HANDLER__'))
|
||||||
define('__SRSPLUS_HANDLER__', 1);
|
define('__SRSPLUS_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -50,4 +48,4 @@ class srsplus_handler
|
||||||
return easy_parser($data_str, $items, 'ymd',false,true,true);
|
return easy_parser($data_str, $items, 'ymd',false,true,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__TMAGNIC_HANDLER__'))
|
||||||
define('__TMAGNIC_HANDLER__', 1);
|
define('__TMAGNIC_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -51,4 +49,4 @@ class tmagnic_handler
|
||||||
return easy_parser($data_str, $items, 'ymd',false,false,true);
|
return easy_parser($data_str, $items, 'ymd',false,false,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__TVCORP_HANDLER__'))
|
||||||
define('__TVCORP_HANDLER__', 1);
|
define('__TVCORP_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -49,4 +47,4 @@ class tvcorp_handler
|
||||||
return easy_parser($data_str, $items, 'mdy');
|
return easy_parser($data_str, $items, 'mdy');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -49,4 +49,4 @@ class wildwestdomains_handler
|
||||||
return easy_parser($data_str, $items, 'mdy');
|
return easy_parser($data_str, $items, 'mdy');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if(!defined('__HU_HANDLER__'))
|
||||||
define('__HU_HANDLER__',1);
|
define('__HU_HANDLER__',1);
|
||||||
|
|
||||||
require_once('whois.parser.php');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
class hu_handler {
|
class hu_handler
|
||||||
|
{
|
||||||
function parse ($data_str, $query) {
|
function parse ($data_str, $query)
|
||||||
|
{
|
||||||
|
$translate = array (
|
||||||
$translate = array (
|
|
||||||
'fax-no' => 'fax',
|
'fax-no' => 'fax',
|
||||||
'e-mail' => 'email',
|
'e-mail' => 'email',
|
||||||
'hun-id' => 'handle',
|
'hun-id' => 'handle',
|
||||||
|
@ -49,7 +45,7 @@ class hu_handler {
|
||||||
'registered' => 'created'
|
'registered' => 'created'
|
||||||
);
|
);
|
||||||
|
|
||||||
$contacts = array (
|
$contacts = array (
|
||||||
'registrar' => 'owner',
|
'registrar' => 'owner',
|
||||||
'admin-c' => 'admin',
|
'admin-c' => 'admin',
|
||||||
'tech-c' => 'tech',
|
'tech-c' => 'tech',
|
||||||
|
@ -57,44 +53,43 @@ class hu_handler {
|
||||||
'zone-c' => 'zone',
|
'zone-c' => 'zone',
|
||||||
'owner-hun-id' => 'owner'
|
'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;
|
// make those broken hungary comments standards-conforming
|
||||||
$owner_id = true;
|
// replace first found hun-id with owner-hun-id (will be parsed later on)
|
||||||
|
// make output UTF-8
|
||||||
foreach ($data_str['rawdata'] as $i => $val)
|
|
||||||
{
|
$comments = true;
|
||||||
if ($comments)
|
$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
|
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;
|
$reg = generic_parser_a($data_str['rawdata'],$translate,$contacts);
|
||||||
$r['regyinfo'] = array('referrer'=>'http://www.nic.hu','registrar'=>'HUNIC');
|
|
||||||
$r['rawdata'] = $data_str['rawdata'];
|
unset($reg['domain']['organization']);
|
||||||
format_dates($r,'ymd');
|
unset($reg['domain']['address']);
|
||||||
return($r);
|
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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -45,11 +45,6 @@ class ie_handler
|
||||||
'tech-c' => 'tech',
|
'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');
|
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
|
||||||
|
|
||||||
if (isset($reg['domain']['descr']))
|
if (isset($reg['domain']['descr']))
|
||||||
|
@ -59,6 +54,10 @@ class ie_handler
|
||||||
}
|
}
|
||||||
|
|
||||||
$r['regrinfo'] = $reg;
|
$r['regrinfo'] = $reg;
|
||||||
|
$r['regyinfo'] = array(
|
||||||
|
'referrer' => 'http://www.domainregistry.ie',
|
||||||
|
'registrar' => 'IE Domain Registry'
|
||||||
|
);
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__IN_HANDLER__'))
|
||||||
define('__IN_HANDLER__', 1);
|
define('__IN_HANDLER__', 1);
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__INFO_HANDLER__'))
|
||||||
define('__INFO_HANDLER__', 1);
|
define('__INFO_HANDLER__', 1);
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,17 +32,13 @@ require_once('whois.gtld.iana.php');
|
||||||
|
|
||||||
class int_handler
|
class int_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$iana = new iana_handler();
|
$iana = new iana_handler();
|
||||||
|
|
||||||
$r['regrinfo'] = $iana->parse($data_str['rawdata'], $query);
|
$r['regrinfo'] = $iana->parse($data_str['rawdata'], $query);
|
||||||
|
|
||||||
$r['regyinfo']['referrer'] = 'http://www.iana.org/int-dom/int.htm';
|
$r['regyinfo']['referrer'] = 'http://www.iana.org/int-dom/int.htm';
|
||||||
$r['regyinfo']['registrar'] = 'Internet Assigned Numbers Authority';
|
$r['regyinfo']['registrar'] = 'Internet Assigned Numbers Authority';
|
||||||
return ($r);
|
return ($r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__AFRINIC_HANDLER__'))
|
if (!defined('__AFRINIC_HANDLER__'))
|
||||||
|
@ -34,7 +32,6 @@ if (!defined('__AFRINIC_HANDLER__'))
|
||||||
|
|
||||||
class afrinic_handler
|
class afrinic_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$translate = array(
|
$translate = array(
|
||||||
|
@ -64,18 +61,17 @@ class afrinic_handler
|
||||||
|
|
||||||
if (isset($r['owner']['remarks']) && is_array($r['owner']['remarks']))
|
if (isset($r['owner']['remarks']) && is_array($r['owner']['remarks']))
|
||||||
while (list($key, $val) = each($r['owner']['remarks']))
|
while (list($key, $val) = each($r['owner']['remarks']))
|
||||||
{
|
{
|
||||||
$pos = strpos($val,'rwhois://');
|
$pos = strpos($val,'rwhois://');
|
||||||
|
|
||||||
if ($pos!==false)
|
if ($pos!==false)
|
||||||
$r['rwhois'] = strtok(substr($val,$pos),' ');
|
$r['rwhois'] = strtok(substr($val,$pos),' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = array( 'regrinfo' => $r );
|
$r = array( 'regrinfo' => $r );
|
||||||
$r['regyinfo']['type'] = 'ip';
|
$r['regyinfo']['type'] = 'ip';
|
||||||
$r['regyinfo']['registrar'] = 'African Network Information Center';
|
$r['regyinfo']['registrar'] = 'African Network Information Center';
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if(!defined('__APNIC_HANDLER__'))
|
if(!defined('__APNIC_HANDLER__'))
|
||||||
|
@ -46,12 +44,12 @@ class apnic_handler
|
||||||
'descr' => 'desc',
|
'descr' => 'desc',
|
||||||
'aut-num' => 'handle'
|
'aut-num' => 'handle'
|
||||||
);
|
);
|
||||||
|
|
||||||
$contacts = array (
|
$contacts = array (
|
||||||
'admin-c' => 'admin',
|
'admin-c' => 'admin',
|
||||||
'tech-c' => 'tech'
|
'tech-c' => 'tech'
|
||||||
);
|
);
|
||||||
|
|
||||||
$blocks = generic_parser_a_blocks($data_str,$translate,$disclaimer);
|
$blocks = generic_parser_a_blocks($data_str,$translate,$disclaimer);
|
||||||
|
|
||||||
if (isset($disclaimer) && is_array($disclaimer)) $r['disclaimer'] = $disclaimer;
|
if (isset($disclaimer) && is_array($disclaimer)) $r['disclaimer'] = $disclaimer;
|
||||||
|
@ -82,12 +80,12 @@ class apnic_handler
|
||||||
$blk = $rb[$key][count($rb[$key])-1];
|
$blk = $rb[$key][count($rb[$key])-1];
|
||||||
else
|
else
|
||||||
$blk = $rb[$key];
|
$blk = $rb[$key];
|
||||||
|
|
||||||
//$blk = strtoupper(strtok($blk,' '));
|
//$blk = strtoupper(strtok($blk,' '));
|
||||||
if (isset($blocks[$blk])) $r[$val] = $blocks[$blk];
|
if (isset($blocks[$blk])) $r[$val] = $blocks[$blk];
|
||||||
unset($rb[$key]);
|
unset($rb[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$r['network'] = $rb;
|
$r['network'] = $rb;
|
||||||
format_dates($r,'Ymd');
|
format_dates($r,'Ymd');
|
||||||
|
|
||||||
|
@ -100,17 +98,17 @@ class apnic_handler
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$r['owner']['organization'] = $r['network']['desc'];
|
$r['owner']['organization'] = $r['network']['desc'];
|
||||||
|
|
||||||
unset($r['network']['desc']);
|
unset($r['network']['desc']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($r['network']['address']))
|
if (isset($r['network']['address']))
|
||||||
{
|
{
|
||||||
if (isset($r['owner']['address']))
|
if (isset($r['owner']['address']))
|
||||||
$r['owner']['address'][] = $r['network']['address'];
|
$r['owner']['address'][] = $r['network']['address'];
|
||||||
else
|
else
|
||||||
$r['owner']['address'] = $r['network']['address'];
|
$r['owner']['address'] = $r['network']['address'];
|
||||||
|
|
||||||
unset($r['network']['address']);
|
unset($r['network']['address']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,5 +118,5 @@ class apnic_handler
|
||||||
$r['regyinfo']['registrar'] = 'Asia Pacific Network Information Centre';
|
$r['regyinfo']['registrar'] = 'Asia Pacific Network Information Centre';
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__ARIN_HANDLER__'))
|
||||||
define('__ARIN_HANDLER__', 1);
|
define('__ARIN_HANDLER__', 1);
|
||||||
|
@ -34,7 +33,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class arin_handler
|
class arin_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
|
@ -71,10 +69,10 @@ class arin_handler
|
||||||
|
|
||||||
$r = generic_parser_b($data_str, $items, 'ymd', false, true);
|
$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']);
|
$r['abuse']['email'] = implode(',',$r['abuse']['email']);
|
||||||
|
|
||||||
return array( 'regrinfo' => $r );
|
return array( 'regrinfo' => $r );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__KRNIC_HANDLER__'))
|
||||||
define('__KRNIC_HANDLER__', 1);
|
define('__KRNIC_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -34,23 +32,21 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class krnic_handler
|
class krnic_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$blocks = array(
|
$blocks = array(
|
||||||
'owner1' => '[ Organization Information ]',
|
'owner1' => '[ Organization Information ]',
|
||||||
'tech1' => '[ Technical Contact Information ]',
|
'tech1' => '[ Technical Contact Information ]',
|
||||||
|
|
||||||
'owner2' => '[ ISP Organization Information ]',
|
'owner2' => '[ ISP Organization Information ]',
|
||||||
'admin2' => '[ ISP IP Admin Contact Information ]',
|
'admin2' => '[ ISP IP Admin Contact Information ]',
|
||||||
'tech2' => '[ ISP IP Tech Contact Information ]',
|
'tech2' => '[ ISP IP Tech Contact Information ]',
|
||||||
|
|
||||||
'admin3' => '[ ISP IPv4 Admin Contact Information ]',
|
'admin3' => '[ ISP IPv4 Admin Contact Information ]',
|
||||||
'tech3' => '[ ISP IPv4 Tech Contact Information ]',
|
'tech3' => '[ ISP IPv4 Tech Contact Information ]',
|
||||||
|
|
||||||
'abuse' => '[ ISP Network Abuse Contact Information ]',
|
'abuse' => '[ ISP Network Abuse Contact Information ]',
|
||||||
|
|
||||||
'network.inetnum' => 'IPv4 Address :',
|
'network.inetnum' => 'IPv4 Address :',
|
||||||
'network.name' => 'Network Name :',
|
'network.name' => 'Network Name :',
|
||||||
'network.mnt-by' => 'Connect ISP Name :',
|
'network.mnt-by' => 'Connect ISP Name :',
|
||||||
|
@ -72,26 +68,26 @@ class krnic_handler
|
||||||
'Phone :' => 'phone',
|
'Phone :' => 'phone',
|
||||||
'Fax :' => 'fax',
|
'Fax :' => 'fax',
|
||||||
'E-Mail :' => 'email',
|
'E-Mail :' => 'email',
|
||||||
'E-Mail :' => 'email'
|
'E-Mail :' => 'email'
|
||||||
);
|
);
|
||||||
|
|
||||||
$b = get_blocks($data_str, $blocks);
|
$b = get_blocks($data_str, $blocks);
|
||||||
|
|
||||||
if (isset($b['network']))
|
if (isset($b['network']))
|
||||||
$r['network'] = $b['network'];
|
$r['network'] = $b['network'];
|
||||||
|
|
||||||
if (isset($b['owner1']))
|
if (isset($b['owner1']))
|
||||||
$r['owner'] = generic_parser_b($b['owner1'], $items, 'Ymd', false);
|
$r['owner'] = generic_parser_b($b['owner1'], $items, 'Ymd', false);
|
||||||
else
|
else
|
||||||
if (isset($b['owner2']))
|
if (isset($b['owner2']))
|
||||||
$r['owner'] = generic_parser_b($b['owner2'], $items, 'Ymd', false);
|
$r['owner'] = generic_parser_b($b['owner2'], $items, 'Ymd', false);
|
||||||
|
|
||||||
if (isset($b['admin2']))
|
if (isset($b['admin2']))
|
||||||
$r['admin'] = generic_parser_b($b['admin2'], $items, 'Ymd', false);
|
$r['admin'] = generic_parser_b($b['admin2'], $items, 'Ymd', false);
|
||||||
else
|
else
|
||||||
if (isset($b['admin3']))
|
if (isset($b['admin3']))
|
||||||
$r['admin'] = generic_parser_b($b['admin3'], $items, 'Ymd', false);
|
$r['admin'] = generic_parser_b($b['admin3'], $items, 'Ymd', false);
|
||||||
|
|
||||||
if (isset($b['tech1']))
|
if (isset($b['tech1']))
|
||||||
$r['tech'] = generic_parser_b($b['tech1'], $items, 'Ymd', false);
|
$r['tech'] = generic_parser_b($b['tech1'], $items, 'Ymd', false);
|
||||||
else
|
else
|
||||||
|
@ -100,18 +96,17 @@ class krnic_handler
|
||||||
else
|
else
|
||||||
if (isset($b['tech3']))
|
if (isset($b['tech3']))
|
||||||
$r['tech'] = generic_parser_b($b['tech3'], $items, 'Ymd', false);
|
$r['tech'] = generic_parser_b($b['tech3'], $items, 'Ymd', false);
|
||||||
|
|
||||||
if (isset($b['abuse']))
|
if (isset($b['abuse']))
|
||||||
$r['abuse'] = generic_parser_b($b['abuse'], $items, 'Ymd', false);
|
$r['abuse'] = generic_parser_b($b['abuse'], $items, 'Ymd', false);
|
||||||
|
|
||||||
$r = format_dates($r, 'Ymd');
|
$r = format_dates($r, 'Ymd');
|
||||||
|
|
||||||
$r = array( 'regrinfo' => $r );
|
$r = array( 'regrinfo' => $r );
|
||||||
$r['regyinfo']['type'] ='ip';
|
$r['regyinfo']['type'] ='ip';
|
||||||
$r['regyinfo']['registrar'] = 'Korean Network Information Centre';
|
$r['regyinfo']['registrar'] = 'Korean Network Information Centre';
|
||||||
|
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__LACNIC_HANDLER__'))
|
if (!defined('__LACNIC_HANDLER__'))
|
||||||
|
@ -34,7 +32,6 @@ if (!defined('__LACNIC_HANDLER__'))
|
||||||
|
|
||||||
class lacnic_handler
|
class lacnic_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$translate = array(
|
$translate = array(
|
||||||
|
@ -69,7 +66,7 @@ class lacnic_handler
|
||||||
|
|
||||||
if (!empty($r['network']['aut-num']))
|
if (!empty($r['network']['aut-num']))
|
||||||
$r['network']['handle'] = $r['network']['aut-num'];
|
$r['network']['handle'] = $r['network']['aut-num'];
|
||||||
|
|
||||||
if (is_array($r['network']['nserver']))
|
if (is_array($r['network']['nserver']))
|
||||||
$r['network']['nserver'] = array_unique($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';
|
$r['regyinfo']['registrar'] = 'Latin American and Caribbean IP address Regional Registry';
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__IP_HANDLER__'))
|
||||||
define('__IP_HANDLER__', 1);
|
define('__IP_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -46,7 +34,7 @@ class ip_handler extends WhoisClient
|
||||||
{
|
{
|
||||||
// Deep whois ?
|
// Deep whois ?
|
||||||
var $deep_whois = true;
|
var $deep_whois = true;
|
||||||
|
|
||||||
var $HANDLER_VERSION = '1.0';
|
var $HANDLER_VERSION = '1.0';
|
||||||
|
|
||||||
var $REGISTRARS = array(
|
var $REGISTRARS = array(
|
||||||
|
@ -66,7 +54,7 @@ class ip_handler extends WhoisClient
|
||||||
'whois.lacnic.net' => 'lacnic',
|
'whois.lacnic.net' => 'lacnic',
|
||||||
'whois.afrinic.net' => 'afrinic'
|
'whois.afrinic.net' => 'afrinic'
|
||||||
);
|
);
|
||||||
|
|
||||||
var $more_data = array(); // More queries to get more accurated data
|
var $more_data = array(); // More queries to get more accurated data
|
||||||
var $done = array();
|
var $done = array();
|
||||||
|
|
||||||
|
@ -89,9 +77,9 @@ class ip_handler extends WhoisClient
|
||||||
$this->Query['query'] = $query;
|
$this->Query['query'] = $query;
|
||||||
|
|
||||||
$rawdata = $data['rawdata'];
|
$rawdata = $data['rawdata'];
|
||||||
|
|
||||||
if (empty($rawdata)) return $result;
|
if (empty($rawdata)) return $result;
|
||||||
|
|
||||||
$presults[] = $rawdata;
|
$presults[] = $rawdata;
|
||||||
$ip = ip2long($query);
|
$ip = ip2long($query);
|
||||||
$done = array();
|
$done = array();
|
||||||
|
@ -100,24 +88,24 @@ class ip_handler extends WhoisClient
|
||||||
{
|
{
|
||||||
$rwdata = array_shift($presults);
|
$rwdata = array_shift($presults);
|
||||||
$found = false;
|
$found = false;
|
||||||
|
|
||||||
foreach($rwdata as $line)
|
foreach($rwdata as $line)
|
||||||
{
|
{
|
||||||
if (!strncmp($line,'American Registry for Internet Numbers',38)) continue;
|
if (!strncmp($line,'American Registry for Internet Numbers',38)) continue;
|
||||||
|
|
||||||
$p = strpos($line, '(NETBLK-');
|
$p = strpos($line, '(NETBLK-');
|
||||||
|
|
||||||
if ($p === false) $p = strpos($line, '(NET-');
|
if ($p === false) $p = strpos($line, '(NET-');
|
||||||
|
|
||||||
if ($p !== false)
|
if ($p !== false)
|
||||||
{
|
{
|
||||||
$net = strtok(substr($line,$p+1),') ');
|
$net = strtok(substr($line,$p+1),') ');
|
||||||
list($low,$high) = explode('-',str_replace(' ','',substr($line,$p+strlen($net)+3)));
|
list($low,$high) = explode('-',str_replace(' ','',substr($line,$p+strlen($net)+3)));
|
||||||
|
|
||||||
if (!isset($done[$net]) && $ip >= ip2long($low) && $ip <= ip2long($high))
|
if (!isset($done[$net]) && $ip >= ip2long($low) && $ip <= ip2long($high))
|
||||||
{
|
{
|
||||||
$owner = substr($line,0,$p-1);
|
$owner = substr($line,0,$p-1);
|
||||||
|
|
||||||
if (!empty($this->REGISTRARS['owner']))
|
if (!empty($this->REGISTRARS['owner']))
|
||||||
{
|
{
|
||||||
$this->handle_rwhois($this->REGISTRARS['owner'],$query);
|
$this->handle_rwhois($this->REGISTRARS['owner'],$query);
|
||||||
|
@ -133,7 +121,7 @@ class ip_handler extends WhoisClient
|
||||||
$found = true;
|
$found = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$found)
|
if (!$found)
|
||||||
{
|
{
|
||||||
$this->Query['file'] = 'whois.ip.arin.php';
|
$this->Query['file'] = 'whois.ip.arin.php';
|
||||||
|
@ -148,7 +136,7 @@ class ip_handler extends WhoisClient
|
||||||
{
|
{
|
||||||
$srv_data = array_shift($this->more_data);
|
$srv_data = array_shift($this->more_data);
|
||||||
$this->Query['server'] = $srv_data['server'];
|
$this->Query['server'] = $srv_data['server'];
|
||||||
unset($this->Query['handler']);
|
unset($this->Query['handler']);
|
||||||
// Use original query
|
// Use original query
|
||||||
$rwdata = $this->GetRawData($srv_data['query']);
|
$rwdata = $this->GetRawData($srv_data['query']);
|
||||||
|
|
||||||
|
@ -157,7 +145,7 @@ class ip_handler extends WhoisClient
|
||||||
if (!empty($srv_data['handler']))
|
if (!empty($srv_data['handler']))
|
||||||
{
|
{
|
||||||
$this->Query['handler'] = $srv_data['handler'];
|
$this->Query['handler'] = $srv_data['handler'];
|
||||||
|
|
||||||
if (!empty($srv_data['file']))
|
if (!empty($srv_data['file']))
|
||||||
$this->Query['file'] = $srv_data['file'];
|
$this->Query['file'] = $srv_data['file'];
|
||||||
else
|
else
|
||||||
|
@ -172,7 +160,7 @@ class ip_handler extends WhoisClient
|
||||||
|
|
||||||
|
|
||||||
// Normalize nameserver fields
|
// Normalize nameserver fields
|
||||||
|
|
||||||
if (isset($result['regrinfo']['network']['nserver']))
|
if (isset($result['regrinfo']['network']['nserver']))
|
||||||
{
|
{
|
||||||
if (!is_array($result['regrinfo']['network']['nserver']))
|
if (!is_array($result['regrinfo']['network']['nserver']))
|
||||||
|
@ -185,28 +173,28 @@ class ip_handler extends WhoisClient
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------
|
//-----------------------------------------------------------------
|
||||||
|
|
||||||
function parse_results($result,$rwdata,$query,$reset)
|
function parse_results($result,$rwdata,$query,$reset)
|
||||||
{
|
{
|
||||||
$rwres = $this->Process($rwdata);
|
$rwres = $this->Process($rwdata);
|
||||||
|
|
||||||
if ($result['regyinfo']['type'] == 'AS' && !empty($rwres['regrinfo']['network']))
|
if ($result['regyinfo']['type'] == 'AS' && !empty($rwres['regrinfo']['network']))
|
||||||
{
|
{
|
||||||
$rwres['regrinfo']['AS'] = $rwres['regrinfo']['network'];
|
$rwres['regrinfo']['AS'] = $rwres['regrinfo']['network'];
|
||||||
unset($rwres['regrinfo']['network']);
|
unset($rwres['regrinfo']['network']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($reset)
|
if ($reset)
|
||||||
{
|
{
|
||||||
$result['regrinfo'] = $rwres['regrinfo'];
|
$result['regrinfo'] = $rwres['regrinfo'];
|
||||||
$result['rawdata'] = $rwdata;
|
$result['rawdata'] = $rwdata;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$result['rawdata'][] = '';
|
$result['rawdata'][] = '';
|
||||||
|
|
||||||
foreach ($rwdata as $line)
|
foreach ($rwdata as $line)
|
||||||
$result['rawdata'][] = $line;
|
$result['rawdata'][] = $line;
|
||||||
|
|
||||||
|
@ -230,7 +218,7 @@ class ip_handler extends WhoisClient
|
||||||
case 'KRNIC':
|
case 'KRNIC':
|
||||||
$this->handle_rwhois('whois.krnic.net',$query);
|
$this->handle_rwhois('whois.krnic.net',$query);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'African Network Information Center':
|
case 'African Network Information Center':
|
||||||
$this->handle_rwhois('whois.afrinic.net',$query);
|
$this->handle_rwhois('whois.afrinic.net',$query);
|
||||||
break;
|
break;
|
||||||
|
@ -244,13 +232,13 @@ class ip_handler extends WhoisClient
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------
|
//-----------------------------------------------------------------
|
||||||
|
|
||||||
function handle_rwhois($server,$query)
|
function handle_rwhois($server,$query)
|
||||||
{
|
{
|
||||||
// Avoid querying the same server twice
|
// Avoid querying the same server twice
|
||||||
|
|
||||||
$parts = parse_url($server);
|
$parts = parse_url($server);
|
||||||
|
|
||||||
if (empty($parts['host']))
|
if (empty($parts['host']))
|
||||||
$host = $parts['path'];
|
$host = $parts['path'];
|
||||||
else
|
else
|
||||||
|
@ -262,7 +250,7 @@ class ip_handler extends WhoisClient
|
||||||
'query' => $query,
|
'query' => $query,
|
||||||
'server' => $server
|
'server' => $server
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isset($this->HANDLERS[$host]))
|
if (isset($this->HANDLERS[$host]))
|
||||||
{
|
{
|
||||||
$q['handler'] = $this->HANDLERS[$host];
|
$q['handler'] = $this->HANDLERS[$host];
|
||||||
|
@ -281,9 +269,9 @@ class ip_handler extends WhoisClient
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------
|
//-----------------------------------------------------------------
|
||||||
|
|
||||||
function join_result($result, $key, $newres)
|
function join_result($result, $key, $newres)
|
||||||
{
|
{
|
||||||
if (isset($result['regrinfo'][$key]) && !array_key_exists(0,$result['regrinfo'][$key]))
|
if (isset($result['regrinfo'][$key]) && !array_key_exists(0,$result['regrinfo'][$key]))
|
||||||
{
|
{
|
||||||
$r = $result['regrinfo'][$key];
|
$r = $result['regrinfo'][$key];
|
||||||
|
@ -294,4 +282,4 @@ class ip_handler extends WhoisClient
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__RIPE_HANDLER__'))
|
if (!defined('__RIPE_HANDLER__'))
|
||||||
|
@ -49,7 +47,7 @@ class ripe_handler
|
||||||
'admin-c' => 'admin',
|
'admin-c' => 'admin',
|
||||||
'tech-c' => 'tech'
|
'tech-c' => 'tech'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!empty($data_str['rawdata'])) $data_str = $data_str['rawdata'];
|
if (!empty($data_str['rawdata'])) $data_str = $data_str['rawdata'];
|
||||||
|
|
||||||
$r = generic_parser_a($data_str, $translate, $contacts, 'network');
|
$r = generic_parser_a($data_str, $translate, $contacts, 'network');
|
||||||
|
@ -59,7 +57,7 @@ class ripe_handler
|
||||||
$r['owner']['organization'] = $r['network']['desc'];
|
$r['owner']['organization'] = $r['network']['desc'];
|
||||||
unset($r['network']['desc']);
|
unset($r['network']['desc']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($r['admin']['abuse-mailbox']))
|
if (isset($r['admin']['abuse-mailbox']))
|
||||||
{
|
{
|
||||||
$r['abuse']['email'] = $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'];
|
$r['abuse']['email'] = $r['tech']['abuse-mailbox'];
|
||||||
unset($r['tech']['abuse-mailbox']);
|
unset($r['tech']['abuse-mailbox']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean mess
|
// Clean mess
|
||||||
if (isset($r['tech']['tech-c'])) unset($r['tech']['tech-c']);
|
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['tech']['admin-c'])) unset($r['tech']['admin-c']);
|
||||||
if (isset($r['admin']['tech-c'])) unset($r['admin']['tech-c']);
|
if (isset($r['admin']['tech-c'])) unset($r['admin']['tech-c']);
|
||||||
if (isset($r['admin']['admin-c'])) unset($r['admin']['admin-c']);
|
if (isset($r['admin']['admin-c'])) unset($r['admin']['admin-c']);
|
||||||
|
|
||||||
$r = array( 'regrinfo' => $r );
|
$r = array( 'regrinfo' => $r );
|
||||||
$r['regyinfo']['type'] ='ip';
|
$r['regyinfo']['type'] ='ip';
|
||||||
$r['regyinfo']['registrar'] = 'RIPE Network Coordination Centre';
|
$r['regyinfo']['registrar'] = 'RIPE Network Coordination Centre';
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PHPWhois IR Lookup Extension - http://github.com/sepehr/phpwhois-ir
|
* PHPWhois IR Lookup Extension - http://github.com/sepehr/phpwhois-ir
|
||||||
*
|
*
|
||||||
|
@ -23,7 +22,6 @@
|
||||||
if (!defined('__IR_HANDLER__'))
|
if (!defined('__IR_HANDLER__'))
|
||||||
define('__IR_HANDLER__', 1);
|
define('__IR_HANDLER__', 1);
|
||||||
|
|
||||||
|
|
||||||
// Loadup the parser.
|
// Loadup the parser.
|
||||||
require_once('whois.parser.php');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
|
@ -49,14 +47,14 @@ class ir_handler
|
||||||
'holder-c' => 'owner'
|
'holder-c' => 'owner'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
|
||||||
|
|
||||||
|
$r['regrinfo'] = $reg;
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer'=>'http://whois.nic.ir/',
|
'referrer'=>'http://whois.nic.ir/',
|
||||||
'registrar' => 'NIC-IR'
|
'registrar' => 'NIC-IR'
|
||||||
);
|
);
|
||||||
|
return $r;
|
||||||
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd');
|
|
||||||
|
|
||||||
$r['regrinfo'] = $reg;
|
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
class is_handler
|
class is_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$translate = array(
|
$translate = array(
|
||||||
"fax-no" => "fax",
|
'fax-no' => 'fax',
|
||||||
"e-mail" => "email",
|
'e-mail' => 'email',
|
||||||
"nic-hdl" => "handle",
|
'nic-hdl' => 'handle',
|
||||||
"person" => "name"
|
'person' => 'name'
|
||||||
);
|
);
|
||||||
|
|
||||||
$contacts = array(
|
$contacts = array(
|
||||||
"owner-c" => "owner",
|
'owner-c' => 'owner',
|
||||||
"admin-c" => "admin",
|
'admin-c' => 'admin',
|
||||||
"tech-c" => "tech",
|
'tech-c' => 'tech',
|
||||||
"billing-c" => "billing",
|
'billing-c' => 'billing',
|
||||||
"zone-c" => "zone"
|
'zone-c' => 'zone'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r["regyinfo"] = array(
|
$reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'mdy');
|
||||||
"referrer" => "http://www.isnic.is",
|
|
||||||
"registrar" => "ISNIC"
|
|
||||||
);
|
|
||||||
|
|
||||||
$reg = generic_parser_a($data_str["rawdata"], $translate, $contacts, 'domain', 'mdy');
|
|
||||||
|
|
||||||
if (isset($reg['domain']['descr']))
|
if (isset($reg['domain']['descr']))
|
||||||
{
|
{
|
||||||
|
@ -67,8 +58,12 @@ class is_handler
|
||||||
unset($reg['domain']['descr']);
|
unset($reg['domain']['descr']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$r["regrinfo"] = $reg;
|
$r['regrinfo'] = $reg;
|
||||||
return ($r);
|
$r['regyinfo'] = array(
|
||||||
|
'referrer' => 'http://www.isnic.is',
|
||||||
|
'registrar' => 'ISNIC'
|
||||||
|
);
|
||||||
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
BUG
|
BUG
|
||||||
- nserver -> array
|
- nserver -> array
|
||||||
- ContactID in address
|
- ContactID in address
|
||||||
|
@ -38,10 +38,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class it_handler
|
class it_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'domain.name' => 'Domain:',
|
'domain.name' => 'Domain:',
|
||||||
'domain.nserver' => 'Nameservers',
|
'domain.nserver' => 'Nameservers',
|
||||||
|
@ -63,7 +61,7 @@ class it_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd',$extra);
|
$r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd',$extra);
|
||||||
|
|
||||||
if (isset($r['regrinfo']['registrar']))
|
if (isset($r['regrinfo']['registrar']))
|
||||||
{
|
{
|
||||||
$r['regrinfo']['domain']['registrar'] = $r['regrinfo']['registrar'];
|
$r['regrinfo']['domain']['registrar'] = $r['regrinfo']['registrar'];
|
||||||
|
@ -74,8 +72,7 @@ class it_handler
|
||||||
'registrar' => 'IT-Nic',
|
'registrar' => 'IT-Nic',
|
||||||
'referrer' => 'http://www.nic.it/'
|
'referrer' => 'http://www.nic.it/'
|
||||||
);
|
);
|
||||||
|
return $r;
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd');
|
||||||
|
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'referrer' => 'http://www.jprs.jp',
|
'referrer' => 'http://www.jprs.jp',
|
||||||
'registrar' => 'Japan Registry Services'
|
'registrar' => 'Japan Registry Services'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!$this->deep_whois) return $r;
|
if (!$this->deep_whois) return $r;
|
||||||
|
|
||||||
$r['rawdata'] = $data_str['rawdata'];
|
$r['rawdata'] = $data_str['rawdata'];
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'a. [JPNIC Handle]' => 'handle',
|
'a. [JPNIC Handle]' => 'handle',
|
||||||
'c. [Last, First]' => 'name',
|
'c. [Last, First]' => 'name',
|
||||||
|
@ -74,9 +74,9 @@ class jp_handler extends WhoisClient
|
||||||
'p. [FAX]' => 'fax',
|
'p. [FAX]' => 'fax',
|
||||||
'[Last Update]' => 'changed'
|
'[Last Update]' => 'changed'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->Query['server'] = 'jp.whois-servers.net';
|
$this->Query['server'] = 'jp.whois-servers.net';
|
||||||
|
|
||||||
if (!empty($r['regrinfo']['admin']['handle']))
|
if (!empty($r['regrinfo']['admin']['handle']))
|
||||||
{
|
{
|
||||||
$rwdata = $this->GetRawData('CONTACT '.$r['regrinfo']['admin']['handle'].'/e');
|
$rwdata = $this->GetRawData('CONTACT '.$r['regrinfo']['admin']['handle'].'/e');
|
||||||
|
@ -91,7 +91,7 @@ class jp_handler extends WhoisClient
|
||||||
if (!empty($r['regrinfo']['admin']['handle']) &&
|
if (!empty($r['regrinfo']['admin']['handle']) &&
|
||||||
$r['regrinfo']['admin']['handle'] == $r['regrinfo']['tech']['handle'])
|
$r['regrinfo']['admin']['handle'] == $r['regrinfo']['tech']['handle'])
|
||||||
{
|
{
|
||||||
$r['regrinfo']['tech'] = $r['regrinfo']['admin'];
|
$r['regrinfo']['tech'] = $r['regrinfo']['admin'];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class lt_handler
|
class lt_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$translate = array(
|
$translate = array(
|
||||||
'contact nic-hdl:' => 'handle',
|
'contact nic-hdl:' => 'handle',
|
||||||
'contact name:' => 'name'
|
'contact name:' => 'name'
|
||||||
|
@ -60,8 +58,7 @@ class lt_handler
|
||||||
'referrer' => 'http://www.domreg.lt',
|
'referrer' => 'http://www.domreg.lt',
|
||||||
'registrar' => 'DOMREG.LT'
|
'registrar' => 'DOMREG.LT'
|
||||||
);
|
);
|
||||||
|
return $r;
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__LU_HANDLER__'))
|
||||||
define('__LU_HANDLER__', 1);
|
define('__LU_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -35,7 +32,6 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class lu_handler
|
class lu_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
|
@ -76,9 +72,7 @@ class lu_handler
|
||||||
'referrer' => 'http://www.dns.lu',
|
'referrer' => 'http://www.dns.lu',
|
||||||
'registrar' => 'DNS-LU'
|
'registrar' => 'DNS-LU'
|
||||||
);
|
);
|
||||||
|
return $r;
|
||||||
return ($r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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');
|
require_once('whois.parser.php');
|
||||||
|
|
||||||
if (!defined('__LY_HANDLER__'))
|
if (!defined('__LY_HANDLER__'))
|
||||||
|
@ -34,10 +32,8 @@ if (!defined('__LY_HANDLER__'))
|
||||||
|
|
||||||
class ly_handler
|
class ly_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative Contact:',
|
'admin' => 'Administrative Contact:',
|
||||||
|
@ -57,14 +53,7 @@ class ly_handler
|
||||||
if (!empty($r['regrinfo']['domain']['name']))
|
if (!empty($r['regrinfo']['domain']['name']))
|
||||||
{
|
{
|
||||||
$r['regrinfo'] = get_contacts($r['regrinfo'],$extra);
|
$r['regrinfo'] = get_contacts($r['regrinfo'],$extra);
|
||||||
|
|
||||||
$r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
|
$r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0];
|
||||||
|
|
||||||
$r['regyinfo'] = array(
|
|
||||||
'referrer' => 'http://www.nic.ly',
|
|
||||||
'registrar' => 'Libya ccTLD'
|
|
||||||
);
|
|
||||||
|
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -73,7 +62,11 @@ class ly_handler
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($r);
|
$r['regyinfo'] = array(
|
||||||
|
'referrer' => 'http://www.nic.ly',
|
||||||
|
'registrar' => 'Libya ccTLD'
|
||||||
|
);
|
||||||
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -32,16 +32,16 @@ class Whois extends WhoisClient
|
||||||
{
|
{
|
||||||
// Deep whois ?
|
// Deep whois ?
|
||||||
var $deep_whois = true;
|
var $deep_whois = true;
|
||||||
|
|
||||||
// Windows based ?
|
// Windows based ?
|
||||||
var $windows = false;
|
var $windows = false;
|
||||||
|
|
||||||
// Recursion allowed ?
|
// Recursion allowed ?
|
||||||
var $gtld_recurse = true;
|
var $gtld_recurse = true;
|
||||||
|
|
||||||
// Support for non-ICANN tld's
|
// Support for non-ICANN tld's
|
||||||
var $non_icann = false;
|
var $non_icann = false;
|
||||||
|
|
||||||
// Network Solutions registry server
|
// Network Solutions registry server
|
||||||
var $NSI_REGISTRY = "whois.nsiregistry.net";
|
var $NSI_REGISTRY = "whois.nsiregistry.net";
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ class Whois extends WhoisClient
|
||||||
$this->windows = true;
|
$this->windows = true;
|
||||||
else
|
else
|
||||||
$this->windows = false;
|
$this->windows = false;
|
||||||
|
|
||||||
// Set version
|
// Set version
|
||||||
$this->VERSION = sprintf("phpWhois v%s-%s", $this->CODE_VERSION, $this->DATA_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
|
* Use special whois server
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function UseServer ($tld, $server)
|
function UseServer ($tld, $server)
|
||||||
{
|
{
|
||||||
$this->WHOIS_SPECIAL[$tld] = $server;
|
$this->WHOIS_SPECIAL[$tld] = $server;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lookup query
|
* Lookup query
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function Lookup($query = '', $is_utf = true)
|
function Lookup($query = '', $is_utf = true)
|
||||||
{
|
{
|
||||||
// start clean
|
// start clean
|
||||||
$this->Query = array( 'status' => '' );
|
$this->Query = array( 'status' => '' );
|
||||||
|
|
||||||
$query = trim($query);
|
$query = trim($query);
|
||||||
|
|
||||||
$IDN = new idna_convert();
|
$IDN = new idna_convert();
|
||||||
|
|
||||||
if ($is_utf)
|
if ($is_utf)
|
||||||
$query = $IDN->encode($query);
|
$query = $IDN->encode($query);
|
||||||
else
|
else
|
||||||
$query = $IDN->encode(utf8_encode($query));
|
$query = $IDN->encode(utf8_encode($query));
|
||||||
|
|
||||||
// If domain to query was not set
|
// If domain to query was not set
|
||||||
if (!isSet($query) || $query == '')
|
if (!isSet($query) || $query == '')
|
||||||
{
|
{
|
||||||
|
@ -107,7 +107,7 @@ class Whois extends WhoisClient
|
||||||
{
|
{
|
||||||
// IPv4 Prepare to do lookup via the 'ip' handler
|
// IPv4 Prepare to do lookup via the 'ip' handler
|
||||||
$ip = @gethostbyname($query);
|
$ip = @gethostbyname($query);
|
||||||
|
|
||||||
if (isset($this->WHOIS_SPECIAL['ip']))
|
if (isset($this->WHOIS_SPECIAL['ip']))
|
||||||
{
|
{
|
||||||
$this->Query['server'] = $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);
|
$special_tlds = array_merge($this->WHOIS_SPECIAL,$this->WHOIS_NON_ICANN);
|
||||||
else
|
else
|
||||||
$special_tlds = $this->WHOIS_SPECIAL;
|
$special_tlds = $this->WHOIS_SPECIAL;
|
||||||
|
|
||||||
foreach($tldtests as $tld)
|
foreach($tldtests as $tld)
|
||||||
{
|
{
|
||||||
// Test if we know in advance that no whois server is
|
// Test if we know in advance that no whois server is
|
||||||
|
@ -194,7 +194,7 @@ class Whois extends WhoisClient
|
||||||
if (isset($special_tlds[$tld]))
|
if (isset($special_tlds[$tld]))
|
||||||
{
|
{
|
||||||
$val = $special_tlds[$tld];
|
$val = $special_tlds[$tld];
|
||||||
|
|
||||||
if ($val == '') return $this->Unknown();
|
if ($val == '') return $this->Unknown();
|
||||||
|
|
||||||
$domain = substr($query, 0, - strlen($tld) - 1);
|
$domain = substr($query, 0, - strlen($tld) - 1);
|
||||||
|
@ -203,7 +203,7 @@ class Whois extends WhoisClient
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($server == '')
|
if ($server == '')
|
||||||
foreach($tldtests as $tld)
|
foreach($tldtests as $tld)
|
||||||
{
|
{
|
||||||
|
@ -212,7 +212,7 @@ class Whois extends WhoisClient
|
||||||
// Assumes a valid DNS response indicates a recognised tld (!?)
|
// Assumes a valid DNS response indicates a recognised tld (!?)
|
||||||
|
|
||||||
$cname = $tld.'.whois-servers.net';
|
$cname = $tld.'.whois-servers.net';
|
||||||
|
|
||||||
if (gethostbyname($cname) == $cname) continue;
|
if (gethostbyname($cname) == $cname) continue;
|
||||||
$server = $tld.'.whois-servers.net';
|
$server = $tld.'.whois-servers.net';
|
||||||
break;
|
break;
|
||||||
|
@ -228,21 +228,21 @@ class Whois extends WhoisClient
|
||||||
foreach($tldtests as $htld)
|
foreach($tldtests as $htld)
|
||||||
{
|
{
|
||||||
// special handler exists for the tld ?
|
// special handler exists for the tld ?
|
||||||
|
|
||||||
if (isSet($this->DATA[$htld]))
|
if (isSet($this->DATA[$htld]))
|
||||||
{
|
{
|
||||||
$handler = $this->DATA[$htld];
|
$handler = $this->DATA[$htld];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Regular handler exists for the tld ?
|
// Regular handler exists for the tld ?
|
||||||
if (($fp = @fopen('whois.'.$htld.'.php', 'r', 1)) and fclose($fp))
|
if (($fp = @fopen('whois.'.$htld.'.php', 'r', 1)) and fclose($fp))
|
||||||
{
|
{
|
||||||
$handler = $htld;
|
$handler = $htld;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there is a handler set it
|
// If there is a handler set it
|
||||||
|
|
||||||
if ($handler != '')
|
if ($handler != '')
|
||||||
|
@ -252,10 +252,10 @@ class Whois extends WhoisClient
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special parameters ?
|
// Special parameters ?
|
||||||
|
|
||||||
if (isset($this->WHOIS_PARAM[$server]))
|
if (isset($this->WHOIS_PARAM[$server]))
|
||||||
$this->Query['server'] = $this->Query['server'].'?'.str_replace('$',$domain,$this->WHOIS_PARAM[$server]);
|
$this->Query['server'] = $this->Query['server'].'?'.str_replace('$',$domain,$this->WHOIS_PARAM[$server]);
|
||||||
|
|
||||||
$result = $this->GetData('',$this->deep_whois);
|
$result = $this->GetData('',$this->deep_whois);
|
||||||
$this->Checkdns($result);
|
$this->Checkdns($result);
|
||||||
return $result;
|
return $result;
|
||||||
|
@ -273,10 +273,10 @@ class Whois extends WhoisClient
|
||||||
$this->Query['status'] = 'error';
|
$this->Query['status'] = 'error';
|
||||||
$result['rawdata'][] = $this->Query['errstr'][] = $this->Query['query'].' domain is not supported';
|
$result['rawdata'][] = $this->Query['errstr'][] = $this->Query['query'].' domain is not supported';
|
||||||
$this->Checkdns($result);
|
$this->Checkdns($result);
|
||||||
$this->FixResult($result, $this->Query['query']);
|
$this->FixResult($result, $this->Query['query']);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get nameservers if missing */
|
/* Get nameservers if missing */
|
||||||
|
|
||||||
function Checkdns(&$result)
|
function Checkdns(&$result)
|
||||||
|
@ -293,7 +293,7 @@ class Whois extends WhoisClient
|
||||||
/*
|
/*
|
||||||
* Fix and/or add name server information
|
* Fix and/or add name server information
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function FixResult(&$result, $domain)
|
function FixResult(&$result, $domain)
|
||||||
{
|
{
|
||||||
// Add usual fields
|
// Add usual fields
|
||||||
|
@ -310,7 +310,7 @@ class Whois extends WhoisClient
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normalize nameserver fields
|
// Normalize nameserver fields
|
||||||
|
|
||||||
if (isset($result['regrinfo']['domain']['nserver']))
|
if (isset($result['regrinfo']['domain']['nserver']))
|
||||||
{
|
{
|
||||||
if (!is_array($result['regrinfo']['domain']['nserver']))
|
if (!is_array($result['regrinfo']['domain']['nserver']))
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__ME_HANDLER__'))
|
||||||
define('__ME_HANDLER__', 1);
|
define('__ME_HANDLER__', 1);
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
@ -35,13 +35,13 @@ class mobi_handler
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
|
$r['regrinfo'] = generic_parser_b($data_str['rawdata']);
|
||||||
|
|
||||||
if (!strncmp($data_str['rawdata'][0], 'WHOIS LIMIT EXCEEDED', 20))
|
if (!strncmp($data_str['rawdata'][0], 'WHOIS LIMIT EXCEEDED', 20))
|
||||||
$r['regrinfo']['registered'] = 'unknown';
|
$r['regrinfo']['registered'] = 'unknown';
|
||||||
|
|
||||||
$r['regyinfo']['referrer'] = 'http://www.mtld.mobi/';
|
$r['regyinfo']['referrer'] = 'http://www.mtld.mobi/';
|
||||||
$r['regyinfo']['registrar'] = 'Dot Mobi Registry';
|
$r['regyinfo']['registrar'] = 'Dot Mobi Registry';
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__MX_HANDLER__'))
|
||||||
define('__MX_HANDLER__', 1);
|
define('__MX_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -35,14 +32,13 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class mx_handler
|
class mx_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data_str, $query)
|
function parse($data_str, $query)
|
||||||
{
|
{
|
||||||
$items = array(
|
$items = array(
|
||||||
'owner' => 'Registrant:',
|
'owner' => 'Registrant:',
|
||||||
'admin' => 'Administrative Contact:',
|
'admin' => 'Administrative Contact:',
|
||||||
'tech' => 'Technical Contact:',
|
'tech' => 'Technical Contact:',
|
||||||
'billing' => 'Billing Contact:',
|
'billing' => 'Billing Contact:',
|
||||||
'domain.nserver' => 'Name Servers:',
|
'domain.nserver' => 'Name Servers:',
|
||||||
'domain.created' => 'Created On:',
|
'domain.created' => 'Created On:',
|
||||||
'domain.expires' => 'Expiration Date:',
|
'domain.expires' => 'Expiration Date:',
|
||||||
|
@ -57,20 +53,18 @@ class mx_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
$r['regrinfo'] = easy_parser($data_str['rawdata'],$items,'dmy',$extra);
|
$r['regrinfo'] = easy_parser($data_str['rawdata'],$items,'dmy',$extra);
|
||||||
|
|
||||||
$r['regyinfo'] = array(
|
$r['regyinfo'] = array(
|
||||||
'registrar' => 'NIC Mexico',
|
'registrar' => 'NIC Mexico',
|
||||||
'referrer' => 'http://www.nic.mx/'
|
'referrer' => 'http://www.nic.mx/'
|
||||||
);
|
);
|
||||||
|
|
||||||
if (empty($r['regrinfo']['domain']['created']))
|
if (empty($r['regrinfo']['domain']['created']))
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
else
|
else
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
|
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
?>
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
For the most recent version of this package visit:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Whois.php PHP classes to conduct whois queries
|
||||||
|
|
||||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
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:
|
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.
|
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__'))
|
if (!defined('__NL_HANDLER__'))
|
||||||
define('__NL_HANDLER__', 1);
|
define('__NL_HANDLER__', 1);
|
||||||
|
|
||||||
|
@ -36,10 +32,8 @@ require_once('whois.parser.php');
|
||||||
|
|
||||||
class nl_handler
|
class nl_handler
|
||||||
{
|
{
|
||||||
|
|
||||||
function parse($data, $query)
|
function parse($data, $query)
|
||||||
{
|
{
|
||||||
|
|
||||||
$items = array(
|
$items = array(
|
||||||
'domain.name' => 'Domain name:',
|
'domain.name' => 'Domain name:',
|
||||||
'domain.status' => 'Status:',
|
'domain.status' => 'Status:',
|
||||||
|
@ -50,20 +44,20 @@ class nl_handler
|
||||||
'admin' => 'Administrative contact:',
|
'admin' => 'Administrative contact:',
|
||||||
'tech' => 'Technical contact(s):'
|
'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']['referrer'] = 'http://www.domain-registry.nl';
|
||||||
$r['regyinfo']['registrar'] = 'Stichting Internet Domeinregistratie NL';
|
$r['regyinfo']['registrar'] = 'Stichting Internet Domeinregistratie NL';
|
||||||
|
|
||||||
if (!isset($r['regrinfo']['domain']['status']))
|
if (!isset($r['regrinfo']['domain']['status']))
|
||||||
{
|
{
|
||||||
$r['regrinfo']['registered'] = 'no';
|
$r['regrinfo']['registered'] = 'no';
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($r['regrinfo']['tech']))
|
if (isset($r['regrinfo']['tech']))
|
||||||
$r['regrinfo']['tech'] = $this->get_contact($r['regrinfo']['tech']);
|
$r['regrinfo']['tech'] = $this->get_contact($r['regrinfo']['tech']);
|
||||||
|
|
||||||
if (isset($r['regrinfo']['zone']))
|
if (isset($r['regrinfo']['zone']))
|
||||||
$r['regrinfo']['zone'] = $this->get_contact($r['regrinfo']['zone']);
|
$r['regrinfo']['zone'] = $this->get_contact($r['regrinfo']['zone']);
|
||||||
|
|
||||||
|
@ -72,23 +66,23 @@ class nl_handler
|
||||||
|
|
||||||
if (isset($r['regrinfo']['owner']))
|
if (isset($r['regrinfo']['owner']))
|
||||||
$r['regrinfo']['owner'] = $this->get_contact($r['regrinfo']['owner']);
|
$r['regrinfo']['owner'] = $this->get_contact($r['regrinfo']['owner']);
|
||||||
|
|
||||||
$r['regrinfo']['registered'] = 'yes';
|
$r['regrinfo']['registered'] = 'yes';
|
||||||
format_dates($r, 'dmy');
|
format_dates($r,'dmy');
|
||||||
return ($r);
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_contact($data)
|
function get_contact($data)
|
||||||
{
|
{
|
||||||
$r = get_contact($data);
|
$r = get_contact($data);
|
||||||
|
|
||||||
if (isset($r['name']) && preg_match('/^[A-Z0-9]+-[A-Z0-9]+$/',$r['name']))
|
if (isset($r['name']) && preg_match('/^[A-Z0-9]+-[A-Z0-9]+$/',$r['name']))
|
||||||
{
|
{
|
||||||
$r['handle'] = $r['name'];
|
$r['handle'] = $r['name'];
|
||||||
$r['name'] = array_shift ($r['address']);
|
$r['name'] = array_shift ($r['address']);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue