diff options
author | Colin Smith <colin@pfsense.org> | 2005-03-08 03:56:23 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-03-08 03:56:23 +0000 |
commit | 7b4b2eb7a793ba86b8623209feb238fe2c045979 (patch) | |
tree | 7302517a1e2fd191b7ee9dfc558f31c96e681e80 /usr | |
parent | 0d9985d2c8fe1331f1b856fb48182def5be204ac (diff) | |
download | pfsense-7b4b2eb7a793ba86b8623209feb238fe2c045979.zip pfsense-7b4b2eb7a793ba86b8623209feb238fe2c045979.tar.gz |
* Add enable_https() to determine whether or not https-specific fields should be grayed out.
* Call enable_https() from enable_change() to set these values when the page is first accessed.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_captiveportal.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php index 9016728..1e79af6 100755 --- a/usr/local/www/services_captiveportal.php +++ b/usr/local/www/services_captiveportal.php @@ -200,12 +200,25 @@ function auth_method_change() { document.iform.radiusacctport.disabled = 0; } } + function radacct_change() { if (document.iform.radacct_enable.checked) { auth_method_change(); } } +function enable_https() { + if (document.iform.httpslogin_enable.checked == false) { + document.iform.httpsname.disabled = 1; + document.iform.cert.disabled = 1; + document.iform.key.disabled = 1; + } else { + document.iform.httpsname.disabled = 0; + document.iform.cert.disabled = 0; + document.iform.key.disabled = 0; + } +} + function enable_change(enable_change) { var endis; endis = !(document.iform.enable.checked || enable_change); @@ -246,6 +259,7 @@ function enable_change(enable_change) { } auth_method_change(); + enable_https(); } //--> @@ -388,7 +402,7 @@ to access after they've authenticated.</td> <tr> <td valign="top" class="vncell">HTTPS login</td> <td class="vtable"> - <input name="httpslogin_enable" type="checkbox" class="formfld" id="httpslogin_enable" value="yes" <?php if($pconfig['httpslogin_enable']) echo "checked"; ?> onClick="enable_https(false)"> + <input name="httpslogin_enable" type="checkbox" class="formfld" id="httpslogin_enable" value="yes" <?php if($pconfig['httpslogin_enable']) echo "checked"; ?> onClick="enable_https()"> <strong>Enable HTTPS login</strong><br> If enabled, the username and password will be transmitted over an HTTPS connection to protect against eavesdroppers. This option only applies when RADIUS authentication is used. A server name, certificate and matching private key must also be specified below.</td> </tr> |