diff options
Diffstat (limited to 'packages')
-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> |