* @package AgileBill * @version 1.4.93 */ class plgn_whois_SUBDOMAIN { function check($domain,$tld,$tld_array) { // check the domain validity: if(!eregi('^[a-zA-Z0-9\-]{1,}$', $domain)) return false; if(eregi('[-]{2,}', $domain)) return false; if(eregi('^[-]{1,}', $domain)) return false; if(eregi('[-]{1,}$', $domain)) return false; $db = &DB(); $dbm = new CORE_database; $sql = $dbm->sql_select('service', 'id', "domain_name = ::$domain:: AND domain_tld = ::$tld::","", $db); $rs = $db->Execute($sql); if($rs == false || $rs->RecordCount() > 0) return false; else return true; } function check_transfer($domain,$tld,$tld_array) { return false; } // not implemented function details() { return false; } } ?>