diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-08 23:41:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-08 23:41:51 +0000 |
commit | b8cfc022ad30673cd9109227ea6476366bea4758 (patch) | |
tree | 5a01b01c4c255829f8c7efd239ca4d7dbc3f099b /usr/local/www | |
parent | 961d69fc33dd4c2c791a1011ea700716dc138ba1 (diff) | |
download | pfsense-b8cfc022ad30673cd9109227ea6476366bea4758.zip pfsense-b8cfc022ad30673cd9109227ea6476366bea4758.tar.gz |
Show interfaces. Cleanup presentation.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system.php | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php index ed23272..f826389 100755 --- a/usr/local/www/system.php +++ b/usr/local/www/system.php @@ -225,48 +225,68 @@ include("head.inc"); <tr> <td width="22%" valign="top" class="vncell">DNS servers</td> <td width="78%" class="vtable"> <p> + <table> + <tr><td><b>DNS Server</td> <?php $multiwan = false; foreach($config['interfaces'] as $int) if($int['gateway']) $multiwan = true; $ints = get_interface_list(); - ?> + if($multiwan) + echo "<td><b>Use gateway</td>"; + ?> + </tr> + <tr> + <td> <input name="dns1" type="text" class="formfld unknown" id="dns1" size="20" value="<?=htmlspecialchars($pconfig['dns1']);?>"> + </td> <?php $ints = get_interface_list(); if($multiwan) { - echo "<select name='dns1gwint'>\n"; + echo "<td><select name='dns1gwint'>\n"; + echo "<option></option>"; foreach($ints as $int) { - if($config['interfaces'][$int]['gateway']) { - $selected = ""; - if($pconfig['dns1gwint'] == $int) - $selected = " SELECTED"; - echo "<option value='{$int}'{$selected}>{$int}></option>"; + $friendly = $int['friendly']; + if($config['interfaces'][$friendly]['gateway']) { + $selected = ""; + if($pconfig['dns1gwint'] == $int) + $selected = " SELECTED"; + echo "<option value='{$friendly}'{$selected}>{$friendly}</option>"; } } echo "</select>"; } - ?> - <br> + ?></td></tr> + <tr><td> <input name="dns2" type="text" class="formfld unknown" id="dns22" size="20" value="<?=htmlspecialchars($pconfig['dns2']);?>"> + </td> <?php if($multiwan) { - echo "<select name='dns1gwint'>\n"; + echo "<td><select name='dns2gwint'>\n"; + echo "<option></option>"; foreach($ints as $int) { - if($config['interfaces'][$int]['gateway']) { + $friendly = $int['friendly']; + if($config['interfaces'][$friendly]['gateway']) { $selected = ""; - if($pconfig['dns1gwint'] == $int) + if($pconfig['dns2gwint'] == $int) $selected = " SELECTED"; - echo "<option value='{$int}'{$selected}>{$int}></option>"; + echo "<option value='{$friendly}'{$selected}>{$friendly}</option>"; } } - echo "</select>"; + echo "</select></td>"; } ?> + </tr> + </table> <br> <span class="vexpl">IP addresses; these are also used for - the DHCP service, DNS forwarder and for PPTP VPN clients<br> + the DHCP service, DNS forwarder and for PPTP VPN clients. + <br> + <?php + if($multiwan) + echo "<br/>In addition, select the gateway for each DNS server. You should have a unique DNS server per gateway.<br/>"; + ?> <br> <input name="dnsallowoverride" type="checkbox" id="dnsallowoverride" value="yes" <?php if ($pconfig['dnsallowoverride']) echo "checked"; ?>> <strong>Allow DNS server list to be overridden by DHCP/PPP |