summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dyndns_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-16 13:35:52 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-16 13:35:52 -0500
commitcb60f45d19fd59dd70283365dfca5adecf9ea6ee (patch)
tree7c0e7616f9d2fbc4f83a5a9582e9553ec31fa45b /src/usr/local/www/services_dyndns_edit.php
parent608bb6628c2b3df777971fd54252b6603cfb1490 (diff)
parent6e3488e958f8f1e548962a7f07cca8f45f106a46 (diff)
downloadpfsense-cb60f45d19fd59dd70283365dfca5adecf9ea6ee.zip
pfsense-cb60f45d19fd59dd70283365dfca5adecf9ea6ee.tar.gz
Merge pull request #2252 from phil-davis/r013
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 2dc5030..7330874 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