diff options
author | Ermal <eri@pfsense.org> | 2014-04-14 10:20:51 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-04-14 10:20:51 +0000 |
commit | d2bdd53a94cb9efe995cbb637afbd4524d5a9cbe (patch) | |
tree | d51888b7310cc21eb024cf7b6f220f1b61126289 | |
parent | 69a5d970652257d380badf5c583c2b2b95e2e426 (diff) | |
parent | f4065455b05ef718c09b4851212b79e7993baaa5 (diff) | |
download | pfsense-d2bdd53a94cb9efe995cbb637afbd4524d5a9cbe.zip pfsense-d2bdd53a94cb9efe995cbb637afbd4524d5a9cbe.tar.gz |
Merge pull request #1073 from phil-davis/patch-1
-rw-r--r-- | usr/local/www/services_dyndns_edit.php | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php index adc6710..abb91ed 100644 --- a/usr/local/www/services_dyndns_edit.php +++ b/usr/local/www/services_dyndns_edit.php @@ -248,6 +248,7 @@ function _onTypeChange(type){ echo "selected"; echo ">{$ifdesc}</option>\n"; } + unset($iflist); $grouplist = return_gateway_groups_array(); foreach ($grouplist as $name => $group) { echo "<option value=\"{$name}\""; @@ -255,19 +256,34 @@ function _onTypeChange(type){ echo "selected"; echo ">GW Group {$name}</option>\n"; } + unset($grouplist); ?> </select> </td> </td> </tr> <tr id="_requestiftr"> - <td width="22%" valign="top" class="vncellreq"><?=gettext("Interface to send update from");?></td> - <td width="78%" class="vtable"> - <select name="requestif" class="formselect" id="requestif"> - <?php $iflist = get_configured_interface_with_descr(); - foreach ($iflist as $if => $ifdesc):?> - <option value="<?=$if;?>" <?php if ($pconfig['requestif'] == $if) echo "selected";?>><?=$ifdesc;?></option> - <?php endforeach; ?> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Interface to send update from");?></td> + <td width="78%" class="vtable"> + <select name="requestif" class="formselect" id="requestif"> + <?php + $iflist = get_configured_interface_with_descr(); + foreach ($iflist as $if => $ifdesc) { + echo "<option value=\"{$if}\""; + if ($pconfig['requestif'] == $if) + echo "selected"; + echo ">{$ifdesc}</option>\n"; + } + unset($iflist); + $grouplist = return_gateway_groups_array(); + foreach ($grouplist as $name => $group) { + echo "<option value=\"{$name}\""; + if ($pconfig['requestif'] == $name) + echo "selected"; + echo ">GW Group {$name}</option>\n"; + } + unset($grouplist); + ?> </select> <br/><?= gettext("Note: This is almost always the same as the Interface to Monitor.");?> </td> |