summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-16 23:16:58 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-16 23:16:58 +0545
commit6e3488e958f8f1e548962a7f07cca8f45f106a46 (patch)
treefaa73d19c44557e5de589a0384f3f9e64af948ab /src/usr/local/www/services_dyndns_edit.php
parente84865c8c5d72b44000aee8c1c3cf97c22686f9d (diff)
downloadpfsense-6e3488e958f8f1e548962a7f07cca8f45f106a46.zip
pfsense-6e3488e958f8f1e548962a7f07cca8f45f106a46.tar.gz
Code style services dhcp dnsmasq dyndns
Diffstat (limited to 'src/usr/local/www/services_dyndns_edit.php')
-rw-r--r--src/usr/local/www/services_dyndns_edit.php19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php
index 707dfc3..57cdbc7 100644
--- a/src/usr/local/www/services_dyndns_edit.php
+++ b/src/usr/local/www/services_dyndns_edit.php
@@ -217,8 +217,9 @@ function build_type_list() {
$vals = explode(" ", DYNDNS_PROVIDER_VALUES);
$typelist = array();
- for ($j = 0; $j < count($vals); $j++)
+ for ($j = 0; $j < count($vals); $j++) {
$typelist[$vals[$j]] = htmlspecialchars($types[$j]);
+ }
return($typelist);
}
@@ -228,15 +229,17 @@ function build_if_list() {
$iflist = get_configured_interface_with_descr();
- foreach ($iflist as $if => $ifdesc)
+ foreach ($iflist as $if => $ifdesc) {
$list[$if] = $ifdesc;
+ }
unset($iflist);
$grouplist = return_gateway_groups_array();
- foreach ($grouplist as $name => $group)
+ foreach ($grouplist as $name => $group) {
$list[$name] = 'GW Group ' . $name;
+ }
unset($grouplist);
@@ -246,11 +249,13 @@ function build_if_list() {
$pgtitle = array(gettext("Services"), gettext("Dynamic DNS"), gettext("Dynamic DNS Client"), gettext("Edit"));
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
-if ($savemsg)
+if ($savemsg) {
print_info_box($savemsg, 'success');
+}
$form = new Form;
@@ -418,7 +423,7 @@ print($form);
events.push(function() {
function setVisible(service) {
- switch(service) {
+ switch (service) {
case "custom" :
case "custom-v6" :
hideInput('resultmatch', false);
@@ -463,7 +468,7 @@ events.push(function() {
// When the 'Service type" selector is changed, we show/hide certain elements
$('#type').on('change', function() {
- setVisible( this.value );
+ setVisible(this.value);
});
// ---------- On initial page load ------------------------------------------------------------
OpenPOWER on IntegriCloud