diff options
author | Ermal Luçi <eri@pfsense.org> | 2014-01-06 06:35:20 -0800 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2014-01-06 06:35:20 -0800 |
commit | 30e2adbc04d37bf66bd4e0cce675d12fd3120f5a (patch) | |
tree | 95114e0bb45981fb6fdb38b6b58fde4a765ed8c5 | |
parent | 7ad4b9b70bdcb9b438792f7a6954bbdd416aa2e6 (diff) | |
parent | 8f56dd279432c4fd5a027310622e2650822e4651 (diff) | |
download | pfsense-30e2adbc04d37bf66bd4e0cce675d12fd3120f5a.zip pfsense-30e2adbc04d37bf66bd4e0cce675d12fd3120f5a.tar.gz |
Merge pull request #871 from phildd/master
Dynamic DNS: List GWGs in Interface to send update from
-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 ac5ada6..67da1ad 100644 --- a/usr/local/www/services_dyndns_edit.php +++ b/usr/local/www/services_dyndns_edit.php @@ -254,6 +254,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}\""; @@ -261,19 +262,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> |