index 6934a0cc428cc6fb058fe496856b02b91a42ab04..e95dc01c3ce685d2866f443ac2aa41faccffb344 100644 (file)
var $dispNewFreeze= false;
var $DivListFai;
+ var $start_pasting_copied_objects = FALSE;
+ var $CopyPasteHandler = FALSE;
/* construction/reconstruction
*/
"/create_variable/i"=>"new_variable", "/create_template/i"=>"new_template",
"/create_package/i"=>"new_package", "/create_profile/i"=>"new_profile",
"/edit_continue/"=>"select_class_name_finished",
-
+ "/^multiple_copy_fai/" => "copy_multiple",
+ "/^multiple_cut_fai/" => "cut_multiple",
"/^remove_multiple_fai_objects/" => "del_multiple");
foreach($_POST as $name => $value){
$this->dialog->set_acl_base($dn);
$this->dialog->by_object[$type[1]]->remove_from_parent ();
unset ($this->dialog);
- gosa_log ("FAI class '".$dn."' has been tagged as removed");
$this->dialog= NULL;
$to_del = clean_up_releases($dn);
save_release_changes_now();
foreach($to_del as $dn){
$ldap->rmdir_recursive($dn);
- gosa_log(sprintf(_("Release cleanup : Removing object (tagged as remvoed) that is no longer in use '%s'."),$dn));
}
} else {
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */
print_red (_("You are not allowed to delete this component!"));
- gosa_log ("Warning: '".$this->ui->uid."' tried to trick system ".
- "deletion.");
+ new log("security","fai/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
/* Remove lock file after successfull deletion */
$this->dialog->set_acl_base($this->dn);
$this->dialog->by_object[$type[1]]->remove_from_parent ();
unset ($this->dialog);
- gosa_log ("FAI class '".$this->dn."' has been tagged as removed");
$this->dialog= NULL;
$to_del = clean_up_releases($this->dn);
save_release_changes_now();
foreach($to_del as $dn){
$ldap->rmdir_recursive($dn);
- gosa_log(sprintf(_("Release cleanup : Removing object (tagged as remvoed) that is no longer in use '%s'."),$dn));
}
} else {
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */
print_red (_("You are not allowed to delete this component!"));
- gosa_log ("Warning: '".$this->ui->uid."' tried to trick system ".
- "deletion.");
+ new log("security","fai/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
}else{
$this->lock_name = $name;
$this->lock_dn = $bb;
$this->postremove();
+
+ new log("remove","fai/".get_class($this),$br[$bb],array(),"Release removed");
}
}
<body style="background: none;margin:3px;color:black">
';
+ new log("create","fai/".get_class($this),$NewReleaseName,array(),"New $type created");
/* Duplicate applications
*/