Add a default setting to location type of wireless that leaves the setting at its default for the interface.

This commit is contained in:
Erik Fonnesbeck 2010-05-25 13:03:35 -06:00
parent 1cf76394ee
commit 89e52df87f

View File

@ -1400,6 +1400,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
<br/><br/>
Location<br/>
<select name="reglocation" class="formselect" id="reglocation">
<option <? if (empty($pconfig['reglocation'])) echo "selected"; ?> value="">Default</option>
<option <? if ($pconfig['reglocation'] == 'indoor') echo "selected"; ?> value="indoor">Indoor</option>
<option <? if ($pconfig['reglocation'] == 'outdoor') echo "selected"; ?> value="outdoor">Outdoor</option>
<option <? if ($pconfig['reglocation'] == 'anywhere') echo "selected"; ?> value="anywhere">Anywhere</option>