@@ -198,13 +198,27 @@ discard block |
||
198 | 198 | |
199 | 199 | if (!$date->checkDateFormat($new_expiry_date) || $new_pcid == "" || $new_dnsid == "" || $new_ipid == "" || $new_whid == "" || $new_raid == "" || $new_pcid == "0" || $new_dnsid == "0" || $new_ipid == "0" || $new_whid == "0" || $new_raid == "0" || $has_existing_domains == '1') { |
200 | 200 | |
201 | - if ($has_existing_domains == '1') $_SESSION['s_message_danger'] .= "At least one of the domains you entered already exists in " . SOFTWARE_TITLE . ".<BR><BR>You should run the domain list through a Segment filter to determine which one(s).<BR>"; |
|
202 | - if (!$date->checkDateFormat($new_expiry_date)) $_SESSION['s_message_danger'] .= "You have entered an invalid expiry date<BR>"; |
|
203 | - if ($new_pcid == "" || $new_pcid == "0") $_SESSION['s_message_danger'] .= "Please choose the new Category<BR>"; |
|
204 | - if ($new_dnsid == "" || $new_dnsid == "0") $_SESSION['s_message_danger'] .= "Please choose the new DNS Profile<BR>"; |
|
205 | - if ($new_ipid == "" || $new_ipid == "0") $_SESSION['s_message_danger'] .= "Please choose the new IP Address<BR>"; |
|
206 | - if ($new_whid == "" || $new_whid == "0") $_SESSION['s_message_danger'] .= "Please choose the new Web Hosting Provider<BR>"; |
|
207 | - if ($new_raid == "" || $new_raid == "0") $_SESSION['s_message_danger'] .= "Please choose the new Registrar Account<BR>"; |
|
201 | + if ($has_existing_domains == '1') { |
|
202 | + $_SESSION['s_message_danger'] .= "At least one of the domains you entered already exists in " . SOFTWARE_TITLE . ".<BR><BR>You should run the domain list through a Segment filter to determine which one(s).<BR>"; |
|
203 | + } |
|
204 | + if (!$date->checkDateFormat($new_expiry_date)) { |
|
205 | + $_SESSION['s_message_danger'] .= "You have entered an invalid expiry date<BR>"; |
|
206 | + } |
|
207 | + if ($new_pcid == "" || $new_pcid == "0") { |
|
208 | + $_SESSION['s_message_danger'] .= "Please choose the new Category<BR>"; |
|
209 | + } |
|
210 | + if ($new_dnsid == "" || $new_dnsid == "0") { |
|
211 | + $_SESSION['s_message_danger'] .= "Please choose the new DNS Profile<BR>"; |
|
212 | + } |
|
213 | + if ($new_ipid == "" || $new_ipid == "0") { |
|
214 | + $_SESSION['s_message_danger'] .= "Please choose the new IP Address<BR>"; |
|
215 | + } |
|
216 | + if ($new_whid == "" || $new_whid == "0") { |
|
217 | + $_SESSION['s_message_danger'] .= "Please choose the new Web Hosting Provider<BR>"; |
|
218 | + } |
|
219 | + if ($new_raid == "" || $new_raid == "0") { |
|
220 | + $_SESSION['s_message_danger'] .= "Please choose the new Registrar Account<BR>"; |
|
221 | + } |
|
208 | 222 | |
209 | 223 | $submission_failed = 1; |
210 | 224 | |
@@ -2267,13 +2281,17 @@ discard block |
||
2267 | 2281 | |
2268 | 2282 | // Auto Renewal |
2269 | 2283 | echo $form->showRadioTop('Auto Renewal?', '', ''); |
2270 | - if ($new_autorenew == '') $new_autorenew = '1'; |
|
2284 | + if ($new_autorenew == '') { |
|
2285 | + $new_autorenew = '1'; |
|
2286 | + } |
|
2271 | 2287 | echo $form->showRadioOption('new_autorenew', '1', 'Yes', $new_autorenew, '<BR>', ' '); |
2272 | 2288 | echo $form->showRadioOption('new_autorenew', '0', 'No', $new_autorenew, '', ''); |
2273 | 2289 | echo $form->showRadioBottom(''); |
2274 | 2290 | |
2275 | 2291 | // WHOIS Privacy Status |
2276 | - if ($new_privacy == '') $new_privacy = '1'; |
|
2292 | + if ($new_privacy == '') { |
|
2293 | + $new_privacy = '1'; |
|
2294 | + } |
|
2277 | 2295 | echo $form->showRadioTop('Privacy Enabled?', '', ''); |
2278 | 2296 | echo $form->showRadioOption('new_privacy', '1', 'Yes', $new_privacy, '<BR>', ' '); |
2279 | 2297 | echo $form->showRadioOption('new_privacy', '0', 'No', $new_privacy, '', ''); |
@@ -44,14 +44,14 @@ |
||
44 | 44 | $del = $_GET['del']; |
45 | 45 | $really_del = $_GET['really_del']; |
46 | 46 | |
47 | -$sslcid = (integer)$_REQUEST['sslcid']; |
|
48 | -$new_domain_id = (integer)$_POST['new_domain_id']; |
|
47 | +$sslcid = (integer) $_REQUEST['sslcid']; |
|
48 | +$new_domain_id = (integer) $_POST['new_domain_id']; |
|
49 | 49 | $new_name = $_POST['new_name']; |
50 | -$new_type_id = (integer)$_POST['new_type_id']; |
|
51 | -$new_ip_id = (integer)$_POST['new_ip_id']; |
|
52 | -$new_cat_id = (integer)$_POST['new_cat_id']; |
|
50 | +$new_type_id = (integer) $_POST['new_type_id']; |
|
51 | +$new_ip_id = (integer) $_POST['new_ip_id']; |
|
52 | +$new_cat_id = (integer) $_POST['new_cat_id']; |
|
53 | 53 | $new_expiry_date = $_POST['new_expiry_date']; |
54 | -$new_account_id = (integer)$_POST['new_account_id']; |
|
54 | +$new_account_id = (integer) $_POST['new_account_id']; |
|
55 | 55 | $new_active = $_POST['new_active']; |
56 | 56 | $new_notes = $_POST['new_notes']; |
57 | 57 |
@@ -1082,7 +1082,7 @@ |
||
1082 | 1082 | FROM settings")->fetch(); |
1083 | 1083 | |
1084 | 1084 | $_SESSION['s_system_full_url'] = $result->full_url; |
1085 | - $_SESSION['s_system_db_version'] = (string)$result->db_version; |
|
1085 | + $_SESSION['s_system_db_version'] = (string) $result->db_version; |
|
1086 | 1086 | $_SESSION['s_system_email_address'] = $result->email_address; |
1087 | 1087 | $_SESSION['s_system_default_category_domains'] = $result->default_category_domains; |
1088 | 1088 | $_SESSION['s_system_default_category_ssl'] = $result->default_category_ssl; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $pdo = $system->db(); |
42 | 42 | $system->authCheck(); |
43 | 43 | |
44 | -$did = (integer)$_REQUEST['did']; |
|
44 | +$did = (integer) $_REQUEST['did']; |
|
45 | 45 | |
46 | 46 | $del = $_GET['del']; |
47 | 47 | $really_del = $_GET['really_del']; |