diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-14 20:20:16 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-14 20:20:16 +0545 |
commit | 947141fd21b4496d8963d1598d6ca6a2e000702c (patch) | |
tree | c4f39f94d05059417f3e5743fc7c826ea52657fc /src/usr/local/www/diag_dns.php | |
parent | 9ba351c17e4c85e01832e38b6ba7b6a7898a290d (diff) | |
download | pfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.zip pfsense-947141fd21b4496d8963d1598d6ca6a2e000702c.tar.gz |
Code style usr local www a-e
Diffstat (limited to 'src/usr/local/www/diag_dns.php')
-rwxr-xr-x | src/usr/local/www/diag_dns.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php index 679370d..1ac0d17 100755 --- a/src/usr/local/www/diag_dns.php +++ b/src/usr/local/www/diag_dns.php @@ -99,8 +99,9 @@ if (isset($_POST['create_alias']) && (is_hostname($host) || is_ipaddr($host))) { $isfirst = true; foreach ($resolved as $re) { if ($re != "") { - if (!$isfirst) + if (!$isfirst) { $addresses .= " "; + } $addresses .= rtrim($re) . "/32"; $isfirst = false; } @@ -211,13 +212,15 @@ function display_host_results ($address, $hostname, $dns_speeds) { include("head.inc"); /* Display any error messages resulting from user input */ -if ($input_errors) +if ($input_errors) { print_input_errors($input_errors); -else if (!$resolved && $type) +} else if (!$resolved && $type) { print('<div class="alert alert-warning" role="alert">' . gettext("Host") .' "'. $host .'" '. gettext("could not be resolved") . '</div>'); +} -if ($createdalias) +if ($createdalias) { print('<div class="alert alert-success" role="alert">'.gettext("Alias was created/updated successfully").'</div>'); +} $form = new Form('Lookup'); $section = new Form_Section('DNS Lookup'); |