changeset 170 | 391e744a1def |
parent 161 | 0832d846bf8e |
child 174 | a17ec7de4bbb |
169:41353c2e0c9f | 170:391e744a1def |
---|---|
54 $error = "1"; |
54 $error = "1"; |
55 } |
55 } |
56 } |
56 } |
57 |
57 |
58 if (!$error) { |
58 if (!$error) { |
59 if (!is_valid_domain($domain)) { |
59 if (!is_valid_hostname_fqdn($domain)) { |
60 error(ERR_DOMAIN_INVALID); |
60 error(ERR_DOMAIN_INVALID); |
61 $error = "1"; |
61 $error = "1"; |
62 } elseif (domain_exists($domain)) { |
62 } elseif (domain_exists($domain)) { |
63 error(ERR_DOMAIN_EXISTS); |
63 error(ERR_DOMAIN_EXISTS); |
64 $error = "1"; |
64 $error = "1"; |