diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-04-26 02:43:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-04-26 02:43:23 +0000 |
commit | 6e7e1814796eaeab0b433c7abd6c464db68786b2 (patch) | |
tree | 18a8cd65d8496e8b05419fb105c4933d6a5e6105 /usr | |
parent | a007827a72bc83991e4ecf4b0aaefee217ad45cb (diff) | |
download | pfsense-6e7e1814796eaeab0b433c7abd6c464db68786b2.zip pfsense-6e7e1814796eaeab0b433c7abd6c464db68786b2.tar.gz |
Add OpenVPN Users option
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index 5c9d169..d106262 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -334,6 +334,16 @@ function typesel_change() { eval(comd); } break; + + case 4: /* OpenVPN Users */ + var cmd; + document.iform.address_subnet.disabled = 1; + newrows = totalrows+1; + for(i=2; i<newrows; i++) { + comd = 'document.iform.address_subnet' + i + '.disabled = 0;'; + eval(comd); + } + break; } } @@ -349,6 +359,7 @@ $ports_str = gettext("Port(s)"); $port_str = gettext("Port"); $url_str = gettext("URL"); $update_freq_str = gettext("Update Freq."); +$openvpn_user_str = gettext("OpenVPN Users"); $networks_help = gettext("Networks can be expressed like 10.0.0.0 format. Select the CIDR (network mask) that pertains to each entry."); $hosts_help = gettext("Enter as many hosts as you would like. Hosts should be expressed in their ip address format."); @@ -392,6 +403,14 @@ function update_box_type() { document.getElementById ("twocolumn").firstChild.data = "{$update_freq_str}"; document.getElementById ("threecolumn").firstChild.data = "{$description_str}"; document.getElementById ("itemhelp").firstChild.data = "{$url_help}"; + } else if(selected == '{$openvpn_user_str}') { + document.getElementById ("addressnetworkport").firstChild.data = "{$openvpn_user_str}"; + document.getElementById ("address_subnet").visible = false; + document.getElementById ("address_subnet").disabled = false; + document.getElementById ("onecolumn").firstChild.data = "{$url_str}"; + document.getElementById ("twocolumn").firstChild.data = "{$update_freq_str}"; + document.getElementById ("threecolumn").firstChild.data = "{$description_str}"; + document.getElementById ("itemhelp").firstChild.data = "{$url_help}"; } } </script> @@ -470,6 +489,7 @@ EOD; <option value="host" <?php if ($pconfig['type'] == "host") echo "selected"; ?>>Host(s)</option> <option value="network" <?php if ($pconfig['type'] == "network") echo "selected"; ?>>Network(s)</option> <option value="port" <?php if ($pconfig['type'] == "port") echo "selected"; ?>>Port(s)</option> + <option value="openvpn" <?php if ($pconfig['type'] == "port") echo "selected"; ?>>OpenVPN Users</option> </select> </td> </tr> |