diff options
author | doktornotor <notordoktor@gmail.com> | 2015-10-01 13:43:02 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-10-01 13:43:02 +0200 |
commit | 3a44ec003327d054620bd151006e742864080940 (patch) | |
tree | 20042682edaa196fde46a0106d94c942f119f81a | |
parent | 0101b159ad8ebad4f335f33dfef91c6f1b2c90f6 (diff) | |
download | pfsense-packages-3a44ec003327d054620bd151006e742864080940.tar.gz pfsense-packages-3a44ec003327d054620bd151006e742864080940.tar.bz2 pfsense-packages-3a44ec003327d054620bd151006e742864080940.zip |
Antivirus GUI behaviour sanitization - first part
Add manual configuration toggle. When disabled, the 'Advanced Options" only show the AV/C-ICAP config file but do not allow editing, and vice versa.
-rwxr-xr-x | config/squid3/34/squid_antivirus.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config/squid3/34/squid_antivirus.xml b/config/squid3/34/squid_antivirus.xml index a257891d..647ffe35 100755 --- a/config/squid3/34/squid_antivirus.xml +++ b/config/squid3/34/squid_antivirus.xml @@ -100,6 +100,24 @@ <type>checkbox</type> </field> <field> + <fielddescr>Enable Manual Configuration</fielddescr> + <fieldname>enable_advanced</fieldname> + <description> + <![CDATA[ + When enabled, the options under 'ClamAV Anti-Virus Integration Using C-ICAP' no longer have any effect.<br/> + You must edit the configuration files directly in the 'Advanced Options'.<br/> + <strong><span class="errmsg">Warning:</span> Only enable this if you know what are you doing.</strong> + ]]> + </description> + <type>select</type> + <options> + <option><value>disabled</value><name>disabled</name></option> + <option><value>enabled</value><name>enabled</name></option> + </options> + <default_value>disabled</default_value> + <onchange>on_antivirus_advanced_config_changed()</onchange> + </field> + <field> <fielddescr>Client Forward Options</fielddescr> <fieldname>client_info</fieldname> <description> @@ -238,6 +256,15 @@ <rows>15</rows> </field> </fields> + <custom_php_after_head_command> + squid_print_antivirus_advanced_config(); + </custom_php_after_head_command> + <custom_php_before_form_command> + squid_print_antivirus_advanced_config2(); + </custom_php_before_form_command> + <custom_php_after_form_command> + squid_print_antivirus_advanced_config2(); + </custom_php_after_form_command> <custom_php_validation_command> squid_validate_antivirus($_POST, $input_errors); </custom_php_validation_command> |