~vcs-imports/domainhunter/trunk

« back to all changes in this revision

Viewing changes to whois_class.php

  • Committer: bmericc
  • Date: 2007-11-20 21:28:38 UTC
  • Revision ID: vcs-imports@canonical.com-20071120212838-dh4vcw415urkq9m6
whois class modification

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                        $this->msg = "Only letters, numbers and hyphens (-) are valid!";
52
52
                }
53
53
        }
54
 
        function check_entry() {
 
54
        function create_domain() {
55
55
                if (preg_match("/^([A-Za-z0-9]+(\-?[A-za-z0-9]*)){2,63}$/", $this->domain)) {
56
 
                        return true;
57
 
                } else {
58
 
                        return false;
59
 
                }
60
 
        }
61
 
        function create_domain() {
62
 
                if ($this->check_entry()) {
63
56
                        $this->domain = strtolower($this->domain);
64
57
                        $this->compl_domain = $this->domain.".".$this->tld;
65
58
                        return true;