added gtld handlers for domainpeople,dremhost,fastdomain,marmonitor & names4ever (by Brandon Whaley)
This commit is contained in:
parent
4850f2f889
commit
2b9c1ba60d
5 changed files with 324 additions and 0 deletions
61
src/whois.gtld.domainpeople.php
Normal file
61
src/whois.gtld.domainpeople.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
/*
|
||||
Whois.php PHP classes to conduct whois queries
|
||||
|
||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
||||
|
||||
Maintained by David Saez (david@ols.es)
|
||||
|
||||
For the most recent version of this package visit:
|
||||
|
||||
http://www.phpwhois.org
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* domainpeople.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
|
||||
|
||||
if (!defined('__DOMAINPEOPLE_HANDLER__'))
|
||||
define('__DOMAINPEOPLE_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class domainpeople_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant Contact:',
|
||||
'admin' => 'Administrative Contact:',
|
||||
'tech' => 'Technical Contact:',
|
||||
'domain.name' => 'Domain name:',
|
||||
'domain.sponsor' => 'Registration Service Provided By:',
|
||||
'domain.referrer' => 'Contact:',
|
||||
'domain.nserver.' => 'Name Servers:',
|
||||
'domain.created' => 'Creation date:',
|
||||
'domain.expires' => 'Expiration date:',
|
||||
// 'domain.changed' => 'Record last updated on',
|
||||
'domain.status' => 'Status:'
|
||||
);
|
||||
|
||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||
return ($r);
|
||||
}
|
||||
}
|
||||
?>
|
58
src/whois.gtld.dreamhost.php
Normal file
58
src/whois.gtld.dreamhost.php
Normal file
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
/*
|
||||
Whois.php PHP classes to conduct whois queries
|
||||
|
||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
||||
|
||||
Maintained by David Saez (david@ols.es)
|
||||
|
||||
For the most recent version of this package visit:
|
||||
|
||||
http://www.phpwhois.org
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* dreamhost.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
|
||||
|
||||
if (!defined('__DREAMHOST_HANDLER__'))
|
||||
define('__DREAMHOST_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class dreamhost_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant Contact:',
|
||||
'admin' => 'Administrative Contact:',
|
||||
'tech' => 'Technical Contact:',
|
||||
'billing' => 'Billing Contact:',
|
||||
'domain.name' => 'Domain Name:',
|
||||
'domain.nserver' => 'Domain servers in listed order:',
|
||||
'domain.created' => 'Record created on',
|
||||
'domain.expires' => 'Record expires on'
|
||||
);
|
||||
//print_r($data_str);
|
||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||
return ($r);
|
||||
}
|
||||
}
|
||||
?>
|
86
src/whois.gtld.fastdomain.php
Normal file
86
src/whois.gtld.fastdomain.php
Normal file
|
@ -0,0 +1,86 @@
|
|||
<?php
|
||||
/*
|
||||
Whois.php PHP classes to conduct whois queries
|
||||
|
||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
||||
|
||||
Maintained by David Saez (david@ols.es)
|
||||
|
||||
For the most recent version of this package visit:
|
||||
|
||||
http://www.phpwhois.org
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* fastdomain.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
|
||||
|
||||
if (!defined('__FASTDOMAIN_HANDLER__'))
|
||||
define('__FASTDOMAIN_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class fastdomain_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant Info:',
|
||||
'admin' => 'Administrative Info:',
|
||||
'tech' => 'Technical Info:',
|
||||
'domain.name' => 'Domain Name:',
|
||||
'domain.sponsor' => 'Provider Name....:',
|
||||
'domain.referrer' => 'Provider Homepage:',
|
||||
'domain.nserver' => 'Domain servers in listed order:',
|
||||
'domain.created' => 'Created on..............:',
|
||||
'domain.expires' => 'Expires on..............:',
|
||||
'domain.changed' => 'Last modified on........:',
|
||||
'domain.status' => 'Status:'
|
||||
);
|
||||
|
||||
//print_r($data_str);
|
||||
while (list($key, $val) = each($data_str))
|
||||
{
|
||||
$faststr = strpos($val, ' (FAST-');
|
||||
if($faststr)
|
||||
{
|
||||
$data_str[$key] = substr($val, 0, $faststr);
|
||||
}
|
||||
}
|
||||
|
||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||
|
||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||
if (isset($r['domain']['nserver']))
|
||||
{
|
||||
reset($r['domain']['nserver']);
|
||||
$endnserver = false;
|
||||
while (list($key, $val) = each($r['domain']['nserver']))
|
||||
{
|
||||
if($val == '=-=-=-=')
|
||||
$endnserver = true;
|
||||
if($endnserver)
|
||||
unset($r['domain']['nserver'][$key]);
|
||||
}
|
||||
}
|
||||
// print_r($r);
|
||||
return ($r);
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
59
src/whois.gtld.markmonitor.php
Normal file
59
src/whois.gtld.markmonitor.php
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
/*
|
||||
Whois.php PHP classes to conduct whois queries
|
||||
|
||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
||||
|
||||
Maintained by David Saez (david@ols.es)
|
||||
|
||||
For the most recent version of this package visit:
|
||||
|
||||
http://www.phpwhois.org
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* markmonitor.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
|
||||
|
||||
if (!defined('__MARKMONITOR_HANDLER__'))
|
||||
define('__MARKMONITOR_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class markmonitor_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative Contact:',
|
||||
'tech' => 'Technical Contact, Zone Contact:',
|
||||
'domain.name' => 'Domain Name:',
|
||||
'domain.sponsor' => 'Registrar Name:',
|
||||
'domain.nserver' => 'Domain servers in listed order:',
|
||||
'domain.created' => 'Created on..............:',
|
||||
'domain.expires' => 'Expires on..............:',
|
||||
'domain.changed' => 'Record last updated on..:'
|
||||
);
|
||||
//print_r($data_str);
|
||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||
return ($r);
|
||||
}
|
||||
}
|
||||
?>
|
60
src/whois.gtld.names4ever.php
Normal file
60
src/whois.gtld.names4ever.php
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
/*
|
||||
Whois.php PHP classes to conduct whois queries
|
||||
|
||||
Copyright (C)1999,2005 easyDNS Technologies Inc. & Mark Jeftovic
|
||||
|
||||
Maintained by David Saez (david@ols.es)
|
||||
|
||||
For the most recent version of this package visit:
|
||||
|
||||
http://www.phpwhois.org
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* names4ever.whois 1.0 Brandon Whaley <redkrieg@gmail.com> */
|
||||
|
||||
if (!defined('__NAMES4EVER_HANDLER__'))
|
||||
define('__NAMES4EVER_HANDLER__', 1);
|
||||
|
||||
require_once('whois.parser.php');
|
||||
|
||||
class names4ever_handler
|
||||
{
|
||||
|
||||
function parse($data_str, $query)
|
||||
{
|
||||
|
||||
$items = array(
|
||||
'owner' => 'Registrant:',
|
||||
'admin' => 'Administrative Contact',
|
||||
'tech' => 'Technical Contact',
|
||||
'domain.name' => 'Domain Name:',
|
||||
'domain.sponsor' => 'Registrar of Record:',
|
||||
'domain.nserver' => 'Domain servers in listed order:',
|
||||
'domain.created' => 'Record created on',
|
||||
'domain.expires' => 'Record expires on',
|
||||
'domain.changed' => 'Record last updated on',
|
||||
'domain.status' => 'Domain status:'
|
||||
);
|
||||
//print_r($data_str);
|
||||
$r = easy_parser($data_str, $items, 'dmy', false, false, true);
|
||||
if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor']))
|
||||
$r['domain']['sponsor'] = $r['domain']['sponsor'][0];
|
||||
return ($r);
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in a new issue