fixed .se registration detection

This commit is contained in:
sparc 2005-10-10 14:49:47 +00:00
parent 353708fb82
commit 9a9e19ce6f
2 changed files with 15 additions and 12 deletions

View file

@ -1,7 +1,8 @@
2005/10/10 David Saez <david@ols.es> 2005/10/10 David Saez <david@ols.es>
- fixed some short tags in example.php, - fixed some short tags in example.php,
fixed queries to .net whois server, fixed queries to .net whois server,
added support for .pe domains added support for .pe domains,
fixed .se registration detection
thanx to Speedywise thanx to Speedywise
2005/10/09 Released phpWhois 4.0.1 2005/10/09 Released phpWhois 4.0.1

View file

@ -29,8 +29,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/* senic.whois 0.99 Stefan Alfredsson <stefan@alfredsson.org> */ /* senic.whois 0.99 Stefan Alfredsson <stefan@alfredsson.org> */
/* Based upon uknic.whois by David Saez Padros */ /* Based upon uknic.whois by David Saez Padros */
if (!defined("__SE_HANDLER__")) if (!defined('__SE_HANDLER__'))
define("__SE_HANDLER__", 1); define('__SE_HANDLER__', 1);
require_once('whois.parser.php'); require_once('whois.parser.php');
@ -40,19 +40,21 @@ class se_handler
function parse($data_str, $query) function parse($data_str, $query)
{ {
$items = array( $items = array(
"*domainname.name:" => "domain.name", '*domainname.name:' => 'domain.name',
"*domainname.status:" => "domain.status", '*domainname.status:' => 'domain.status',
"*domainname.date_to_delete:" => "domain.expires", '*domainname.date_to_delete:' => 'domain.expires',
" NS " => "domain.nserver." ' NS ' => 'domain.nserver.'
); );
$r["regyinfo"] = array( $r['regyinfo'] = array(
"referrer" => "http://www.nic-se.se", 'referrer' => 'http://www.nic-se.se',
"registrar" => "NIC-SE" 'registrar' => 'NIC-SE'
); );
$r["regrinfo"] = generic_parser_b($data_str["rawdata"], $items); $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'mdy', false);
$r['regrinfo']['registered'] = isset($r['regrinfo']['domain']['name']) ? 'yes' : 'no';
return ($r); return ($r);
} }