diff options
author | smos <seth.mos@dds.nl> | 2012-06-02 21:48:51 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-06-02 21:48:51 +0200 |
commit | 3e1eec5850cdd50974190146459c9361fe156ff5 (patch) | |
tree | ea98be9a8fba9ae233f70e0b7b623ce9160f8c98 /usr/local/www/services_dyndns_edit.php | |
parent | ab1112da4c1c8dc9c22486d0d69dca9cd1216cd2 (diff) | |
download | pfsense-3e1eec5850cdd50974190146459c9361fe156ff5.zip pfsense-3e1eec5850cdd50974190146459c9361fe156ff5.tar.gz |
Allow for selection of a gateway group as a interface to monitor
Redmine ticket #1965
Diffstat (limited to 'usr/local/www/services_dyndns_edit.php')
-rw-r--r-- | usr/local/www/services_dyndns_edit.php | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php index 596dee7..93fc744 100644 --- a/usr/local/www/services_dyndns_edit.php +++ b/usr/local/www/services_dyndns_edit.php @@ -230,10 +230,22 @@ function _onTypeChange(type){ <td width="22%" valign="top" class="vncellreq"><?=gettext("Interface to monitor");?></td> <td width="78%" class="vtable"> <select name="interface" class="formselect" id="interface"> - <?php $iflist = get_configured_interface_with_descr(); - foreach ($iflist as $if => $ifdesc):?> - <option value="<?=$if;?>" <?php if ($pconfig['interface'] == $if) echo "selected";?>><?=$ifdesc;?></option> - <?php endforeach; ?> + <?php + $iflist = get_configured_interface_with_descr(); + foreach ($iflist as $if => $ifdesc) { + echo "<option value=\"{$if}\""; + if ($pconfig['interface'] == $if) + echo "selected"; + echo ">{$ifdesc}</option>\n"; + } + $grouplist = return_gateway_groups_array(); + foreach ($grouplist as $name => $group) { + echo "<option value=\"{$name}\""; + if ($pconfig['interface'] == $name) + echo "selected"; + echo ">GW Group {$name}</option>\n"; + } + ?> </select> </td> </td> |