diff --git a/plugins/admin/systems/class_goVirusServer.inc b/plugins/admin/systems/class_goVirusServer.inc
index 7a1dde535f0174ca6160849cb0f9c957d28d4406..6335956b77b66de5c1cf303d6658c38a8f3b28e2 100644 (file)
/* This plugin only writes its objectClass */
var $objectclasses = array("goVirusServer");
/* This plugin only writes its objectClass */
var $objectclasses = array("goVirusServer");
- var $attributes = array("avMaxThreads","avMaxDirectoryRecursions",/*"avUser",*/"avFlags","avArchiveMaxFileSize","avArchiveMaxRecursion",
+ var $attributes = array("avMaxThreads","avMaxDirectoryRecursions","avUser","avFlags","avArchiveMaxFileSize","avArchiveMaxRecursion",
"avArchiveMaxCompressionRatio","avDatabaseMirror","avChecksPerDay","avHttpProxyURL");
var $StatusFlag = "avStatus";
"avArchiveMaxCompressionRatio","avDatabaseMirror","avChecksPerDay","avHttpProxyURL");
var $StatusFlag = "avStatus";
var $Flags = array("D","S","A","E");
var $Flags = array("D","S","A","E");
- var $avFlags = "DSAE";
+ var $avFlags = "DS";
var $avFlagsD = TRUE;
var $avFlagsS = TRUE;
var $avFlagsD = TRUE;
var $avFlagsS = TRUE;
- var $avFlagsA = TRUE;
- var $avFlagsE = TRUE;
+ var $avFlagsA = FALSE;
+ var $avFlagsE = FALSE;
var $avMaxThreads = 5;
var $avMaxDirectoryRecursions = 4;
var $avMaxThreads = 5;
var $avMaxDirectoryRecursions = 4;
var $avArchiveMaxCompressionRatio = 95;
var $avChecksPerDay = 12;
var $avArchiveMaxCompressionRatio = 95;
var $avChecksPerDay = 12;
-// var $avUser = "";
+ var $avUser = "";
var $avHttpProxyURL = "";
var $avDatabaseMirror = "";
var $avHttpProxyURL = "";
var $avDatabaseMirror = "";
- function govirusserver($config,$dn)
+ function govirusserver($config,$dn, $parent= NULL)
{
/* Init class */
{
/* Init class */
- plugin::plugin($config,$dn);
+ plugin::plugin($config,$dn, $parent);
$this->DisplayName = _("Anti virus");
/* Get userinfo & acls */
$this->DisplayName = _("Anti virus");
/* Get userinfo & acls */
}
$smarty->assign("ThreadValues",$tmp);
}
$smarty->assign("ThreadValues",$tmp);
+ if($this->avFlagsA){
+ $smarty->assign("avFlagsAState" , "" );
+ }else{
+ $smarty->assign("avFlagsAState" , " disabled " );
+ }
+
return($display.$smarty->fetch(get_template_path("goVirusServer.tpl",TRUE,dirname(__FILE__))));
}
return($display.$smarty->fetch(get_template_path("goVirusServer.tpl",TRUE,dirname(__FILE__))));
}
plugin::save();
plugin::save();
+ if(!$this->avFlagsA){
+ $arr = array("avArchiveMaxFileSize","avArchiveMaxRecursion","avArchiveMaxCompressionRatio");
+ foreach($arr as $attr){
+ $this->attrs[$attr] = array();
+ }
+ $this->attrs['avFlags'] = preg_replace("/E/","",$this->attrs['avFlags']);
+ }
+
/* Check if this is a new entry ... add/modify */
$ldap = $this->config->get_ldap_link();
$ldap->cat($this->dn,array("objectClass"));
/* Check if this is a new entry ... add/modify */
$ldap = $this->config->get_ldap_link();
$ldap->cat($this->dn,array("objectClass"));
$message = plugin::check();
$mustBeNumeric = array(
$message = plugin::check();
$mustBeNumeric = array(
+ "avMaxDirectoryRecursions" =>_("Maximum directory recursions"),
"avMaxThreads" =>_("Maximum threads"),
"avArchiveMaxFileSize" =>_("Maximum file size"),
"avArchiveMaxRecursion" =>_("Maximum recursions"),
"avMaxThreads" =>_("Maximum threads"),
"avArchiveMaxFileSize" =>_("Maximum file size"),
"avArchiveMaxRecursion" =>_("Maximum recursions"),
"avFlagsE" =>_("Block encrypted archives"),
"avMaxThreads" =>_("Maximum threads"),
"avFlagsE" =>_("Block encrypted archives"),
"avMaxThreads" =>_("Maximum threads"),
-// "avMaxDirectoryRecursions" =>_(""),
-// "avUser" =>_(""),
+ "avMaxDirectoryRecursions" =>_("Maximum directory recursions"),
+ "avUser" =>_("Anti virus user"),
"avArchiveMaxFileSize" =>_("Maximum file size"),
"avArchiveMaxRecursion" =>_("Maximum recursions"),
"avArchiveMaxCompressionRatio" =>_("Maximum compression ratio"),
"avArchiveMaxFileSize" =>_("Maximum file size"),
"avArchiveMaxRecursion" =>_("Maximum recursions"),
"avArchiveMaxCompressionRatio" =>_("Maximum compression ratio"),