From c621a1088eb70c39fd8dbcc7fbefc48d3c03fa53 Mon Sep 17 00:00:00 2001 From: SunStroke74 Date: Sat, 27 Dec 2014 20:44:17 +0500 Subject: Added ability to change ClamAV mode from GUI Attention. Don`t know why, but to properly change mode settings needs to be saved twice. Looks like reading settings executing before "save" command. Maybe someone could investigate that. At this version added notice in gui. --- config/havp/havp.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/havp/havp.inc b/config/havp/havp.inc index 08937a2f..6c26a0d4 100644 --- a/config/havp/havp.inc +++ b/config/havp/havp.inc @@ -48,7 +48,8 @@ if(!function_exists("filter_configure")) define('HV_DEBUG', 'false'); # use Clamd daemon (another - use libclam) -define('HV_USE_CLAMD', 'true'); +$use_clamd_mode = $config['installedpackages']['havp']['config'][0]['use_clamd']; +define('HV_USE_CLAMD', $use_clamd_mode); define('HV_CLAMD_TCPSOCKET', 'true'); # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3