Revision c9be8d9f
Added by Peter Peter over 10 years ago
usr/local/www/services_wol.php | ||
---|---|---|
139 | 139 |
$section->addInput(new Form_Select( |
140 | 140 |
'interface', |
141 | 141 |
'Interface', |
142 |
(!link_interface_to_bridge($if) ? $if : null),
|
|
142 |
(link_interface_to_bridge($if) ? null : $if),
|
|
143 | 143 |
get_configured_interface_with_descr() |
144 | 144 |
))->setHelp('Choose which interface the host to be woken up is connected to.'); |
145 | 145 |
|
usr/local/www/services_wol_edit.php | ||
---|---|---|
134 | 134 |
|
135 | 135 |
$section = new Form_Section('Edit WOL entry'); |
136 | 136 |
|
137 |
// How do we incorporate: if (!link_interface_to_bridge($iface) && $iface == $if) echo "selected=\"selected\"" |
|
138 | 137 |
$section->addInput(new Form_Select( |
139 | 138 |
'interface', |
140 | 139 |
'Interface', |
141 |
$pconfig['interface'],
|
|
140 |
(link_interface_to_bridge($pconfig['interface']) ? null : $pconfig['interface']),
|
|
142 | 141 |
get_configured_interface_with_descr() |
143 | 142 |
))->setHelp('Choose which interface this host is connected to.'); |
144 | 143 |
|
Also available in: Unified diff
#126
Link_interface_to_bridge check also applied to wol_edit.
Inverted link_interface_to_bridge check to be more clear.