diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-29 21:26:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-29 21:26:52 +0000 |
commit | 1754da3e401af1071ea219b3142867837508da69 (patch) | |
tree | c62343af4f950b64942eda8481cb6c7017cf2939 | |
parent | b064244ed9adb611de568800a9e9cb079229b46e (diff) | |
download | pfsense-packages-1754da3e401af1071ea219b3142867837508da69.tar.gz pfsense-packages-1754da3e401af1071ea219b3142867837508da69.tar.bz2 pfsense-packages-1754da3e401af1071ea219b3142867837508da69.zip |
Throw an input_error on squid auth page when transparent proxy is enabled so we avoid ID10T questions like I just asked...
-rw-r--r-- | packages/squid_auth.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/squid_auth.xml b/packages/squid_auth.xml index 65a91c23..9367231d 100644 --- a/packages/squid_auth.xml +++ b/packages/squid_auth.xml @@ -139,11 +139,17 @@ </field> </fields> <custom_php_after_head_command> + $transparent_proxy = ($config['installedpackages']['squid']['config'][0]['transparent_proxy'] == 'on'); + if($transparent_proxy) + $input_errors[] = "Authentication cannot be enabled while transparent proxy mode is enabled"; squid_print_javascript_auth(); </custom_php_after_head_command> <custom_php_validation_command> squid_validate_auth($_POST, &$input_errors); </custom_php_validation_command> + <custom_php_before_form_command> + squid_print_javascript_auth2(); + </custom_php_before_form_command> <custom_php_after_form_command> squid_print_javascript_auth2(); </custom_php_after_form_command> |