diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 68adab4586198816ed18833671a4a71ef16bff59..9000b008bebf3a644e6f6a9fff24d2bc915f51b3 100644 (file)
}
}
}
+
+ if($this->is_account){
+ @log::log("view","printer/".get_class($this),$this->dn);
+ }
}
function set_acl_base($base)
/* Remove account & dns extension */
$this->netConfigDNS->remove_from_parent();
$ldap->rmdir($this->dn);
+
+ @log::log("remove","printer/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+
show_ldap_error($ldap->get_error(), sprintf(_("Removing of system print/generic with dn '%s' failed."),$this->dn));
$this->handle_post_events("remove");
$ldap->add($this->attrs);
$this->handle_post_events("add");
+ @log::log("create","printer/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
} else {
$ldap->cd($this->dn);
$this->cleanup();
$ldap->modify ($this->attrs);
$this->handle_post_events("modify");
+ @log::log("modify","printer/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
}
show_ldap_error($ldap->get_error(), sprintf(_("Saving of system print/generic with dn '%s' failed."),$this->dn));