Code

Updated logging
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 May 2007 07:41:13 +0000 (07:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 May 2007 07:41:13 +0000 (07:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6447 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupApplication.inc
plugins/admin/mimetypes/class_mimetypeManagement.inc

index da3a3a4137129866f02442f21f3d19810abb7279..753352db10a1f52d445310722198096ed47cbd13 100644 (file)
@@ -936,7 +936,8 @@ class appgroup extends plugin
   {
     /* Skip saving application settings, if we do not have release acls */
     if($this->no_release_acls){
-      gosa_log("Skip saving group application extension. Caused by insufficient acls");
+      new log("security","groups/".get_class($this),$this->dn,array(),"Skip saving group application extension. Caused by insufficient acls");
+      
       return;
     }
 
index f0c1b4ddbdec2652d2aa23fe9436969e8107fb4b..fc87bec435a022931c95e0bfcabdafc23ca5b999 100755 (executable)
@@ -205,7 +205,6 @@ class mimetypeManagement extends plugin
         /* Save data data to ldap */
         $this->mimetabs->set_release($this->DivListMimeTypes->selectedRelease);
         $this->mimetabs->save();
-        gosa_log ("Mime object'".$this->dn."' has been saved");
 
         if (!isset($_POST['edit_apply'])){
           /* Mime type has been saved successfully, remove lock from LDAP. */
@@ -309,7 +308,6 @@ class mimetypeManagement extends plugin
           $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $dn,"mimetypes");
           $this->mimetabs->set_acl_base($dn);
           $this->mimetabs->delete ();
-          gosa_log ("Mime type object'".$dn."' has been removed");
           unset ($this->mimetabs);
           $this->mimetabs= NULL;
 
@@ -317,7 +315,7 @@ class mimetypeManagement 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 mime type!"));
-          gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion.");
+          @log::log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
         /* Remove lock file after successfull deletion */
         del_lock ($dn);
@@ -393,7 +391,6 @@ class mimetypeManagement extends plugin
         $this->mimetabs= new mimetabs($this->config, $this->config->data['TABS']['MIMETABS'], $this->dn,"mimetypes");
         $this->mimetabs->set_acl_base($this->dn);
         $this->mimetabs->delete ();
-        gosa_log ("Mime type object'".$this->dn."' has been removed");
         unset ($this->mimetabs);
         $this->mimetabs= NULL;
 
@@ -402,7 +399,7 @@ class mimetypeManagement 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 mime type!"));
-        gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion.");
+        @log::log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
       /* Remove lock file after successfull deletion */