diff --git a/Changes.md b/Changes.md index 3ef64ed..199cab3 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,6 @@ +2008/07/08 + - added handler for .su + 2008/06/30 - added handler for .fi diff --git a/src/whois.su.php b/src/whois.su.php new file mode 100644 index 0000000..e5516df --- /dev/null +++ b/src/whois.su.php @@ -0,0 +1,68 @@ + 2007/01/25 */ + +if (!defined('__SU_HANDLER__')) + define('__SU_HANDLER__', 1); + +require_once('whois.parser.php'); + +class su_handler + { + + function parse($data_str, $query) + { + $items = array( + 'domain:' => 'domain.name', + 'state:' => 'domain.status', + 'person:' => 'owner.name', + 'phone:' => 'owner.phone', + 'e-mail:' => 'owner.email', + 'created:' => 'domain.created', + 'paid-till:' => 'domain.expires', +/* + 'nserver:' => 'domain.nserver.', + 'source:' => 'domain.source', + 'type:' => 'owner.type', + 'org:' => 'owner.organization', + 'fax-no:' => 'owner.fax', +*/ + ); + + $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'dmy'); + + $r['regyinfo'] = array( + 'referrer' => 'http://www.ripn.net', + 'registrar' => 'RUCENTER-REG-RIPN' + ); + + return ($r); + } + } + +?> diff --git a/test.txt b/test.txt index 484596a..41c9cab 100644 --- a/test.txt +++ b/test.txt @@ -32,6 +32,7 @@ pt dns.pt ru nic.ru sc admin.sc se nic-se.se +su news.su uk olsns.co.uk us neustar.us ws samoanic.ws