index 52d87d9e46b39fad47069c1660e55998b17f9e18..f7ec6810c13d5504306cd059b7a515dd3c2d5828 100644 (file)
var $FAIAllclasses = array(); // Contains all possible Classnames
var $ui ;
var $FAIstate = "";
+ var $view_logged = FALSE;
function faiProfile($config, $dn= NULL)
{
if($dn != "new"){
$this->dn =$dn;
- @log::log("view","fai/".get_class($this),$this->dn);
}
$this->old_cn = $this->cn;
}
{
/* Call parent execute */
plugin::execute();
+
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ new log("view","fai/".get_class($this),$this->dn);
+ }
+
/* Fill templating stuff */
$smarty= get_smarty();
$display= "";
$use_dn = $this->dn;
}
- @log::log("remove","fai/".get_class($this),$use_dn,$this->attributes);
+ new log("remove","fai/".get_class($this),$use_dn,$this->attributes);
prepare_to_save_FAI_object($use_dn,array(),true);
$this->handle_post_events("remove");
}
prepare_to_save_FAI_object($this->dn,$this->attrs);
if($this->initially_was_account){
- @log::log("modify","fai/".get_class($this),$this->dn,$this->attributes);
+ new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
}else{
- @log::log("create","fai/".get_class($this),$this->dn,$this->attributes);
+ new log("create","fai/".get_class($this),$this->dn,$this->attributes);
}
show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/profile with dn '%s' failed."),$this->dn));