|
@@ 89-91 (lines=3) @@
|
| 86 |
|
$aErr['email'] = true; |
| 87 |
|
} |
| 88 |
|
$postcorpname = filter_input(INPUT_POST, 'corpname', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 89 |
|
if ($this->customer['validate_corpname'] && (empty($postcorpname) || strlen(trim($postcorpname)) < 3)) { |
| 90 |
|
$aErr['corpname'] = true; |
| 91 |
|
} |
| 92 |
|
$postname = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 93 |
|
if ($this->customer['validate_name'] && (empty($postname) || strlen(trim($postname)) < 3)) { |
| 94 |
|
$aErr['name'] = true; |
|
@@ 93-95 (lines=3) @@
|
| 90 |
|
$aErr['corpname'] = true; |
| 91 |
|
} |
| 92 |
|
$postname = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 93 |
|
if ($this->customer['validate_name'] && (empty($postname) || strlen(trim($postname)) < 3)) { |
| 94 |
|
$aErr['name'] = true; |
| 95 |
|
} |
| 96 |
|
$poststreet = filter_input(INPUT_POST, 'street', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 97 |
|
if ($this->customer['validate_street'] && (empty($poststreet) || strlen(trim($poststreet)) < 3)) { |
| 98 |
|
$aErr['street'] = true; |
|
@@ 97-99 (lines=3) @@
|
| 94 |
|
$aErr['name'] = true; |
| 95 |
|
} |
| 96 |
|
$poststreet = filter_input(INPUT_POST, 'street', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 97 |
|
if ($this->customer['validate_street'] && (empty($poststreet) || strlen(trim($poststreet)) < 3)) { |
| 98 |
|
$aErr['street'] = true; |
| 99 |
|
} |
| 100 |
|
$postzip = filter_input(INPUT_POST, 'zip', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 101 |
|
if ($this->customer['validate_zip'] && (empty($postzip) || strlen(trim($postzip)) < 4)) { |
| 102 |
|
$aErr['zip'] = true; |
|
@@ 101-103 (lines=3) @@
|
| 98 |
|
$aErr['street'] = true; |
| 99 |
|
} |
| 100 |
|
$postzip = filter_input(INPUT_POST, 'zip', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 101 |
|
if ($this->customer['validate_zip'] && (empty($postzip) || strlen(trim($postzip)) < 4)) { |
| 102 |
|
$aErr['zip'] = true; |
| 103 |
|
} |
| 104 |
|
$posttown = filter_input(INPUT_POST, 'town', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 105 |
|
if ($this->customer['validate_town'] && (empty($posttown) || strlen(trim($posttown)) < 3)) { |
| 106 |
|
$aErr['town'] = true; |
|
@@ 105-107 (lines=3) @@
|
| 102 |
|
$aErr['zip'] = true; |
| 103 |
|
} |
| 104 |
|
$posttown = filter_input(INPUT_POST, 'town', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 105 |
|
if ($this->customer['validate_town'] && (empty($posttown) || strlen(trim($posttown)) < 3)) { |
| 106 |
|
$aErr['town'] = true; |
| 107 |
|
} |
| 108 |
|
$postphone = filter_input(INPUT_POST, 'phone', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 109 |
|
if ($this->customer['validate_phone'] && (empty($postphone) || strlen(trim($postphone)) < 6)) { |
| 110 |
|
$aErr['phone'] = true; |
|
@@ 109-111 (lines=3) @@
|
| 106 |
|
$aErr['town'] = true; |
| 107 |
|
} |
| 108 |
|
$postphone = filter_input(INPUT_POST, 'phone', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 109 |
|
if ($this->customer['validate_phone'] && (empty($postphone) || strlen(trim($postphone)) < 6)) { |
| 110 |
|
$aErr['phone'] = true; |
| 111 |
|
} |
| 112 |
|
$postcellphone = filter_input(INPUT_POST, 'cellphone', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 113 |
|
if ($this->customer['validate_cellphone'] && (empty($postcellphone) || strlen(trim($postcellphone)) < 11)) { |
| 114 |
|
$aErr['cellphone'] = true; |
|
@@ 113-115 (lines=3) @@
|
| 110 |
|
$aErr['phone'] = true; |
| 111 |
|
} |
| 112 |
|
$postcellphone = filter_input(INPUT_POST, 'cellphone', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 113 |
|
if ($this->customer['validate_cellphone'] && (empty($postcellphone) || strlen(trim($postcellphone)) < 11)) { |
| 114 |
|
$aErr['cellphone'] = true; |
| 115 |
|
} |
| 116 |
|
$postfax = filter_input(INPUT_POST, 'fax', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 117 |
|
if ($this->customer['validate_fax'] && (empty($postfax) || strlen(trim($postfax)) < 6)) { |
| 118 |
|
$aErr['fax'] = true; |
|
@@ 117-119 (lines=3) @@
|
| 114 |
|
$aErr['cellphone'] = true; |
| 115 |
|
} |
| 116 |
|
$postfax = filter_input(INPUT_POST, 'fax', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 117 |
|
if ($this->customer['validate_fax'] && (empty($postfax) || strlen(trim($postfax)) < 6)) { |
| 118 |
|
$aErr['fax'] = true; |
| 119 |
|
} |
| 120 |
|
$postcountry = filter_input(INPUT_POST, 'country', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW); |
| 121 |
|
if ($this->customer['validate_country'] && (empty($postcountry) || !isset($this->countries['countries_' .$sLang][$postcountry]))) { |
| 122 |
|
$aErr['country'] = true; |