$packages_list_array["CANHASSUBDOMAIN"] = ""; } else { $packages_list_array["CANHASSUBDOMAIN"] = '<option value="sub">Subdomain</option>'; } $maincontent = style::replaceVar("tpl/order/packages-list.tpl", $packages_list_array); } else { if ($_POST['submitfinish']) { check::empty_fields(array("coupon")); if (main::errors()) { $order_form_array['ERRORS'] = style::replaceVar("tpl/order/errors.tpl", array()) . "<br><br>"; } else { //We don't check that the TOS is checked because it will be seen as an empty field and get caught by check:empty_fields. if (!check::user($postvar['username'])) { main::errors(nl2br("The username was either taken or was in an invalid format.\n\n Usernames:\n 1.) Must be between 4-8 characters long\n 2.) Must not start with a number\n 3.) Must be alphanumeric")); } if (!check::pass($postvar['password'], $postvar['confirmp'])) { main::errors(nl2br("Your passwords either do not match or contain invalid characters. (< and > are not allowed. O>.<O Nor is #")); } if (!check::email($postvar['email'])) { main::errors(nl2br("Your email address didn't match one or more of the following:\n\n Your email address:\n 1.) Must be in the correct format\n 2.) Must not be associated with another client\n 3.) If you're using an email address hosted with us, please make sure your email address has the proper \"MX\" or \"A\" DNS record.")); } if (!check::firstname($postvar['firstname'])) { main::errors(nl2br("In our system, your first and last name may only contain letters and the following characters:.' - and space.")); } if (!check::lastname($postvar['lastname'])) { main::errors(nl2br("In our system, your first and last name may only contain letters and the following characters:.' - and space.")); } if (!check::address($postvar['address'])) { main::errors(nl2br("Your address may only contain letters, numbers and the following characters:.- and space.")); } if (!check::city($postvar['city'])) {