Code

Fixed problem with not clickable buttons in fai package error msgs
[gosa.git] / plugins / admin / fai / class_faiManagement.inc
index 0488ed3cef1f0df983babc5fb6f76b079216bb98..1922b2aadf0e27d2ce4033b9dec16bf8a9eef020 100644 (file)
@@ -56,6 +56,8 @@ class faiManagement extends plugin
   var $dispNewFreeze= false;
 
   var $DivListFai;
+  var $start_pasting_copied_objects = FALSE;
+  var $CopyPasteHandler = FALSE;
 
        /* construction/reconstruction 
         */
@@ -100,7 +102,8 @@ class faiManagement extends plugin
                     "/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){
@@ -247,7 +250,7 @@ class faiManagement extends plugin
           /* Normally this shouldn't be reached, send some extra
              logs to notify the administrator */
           print_red (_("You are not allowed to delete this component!"));
-          @log::log("security","fai/".get_class($this),$dn,array(),"Tried to trick deletion.");
+          new log("security","fai/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
 
         /* Remove lock file after successfull deletion */
@@ -318,7 +321,7 @@ class faiManagement extends plugin
           /* Normally this shouldn't be reached, send some extra
              logs to notify the administrator */
           print_red (_("You are not allowed to delete this component!"));
-          @log::log("security","fai/".get_class($this),$dn,array(),"Tried to trick deletion.");
+          new log("security","fai/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
 
       }else{
@@ -407,7 +410,7 @@ class faiManagement extends plugin
         $this->lock_dn     = $bb;
         $this->postremove();
 
-        @log::log("remove","fai/".get_class($this),$br[$bb],array(),"Release removed");
+        new log("remove","fai/".get_class($this),$br[$bb],array(),"Release removed");
       }
     }
 
@@ -513,7 +516,7 @@ class faiManagement extends plugin
           <body style="background: none;margin:3px;color:black">
           ';
 
-        @log::log("create","fai/".get_class($this),$NewReleaseName,array(),"New $type created");
+        new log("create","fai/".get_class($this),$NewReleaseName,array(),"New $type created");
 
         /* Duplicate applications 
          */
@@ -529,7 +532,7 @@ class faiManagement extends plugin
          */
         $ldap->cat($mimesrc,array("dn")) ;
         if($ldap->count()){
-          $ldap->cd ($appdst);
+          $ldap->cd ($mimedst);
           $ldap->recursive_remove();
           $ldap->cd ($this->config->current['BASE']);
           $ldap->copy_FAI_resource_recursive($mimesrc,$mimedst,$NewReleaseName,$type,true);