diff --git a/plugins/admin/systems/class_goSpamServerRule.inc b/plugins/admin/systems/class_goSpamServerRule.inc
index 178269534bc3d159d37e6fa2290a0951ce15e588..c8eed5d4ec998ddaaad17f85ff008ad41432c8cd 100644 (file)
var $rule = "";
var $orig_name = "";
+ var $view_logged =FALSE;
- function goSpamServerRule($config,$dn,$name = "",$rule ="")
+ function goSpamServerRule(&$config,$dn,$name = "",$rule ="")
{
plugin::plugin($config,$dn);
$this->name = $this->orig_name= $name;
function execute()
{
$smarty = get_smarty();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ new log("view","server/".get_class($this),$this->dn);
+ }
+
foreach($this->attributes as $attr){
$smarty->assign($attr,$this->$attr);
}