diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 22:29:36 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 22:29:36 +0000 |
commit | d5d00b834f97c9f8f38bcfc3589fcc4849e5718a (patch) | |
tree | 6d7d3633d9e8ed090c6f6f8b1b3140d2deb3e60e /usr/local/www/interfaces.php | |
parent | 4a6032d0e2d00b3981fd536eb2abcd404460f264 (diff) | |
download | pfsense-d5d00b834f97c9f8f38bcfc3589fcc4849e5718a.zip pfsense-d5d00b834f97c9f8f38bcfc3589fcc4849e5718a.tar.gz |
Add CarpDEV-DHCP support.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 0d069a3..b7db860 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -350,6 +350,11 @@ if ($_POST) { $wancfg['dhcphostname'] = $_POST['dhcphostname']; $wancfg['alias-address'] = $_POST['alias-address']; $wancfg['alias-subnet'] = $_POST['alias-subnet']; + } else if ($_POST['type'] == "CarpDEV-DHCP") { + $wancfg['ipaddr'] = "carpdev-dhcp"; + $wancfg['dhcphostname'] = $_POST['dhcphostname']; + $wancfg['alias-address'] = $_POST['alias-address']; + $wancfg['alias-subnet'] = $_POST['alias-subnet']; } else if ($_POST['type'] == "PPPoE") { $wancfg['ipaddr'] = "pppoe"; $config['pppoe']['username'] = $_POST['username']; @@ -643,6 +648,28 @@ function type_change(enable_change,enable_change_pptp) { document.iform.pptp_idletimeout.disabled = 1; document.iform.dhcphostname.disabled = 1; break; + case 5: + document.iform.username.disabled = 1; + document.iform.password.disabled = 1; + document.iform.provider.disabled = 1; + document.iform.pppoe_dialondemand.disabled = 1; + document.iform.pppoe_idletimeout.disabled = 1; + document.iform.pppoe_preset.disabled = 1; + document.iform.pppoe_preset.checked = 0; + Effect.Fade('presetwrap', { duration: 1.0 }); + document.iform.ipaddr.disabled = 1; + document.iform.subnet.disabled = 1; + document.iform.gateway.disabled = 1; + document.iform.pptp_username.disabled = 1; + document.iform.pptp_password.disabled = 1; + document.iform.pptp_local.disabled = 1; + document.iform.pptp_subnet.disabled = 1; + document.iform.pptp_remote.disabled = 1; + document.iform.pptp_dialondemand.disabled = 1; + document.iform.pptp_idletimeout.disabled = 1; + document.iform.dhcphostname.disabled = 1; + break; + } } @@ -667,11 +694,11 @@ function show_mon_config() { <tr> <td valign="middle" class="vncell"><strong>Type</strong></td> <td class="vtable"> <select name="type" class="formselect" id="type" onchange="type_change()"> - <?php $opts = split(" ", "Static DHCP PPPoE PPTP"); - foreach ($opts as $opt): ?> - <option <?php if ($opt == $pconfig['type']) echo "selected";?>> - <?=htmlspecialchars($opt);?> - </option> + <?php $opts = split(" ", "Static DHCP PPPoE PPTP CarpDEV-DHCP"); + foreach ($opts as $opt): ?> + <option <?php if ($opt == $pconfig['type']) echo "selected";?>> + <?=htmlspecialchars($opt);?> + </option> <?php endforeach; ?> </select></td> </tr> |