Code

Switched log call
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 May 2007 10:58:25 +0000 (10:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 May 2007 10:58:25 +0000 (10:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6453 594d385d-05f5-0310-b6e9-bd551577e9d8

105 files changed:
include/class_acl.inc
include/class_plugin.inc
include/php_setup.inc
include/sieve/class_sieveManagement.inc
plugins/addons/addressbook/class_addressbook.inc
plugins/addons/gotomasses/class_gotomasses.inc
plugins/addons/ldapmanager/class_csvimport.inc
plugins/addons/ldapmanager/class_export.inc
plugins/addons/ldapmanager/class_exportxls.inc
plugins/addons/ldapmanager/class_import.inc
plugins/addons/logview/class_logview.inc
plugins/addons/mailqueue/class_mailqueue.inc
plugins/addons/notifications/class_msgplug.inc
plugins/admin/acl/class_aclManagement.inc
plugins/admin/acl/class_aclRole.inc
plugins/admin/applications/class_applicationGeneric.inc
plugins/admin/applications/class_applicationManagement.inc
plugins/admin/departments/class_departmentGeneric.inc
plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiManagement.inc
plugins/admin/fai/class_faiPackage.inc
plugins/admin/fai/class_faiPartitionTable.inc
plugins/admin/fai/class_faiProfile.inc
plugins/admin/fai/class_faiScript.inc
plugins/admin/fai/class_faiTemplate.inc
plugins/admin/fai/class_faiVariable.inc
plugins/admin/groups/class_groupApplication.inc
plugins/admin/groups/class_groupGeneric.inc
plugins/admin/groups/class_groupMail.inc
plugins/admin/groups/class_groupManagement.inc
plugins/admin/mimetypes/class_mimetypeGeneric.inc
plugins/admin/mimetypes/class_mimetypeManagement.inc
plugins/admin/ogroups/class_mailogroup.inc
plugins/admin/ogroups/class_ogroup.inc
plugins/admin/ogroups/class_ogroupManagement.inc
plugins/admin/ogroups/class_phonequeue.inc
plugins/admin/ogroups/class_termgroup.inc
plugins/admin/systems/class_componentGeneric.inc
plugins/admin/systems/class_glpiAccount.inc
plugins/admin/systems/class_glpiPrinterAccount.inc
plugins/admin/systems/class_goCupsServer.inc
plugins/admin/systems/class_goFaxServer.inc
plugins/admin/systems/class_goFonServer.inc
plugins/admin/systems/class_goGlpiServer.inc
plugins/admin/systems/class_goImapServer.inc
plugins/admin/systems/class_goKrbServer.inc
plugins/admin/systems/class_goLdapServer.inc
plugins/admin/systems/class_goLogDBServer.inc
plugins/admin/systems/class_goMailServer.inc
plugins/admin/systems/class_goNtpServer.inc
plugins/admin/systems/class_goService.inc
plugins/admin/systems/class_goShareServer.inc
plugins/admin/systems/class_goSpamServer.inc
plugins/admin/systems/class_goSpamServerRule.inc
plugins/admin/systems/class_goSyslogServer.inc
plugins/admin/systems/class_goTerminalServer.inc
plugins/admin/systems/class_goVirusServer.inc
plugins/admin/systems/class_gosaLogServer.inc
plugins/admin/systems/class_phoneGeneric.inc
plugins/admin/systems/class_printGeneric.inc
plugins/admin/systems/class_servDHCP.inc
plugins/admin/systems/class_servDNS.inc
plugins/admin/systems/class_servGeneric.inc
plugins/admin/systems/class_servKolab.inc
plugins/admin/systems/class_servNfs.inc
plugins/admin/systems/class_servRepository.inc
plugins/admin/systems/class_systemManagement.inc
plugins/admin/systems/class_termDNS.inc
plugins/admin/systems/class_terminalGeneric.inc
plugins/admin/systems/class_terminalInfo.inc
plugins/admin/systems/class_terminalService.inc
plugins/admin/systems/class_terminalStartup.inc
plugins/admin/systems/class_winGeneric.inc
plugins/admin/systems/class_workstationGeneric.inc
plugins/admin/systems/class_workstationService.inc
plugins/admin/systems/class_workstationStartup.inc
plugins/admin/users/class_userManagement.inc
plugins/gofax/blocklists/class_blocklistManagement.inc
plugins/gofax/faxaccount/class_gofaxAccount.inc
plugins/gofax/faxreports/class_faxreport.inc
plugins/gofon/conference/class_phoneConferenceGeneric.inc
plugins/gofon/fonreports/class_fonreport.inc
plugins/gofon/macro/class_gofonMacro.inc
plugins/gofon/macro/class_gofonMacroManagement.inc
plugins/gofon/phoneaccount/class_phoneAccount.inc
plugins/personal/connectivity/class_intranetAccount.inc
plugins/personal/connectivity/class_kolabAccount.inc
plugins/personal/connectivity/class_opengwAccount.inc
plugins/personal/connectivity/class_oxchangeAccount.inc
plugins/personal/connectivity/class_phpgwAccount.inc
plugins/personal/connectivity/class_phpscheduleitAccount.inc
plugins/personal/connectivity/class_pptpAccount.inc
plugins/personal/connectivity/class_proxyAccount.inc
plugins/personal/connectivity/class_pureftpdAccount.inc
plugins/personal/connectivity/class_webdavAccount.inc
plugins/personal/environment/class_environment.inc
plugins/personal/generic/class_user.inc
plugins/personal/generic/main.inc
plugins/personal/mail/class_mailAccount.inc
plugins/personal/nagios/class_nagiosAccount.inc
plugins/personal/netatalk/class_netatalk.inc
plugins/personal/password/main.inc
plugins/personal/posix/class_posixAccount.inc
plugins/personal/samba/class_sambaAccount.inc
setup/class_setupStep_Migrate.inc

index 23db48299827c7fe3728761250d65be0ab92fc14..6e7044c7dcb4372dc0a59f9e86f7381a3e232984 100644 (file)
@@ -1033,7 +1033,7 @@ class acl extends plugin
     $ldap->modify ($this->attrs);
 
     if(count($this->attrs)){
-      @log::log("modify","acls/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","acls/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving ACLs with dn '%s' failed."),$this->dn));
@@ -1056,7 +1056,7 @@ class acl extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs);
 
-    @log::log("remove","acls/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","acls/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     /* Optionally execute a command after we're done */
     $this->handle_post_events("remove",array("uid" => $this->uid));
index cf7ccc0eed7be56072e84d4531daa10a873b779f..e71962fafa91d831532e42be925b685ce56422cc 100644 (file)
@@ -1525,7 +1525,7 @@ class plugin
     /* Update userinfo if necessary */
     if($_SESSION['ui']->dn == $old_dn){
       $_SESSION['ui']->dn = $new_dn;
-      @log::log("view","acl/".get_class($this),$this->dn,array(),"Updated current user dn from '".$old_dn."' to '".$new_dn."'");
+      new log("view","acl/".get_class($this),$this->dn,array(),"Updated current user dn from '".$old_dn."' to '".$new_dn."'");
     }
 
     /* Object was moved, ensure that all acls will be moved too */
index 7d6c73870158054dabcaa2c8772ccc467ccb341d..9c2153ed6450ba5a011aa8800b007cca1888b987 100644 (file)
@@ -57,7 +57,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
     if((isset($config->data['MAIN']['DISPLAYERRORS']))&&(!preg_match("/^true$/i",$config->data['MAIN']['DISPLAYERRORS']))){
 
       /* Write to syslog */
-      @log::log("view","error","",array(),"PHP error: $errstr ($errfile, line $errline)");
+      new log("view","error","",array(),"PHP error: $errstr ($errfile, line $errline)");
       return;
     }
   }
index 33c730945c693f604b812a5428435461f326e40c..4ac2c75fe3a4f38756259679a57b84280dd8c61f 100644 (file)
@@ -1039,7 +1039,7 @@ class sieveManagement extends plugin
       if($script['EDITED']){
         $data = $this->scripts[$key]['SCRIPT'];
         if(!$this->sieve_handle->sieve_sendscript($script['NAME'], addcslashes ($data,"\\"))){
-          @log::log("modify","users/mailAccount".get_class($this),$script['NAME'],"Failed to save sieve script named '".$script['NAME']."': ".to_string($this->sieve_handle->error_raw));
+          new log("modify","users/mailAccount".get_class($this),$script['NAME'],"Failed to save sieve script named '".$script['NAME']."': ".to_string($this->sieve_handle->error_raw));
 
           $everything_went_fine = FALSE;
           print_red(to_string($this->sieve_handle->error_raw));
index f766133f36b200d48842c58c6495f133128053c0..6ac0591e7b1d01a5c7c6eee834a8964b3aabaaad 100644 (file)
@@ -201,16 +201,16 @@ class addressbook extends plugin
         /* Delete request is permitted, perform LDAP action */
         $ldap= $this->config->get_ldap_link();
         $ldap->rmdir ($this->dn);
-        @log::log("remove","addressbook/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("remove","addressbook/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
         show_ldap_error($ldap->get_error(), sprintf(_("Removing of addressbook entry '%s' failed."),$this->dn));
-        @log::log("remove","addressbook/".get_class($this),$this->dn,array(),"Address book object'".$this->dn."' has been removed");
+        new log("remove","addressbook/".get_class($this),$this->dn,array(),"Address book object'".$this->dn."' has been removed");
   
       } else {
 
         /* Normally this shouldn't be reached, send some extra
            logs to notify the administrator */
         print_red (_("You are not allowed to delete this entry!"));
-        @log::log("remove","addressbook/".get_class($this),$this->dn,array(),"Warning: '".$this->ui->uid."' tried to trick address book deletion.");
+        new log("remove","addressbook/".get_class($this),$this->dn,array(),"Warning: '".$this->ui->uid."' tried to trick address book deletion.");
       }
 
       /* Remove lock file after successfull deletion */
@@ -333,7 +333,7 @@ class addressbook extends plugin
       $this->view_logged =FALSE;
       if(!$this->view_logged){
         $this->view_logged = TRUE;
-        @log::log("view","addressbook/".get_class($this),$this->dn);
+        new log("view","addressbook/".get_class($this),$this->dn);
       }
       $_SESSION['show_info']= base64_decode($_GET['show']);
     }
@@ -762,9 +762,9 @@ class addressbook extends plugin
     }
 
     if($mode == "add"){
-      @log::log("create","addressbook/".get_class($this),$this->dn, array_keys($this->attrs),$ldap->get_error());
+      new log("create","addressbook/".get_class($this),$this->dn, array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("modify","addressbook/".get_class($this),$this->dn, array_keys($this->attrs),$ldap->get_error());
+      new log("modify","addressbook/".get_class($this),$this->dn, array_keys($this->attrs),$ldap->get_error());
     }
   }
 
index c362ab439c81a5d531b04118f5704a27b786c602..6a2330b141eccfab906142ce5f97599157b4512d 100644 (file)
@@ -58,7 +58,7 @@ class gotomasses extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","gotomasses/".get_class($this),$this->dn);
+      new log("view","gotomasses/".get_class($this),$this->dn);
     }
 
     if(isset($_POST['export_gotomass_csv']) && $this->acl_is_writeable("something")){
index 9b3cf27d07f3e4af4a16d71c68d58f77cde4dde2..fcb5ef07a67a9815e6d1cdf681aabd88efd8ec33 100644 (file)
@@ -31,7 +31,7 @@ class csvimport extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","all/".get_class($this),$this->dn);
+      new log("view","all/".get_class($this),$this->dn);
     }
 
     /* initiate smarty */
index d64dc79d49de817efad65abcbd1e755c10982f49..64ea7c309ba2aa48b979c97c6020ceb8050c39c8 100644 (file)
@@ -26,7 +26,7 @@ class ldifexport extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","all/".get_class($this),$this->dn);
+      new log("view","all/".get_class($this),$this->dn);
     }
 
     /* Set government mode */
index a8e1ee68524420c57e05509d33e482e7d96cd9d1..10100dadbd97230faec59bc5bfae5b3a399f2998 100644 (file)
@@ -30,7 +30,7 @@ class xlsexport extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","all/".get_class($this),$this->dn);
+      new log("view","all/".get_class($this),$this->dn);
     }
 
     $dn = $this->config->current['BASE'];
index ff61022bfdea7f28e748b896f55bec83289d2f03..ca5a02ea0ce7c9b4dae600ed41463110dd92185d 100644 (file)
@@ -29,7 +29,7 @@ class ldifimport extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","all/".get_class($this),$this->dn);
+      new log("view","all/".get_class($this),$this->dn);
     }
 
     /* Set government mode */
index 844969fc7767a3ec73f5de8e8b5c8d10ccf87a4f..1a00f4d1eed2a91daac51ef4b7b14e6b658f0681 100644 (file)
@@ -47,7 +47,7 @@ class logview extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","logview/".get_class($this),$this->dn);
+      new log("view","logview/".get_class($this),$this->dn);
     }
 
     $logfilter= get_global("logfilter");
index fea487fd5608d716ae70cb925dcc2235ef7456ff..f33ba88b7f63bc0e0a2e39a4f444abe007240456 100644 (file)
@@ -51,7 +51,7 @@ class mailqueue extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","mailqueue/".get_class($this),$this->dn);
+      new log("view","mailqueue/".get_class($this),$this->dn);
     }
 
     if(isset($_POST['EntriesPerPage'])){
index 517a78e3b4a10a6713c4ef2f02cc31d933d48746..363a980b522d2d53033d047a0b0908e99fc9da48 100644 (file)
@@ -85,7 +85,7 @@ class msgplug extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","msgplug/".get_class($this),$this->dn);
+      new log("view","msgplug/".get_class($this),$this->dn);
     }
 
     /* Send message? */
index 450214858ed2c6a35f6d7730a434841a29c0c702..ab61375a1b3c8aafb4b0025500a55efb8c0066d4 100644 (file)
@@ -255,7 +255,7 @@ class aclManagement extends plugin
         print_red (_("You are not allowed to delete this acl role!"));
 
         if(isset($this->ui->uid)){
-          @log::log("security","aclroles/".get_class($this),$this->dn,array(),"Warning: '".$this->ui->uid."' tried to trick acl role deletion.");
+          new log("security","aclroles/".get_class($this),$this->dn,array(),"Warning: '".$this->ui->uid."' tried to trick acl role deletion.");
         }
       }
 
@@ -318,7 +318,7 @@ class aclManagement extends plugin
         print_red (_("You are not allowed to delete this acl!"));
 
         if(isset($this->ui->uid)){
-          @log::log("security","aclroles/".get_class($this),$this->dn,array(),"Warning: '".$this->ui->uid."' tried to trick acl role      deletion.");
+          new log("security","aclroles/".get_class($this),$this->dn,array(),"Warning: '".$this->ui->uid."' tried to trick acl role      deletion.");
           
         }
       }
index 2e6a146dd9da6ac5e2c4dd9346a0a8ddf2414c05..3d4e2aba1e482378f359c96d054db6f8879ca17c 100644 (file)
@@ -42,7 +42,7 @@ class aclrole extends acl
       $this->base = $_SESSION['CurrentMainBase'];
     }else{
       $this->base = preg_replace("/^[^,]+,[^,]+,/","",$this->dn);
-      @log::log("view","aclroles/".get_class($this),$this->dn);
+      new log("view","aclroles/".get_class($this),$this->dn);
     }
    
     /* Load ACL's */
@@ -552,13 +552,13 @@ class aclrole extends acl
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify ($this->attrs);
-      @log::log("modify","aclroles/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","aclroles/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
       $ldap->cd($this->config->current['BASE']);
       $ldap->create_missing_trees(preg_replace("/^[^,]+,/","",$this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","aclroles/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","aclroles/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving ACLs with dn '%s' failed."),$this->dn));
@@ -598,7 +598,7 @@ class aclrole extends acl
     }
         
     $ldap->rmDir($this->dn);
-    @log::log("remove","aclroles/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","aclroles/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of aclRole with dn '%s' failed."),$this->dn));
 
     /* Optionally execute a command after we're done */
index a82acc5b119f10e7801ff74c12f1677914810548..1882c313a502eae20d68efbc7d1fc4dba0124dfb 100644 (file)
@@ -118,7 +118,7 @@ class application extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","application/".get_class($this),$this->dn);
+      new log("view","application/".get_class($this),$this->dn);
     }
 
     $smarty= get_smarty();
@@ -232,7 +232,7 @@ class application extends plugin
   {
     $ldap= $this->config->get_ldap_link();
     $ldap->rmDir($this->dn);
-    @log::log("remove","application/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","application/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of application with dn '%s' failed."),$this->dn));
 
     /* Optionally execute a command after we're done */
@@ -459,7 +459,7 @@ class application extends plugin
       $this->cleanup();
       $ldap->modify ($this->attrs); 
       $this->handle_post_events("modify");
-      @log::log("modify","application/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","application/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     } else {
       
       /* Remove gotoLogonScript if it is empty */
@@ -471,7 +471,7 @@ class application extends plugin
       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","application/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","application/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("add");
     }
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of application with dn '%s' failed."),$this->dn));
index 8ce6dc1840255f6109c41e7f3382b2f0b63dccc1..a340977ca8e09cb7542f9346828f1f9444a856b1 100644 (file)
@@ -318,7 +318,7 @@ class applicationManagement 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 application!"));
-          @log::log("security","application/".get_class($this),$dn,array(),"Tried to trick deletion.");
+          new log("security","application/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
         /* Remove lock file after successfull deletion */
         del_lock ($dn);
@@ -402,7 +402,7 @@ class applicationManagement 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 application!"));
-        @log::log("security","application/".get_class($this),$dn,array(),"Tried to trick deletion.");
+        new log("security","application/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
       /* Remove lock file after successfull deletion */
index 2b637e06e938cf90deb3151edfae60222a0b31ea..7a0c3d8401f684ee9b9f31806db777037083c443 100644 (file)
@@ -100,7 +100,7 @@ class department extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","department/".get_class($this),$this->dn);
+      new log("view","department/".get_class($this),$this->dn);
     }
 
                /* Reload departments */
@@ -193,7 +193,7 @@ class department extends plugin
                $ldap= $this->config->get_ldap_link();
                $ldap->cd ($this->dn);
                $ldap->recursive_remove();
-    @log::log("remove","department/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","department/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of department with dn '%s' failed."),$this->dn));
 
                /* Optionally execute a command after we're done */
@@ -368,12 +368,12 @@ class department extends plugin
                if (count($a)){
                        $this->cleanup();
                        $ldap->modify ($this->attrs); 
-      @log::log("modify","department/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","department/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
                        $this->handle_post_events('modify');
                } else {
                        $ldap->add($this->attrs);
                        $this->handle_post_events('add');
-      @log::log("create","department/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","department/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
                }
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of department with dn '%s' failed."),$this->dn));
 
index e041ac882622d193a28700fd6b3ff44aa2d16679..b68058fd4a06cf25368a6a3459082ae75c034be5 100644 (file)
@@ -150,7 +150,7 @@ class faiHook extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","fai/".get_class($this),$this->dn);
+      new log("view","fai/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -394,7 +394,7 @@ class faiHook extends plugin
 
     prepare_to_save_FAI_object($use_dn,array(),true);
 
-    @log::log("remove","fai/".get_class($this),$use_dn,$this->attributes);
+    new log("remove","fai/".get_class($this),$use_dn,$this->attributes);
 
     foreach($this->SubObjects as $name => $obj){
 #      $use_dn = str_ireplace( get_release_dn($this->dn), $_SESSION['faifilter']['branch'], $obj['dn']);
@@ -444,9 +444,9 @@ class faiHook extends plugin
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/hook with dn '%s' failed."),$this->dn));
 
     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);
     }
 
     /* Do object tagging */
index 0488ed3cef1f0df983babc5fb6f76b079216bb98..52a9bbd122956820a166ad816599cef522a552b6 100644 (file)
@@ -247,7 +247,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 +318,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 +407,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 +513,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 
          */
index 4b00f808841ee0813c361155553acc60cc36d91f..5b9da7159a462d8f5a9868cb12b6671129ac309c 100644 (file)
@@ -173,7 +173,7 @@ class faiPackage extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","fai/".get_class($this),$this->dn);
+      new log("view","fai/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -343,7 +343,7 @@ class faiPackage extends plugin
 
     prepare_to_save_FAI_object($use_dn,array(),true);
 
-    @log::log("remove","fai/".get_class($this),$use_dn,$this->attributes);
+    new log("remove","fai/".get_class($this),$use_dn,$this->attributes);
 
     foreach($this->ConfiguredPackages as $pkgname => $attrs){
       foreach($attrs as $name => $attr){
@@ -483,9 +483,9 @@ class faiPackage extends plugin
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/package list with dn '%s' failed."),$this->dn));
     
     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);
     }
 
     /* Do object tagging */
index 7825da40d30baf24a70c0fc0d59cec6f4b191e23..7ac1a29175df45594d186243b5f23dff82c575ef 100644 (file)
@@ -126,7 +126,7 @@ class faiPartitionTable extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","fai/".get_class($this),$this->dn);
+      new log("view","fai/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -350,7 +350,7 @@ class faiPartitionTable extends plugin
 
     prepare_to_save_FAI_object($use_dn,array(),true);
 
-    @log::log("remove","fai/".get_class($this),$use_dn,$this->attributes);   
+    new log("remove","fai/".get_class($this),$use_dn,$this->attributes);   
  
     foreach($this->disks as $disk){
 
@@ -417,9 +417,9 @@ class faiPartitionTable extends plugin
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/partition table with dn '%s' failed."),$this->dn));
 
     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);
     }
  
     /* Do object tagging */
index 0c8ef80a9ea99b2337b9633d7f5acfb80c861576..f7ec6810c13d5504306cd059b7a515dd3c2d5828 100644 (file)
@@ -208,7 +208,7 @@ class faiProfile extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","fai/".get_class($this),$this->dn);
+      new log("view","fai/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -376,7 +376,7 @@ class faiProfile extends plugin
       $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");    
   }
@@ -437,9 +437,9 @@ class faiProfile extends plugin
     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));
index 58e8aed414304844bb96ebdc4b121daf75771473..9c01f5489e6881b34ab391bb936b8bf2cd7c40de 100644 (file)
@@ -143,7 +143,7 @@ class faiScript extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","fai/".get_class($this),$this->dn);
+      new log("view","fai/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -391,7 +391,7 @@ class faiScript extends plugin
         $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);
       
@@ -443,9 +443,9 @@ class faiScript extends plugin
     show_ldap_error($ldap->get_error(), sprintf(_("Creating of FAI/script with dn '%s' failed."),$this->dn));
 
     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);
     }
 
     /* Do object tagging */
index e0af9e9fee0c6369bdcd3fed3828f09804e11a91..e2fe6d383f590f44754acd95477e8212290b3fca 100644 (file)
@@ -126,7 +126,7 @@ class faiTemplate extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","fai/".get_class($this),$this->dn);
+      new log("view","fai/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -377,7 +377,7 @@ class faiTemplate extends plugin
     }
 
     prepare_to_save_FAI_object($use_dn,array(),true);
-    @log::log("remove","fai/".get_class($this),$use_dn,$this->attributes);
+    new log("remove","fai/".get_class($this),$use_dn,$this->attributes);
 
     foreach($this->SubObjects as $name => $obj){
 #      $use_dn = str_ireplace( get_release_dn($this->dn), $_SESSION['faifilter']['branch'], $obj['dn']);
@@ -422,9 +422,9 @@ class faiTemplate extends plugin
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/template with dn '%s' failed."),$this->dn));
 
     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);
     }
 
     /* Do object tagging */
index b31e013177d32be576b2562c5d4d62eaeff39952..dce2b16f39e5b03985595b8e40e025480c95d019 100644 (file)
@@ -112,7 +112,7 @@ class faiVariable extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","fai/".get_class($this),$this->dn);
+      new log("view","fai/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -289,7 +289,7 @@ class faiVariable extends plugin
       }
   
       prepare_to_save_FAI_object($use_dn,array(),true);
-      @log::log("remove","fai/".get_class($this),$use_dn,$this->attributes);
+      new log("remove","fai/".get_class($this),$use_dn,$this->attributes);
 
       foreach($this->SubObjects as $name => $obj){
         $use_dn = preg_replace("/".normalizePreg(get_release_dn($this->dn))."/i", $_SESSION['faifilter']['branch'], $obj['dn']);
@@ -338,9 +338,9 @@ class faiVariable extends plugin
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/variable with dn '%s' failed."),$this->dn));
 
     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);
     }
  
     /* Do object tagging */
index 753352db10a1f52d445310722198096ed47cbd13..10e3294e622b751016e85fe0ad611eb69e79be3d 100644 (file)
@@ -385,7 +385,7 @@ class appgroup extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","groups/".get_class($this),$this->dn);
+      new log("view","groups/".get_class($this),$this->dn);
     }
 
     /* Check if department was selected */ 
@@ -923,7 +923,7 @@ class appgroup extends plugin
     $this->cleanup();
     
     $ldap->modify ($this->attrs); 
-    @log::log("remove","group/".get_class($this),$use_dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","group/".get_class($this),$use_dn,array_keys($this->attrs),$ldap->get_error());
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of groups/applications with dn '%s' failed."),$this->dn));
 
     /* Optionally execute a command after we're done */
@@ -979,9 +979,9 @@ class appgroup extends plugin
     $ldap->modify ($this->attrs); 
 
     if($this->initially_was_account){
-      @log::log("modify","group/".get_class($this),$use_dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","group/".get_class($this),$use_dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","group/".get_class($this),$use_dn,array_keys($this->attrs),$ldap->get_error()); 
+      new log("create","group/".get_class($this),$use_dn,array_keys($this->attrs),$ldap->get_error()); 
     }   
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of groups/applications with dn '%s' failed."),$this->dn));
index 75d3f4218634d47801d33e946380ff9f907c952c..a80ddd9444f984c753e63235341fcae342bb914c 100644 (file)
@@ -184,7 +184,7 @@ class group extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","groups/".get_class($this),$this->dn);
+      new log("view","groups/".get_class($this),$this->dn);
     }
 
     /* Do we represent a valid group? */
@@ -520,7 +520,7 @@ class group extends plugin
     $ldap->rmdir($this->dn);
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of groups/generic with dn '%s' failed."),$this->dn));
 
-    @log::log("remove","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     /* Delete references to object groups */
     $ldap->cd ($this->config->current['BASE']);
@@ -747,9 +747,9 @@ class group extends plugin
     $ldap->$mode($this->attrs);
 
     if($this->initially_was_account){
-      @log::log("modify","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     $ret= 0;
index e3dd2ebac465b396fb7f46d8158ae13a0cecb303..a7225c4dbdee4c4884dc9a2362021c477f104cdf 100644 (file)
@@ -303,7 +303,7 @@ class mailgroup extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","groups/".get_class($this),$this->dn);
+      new log("view","groups/".get_class($this),$this->dn);
     }
 
     /* Load templating engine */
@@ -692,7 +692,7 @@ class mailgroup extends plugin
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of groups/mail with dn '%s' failed."),$this->dn));
 
 
-    @log::log("remove","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     /* Optionally execute a command after we're done */
     $this->handle_post_events("remove");
@@ -891,9 +891,9 @@ I: Only insider delivery */
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of groups/mail with dn '%s' failed."),$this->dn));
     
     if($this->initially_was_account){
-      @log::log("modify","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());  
+      new log("create","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());  
     }
     
 
index 6fd51ecd3553d31269c4af3524967cb3ff1dc872..de6a7fb56ad7de77806e33a394595e63ac1bc955 100644 (file)
@@ -281,7 +281,7 @@ class groupManagement 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 group!"));
-            @log::log("security","groups/".get_class($this),$dn,array(),"Tried to trick deletion.");
+            new log("security","groups/".get_class($this),$dn,array(),"Tried to trick deletion.");
           }
           /* Remove lock file after successfull deletion */
           del_lock ($dn);
@@ -365,7 +365,7 @@ class groupManagement 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 group!"));
-        @log::log("security","groups/".get_class($this),$dn,array(),"Tried to trick deletion.");
+        new log("security","groups/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
       /* Remove lock file after successfull deletion */
index 882c2b8625551f1e8eea9a3a4109972eec20fac3..22b56bc94b123a13911905379c68c889bb7e0e83 100644 (file)
@@ -152,7 +152,7 @@ class mimetype extends plugin
 
     if(!$this->view_logged){
       $this->view_logged =TRUE;
-      @log::log("view","mimetypes/".get_class($this),$this->dn);
+      new log("view","mimetypes/".get_class($this),$this->dn);
     }
 
     $tmp = $this->plInfo();
@@ -460,12 +460,12 @@ class mimetype extends plugin
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify($this->attrs);
-      @log::log("modify","mimetypes/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","mimetypes/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","mimetypes/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","mimetypes/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of mime type/generic with dn '%s' failed."),$this->dn));
   }
@@ -478,7 +478,7 @@ class mimetype extends plugin
     $ldap = $this->config->get_ldap_link();
     $ldap->rmDir($this->dn);
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of mime type/generic with dn '%s' failed."),$this->dn));
-    @log::log("remove","mimetypes/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","mimetypes/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     /* Optionally execute a command after we're done */
     $this->handle_post_events("remove");
index fc87bec435a022931c95e0bfcabdafc23ca5b999..4955d2fe7677f72c5a0fa187469c9730ee5161f0 100755 (executable)
@@ -315,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!"));
-          @log::log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
+          new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
         /* Remove lock file after successfull deletion */
         del_lock ($dn);
@@ -399,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!"));
-        @log::log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
+        new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
       /* Remove lock file after successfull deletion */
index 933dbb62abdb98979e9bb25cdd1a43cb1223c314..1040dc626a0269fb76e3709574f24860acc9f09f 100644 (file)
@@ -31,7 +31,7 @@ class mailogroup extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","ogroups/".get_class($this),$this->dn);
+      new log("view","ogroups/".get_class($this),$this->dn);
     }
 
 
@@ -110,9 +110,9 @@ class mailogroup extends plugin
     $ldap->modify ($this->attrs); 
 
     if($this->initially_was_account){
-      @log::log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of object group/mail with dn '%s' failed."),$this->dn));
@@ -148,7 +148,7 @@ class mailogroup extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    @log::log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of object group/mail with dn '%s' failed."),$this->dn));
   }
index d9114eb4edaff2c9f40607d609611a0bf7a656ce..db39046c49f64da9f323206fcf751ec16a79d978 100644 (file)
@@ -145,7 +145,7 @@ class ogroup extends plugin
 
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","ogroups/".get_class($this),$this->dn);
+      new log("view","ogroups/".get_class($this),$this->dn);
     }
 
 
@@ -654,9 +654,9 @@ class ogroup extends plugin
     $ldap->$mode($this->attrs);
 
     if($mode == "add"){
-      @log::log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     /* Trigger post signal */
@@ -678,7 +678,7 @@ class ogroup extends plugin
     $ldap->rmdir($this->dn);
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of object group/generic with dn '%s' failed."),$this->dn));
 
-    @log::log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     /* Trigger remove signal */
     $this->handle_post_events("remove");
index b5ab277dcaede6b45471f685cf1adaaa8090ab0c..14f9d9f97ef32540864659651ec9f2c68da3525b 100644 (file)
@@ -185,7 +185,7 @@ class ogroupManagement 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 object group!"));
-          @log::log("security","ogroups/".get_class($this),$dn,array(),"Tried to trick deletion.");
+          new log("security","ogroups/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
         /* Remove lock file after successfull deletion */
         del_lock ($dn);
@@ -264,7 +264,7 @@ class ogroupManagement 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 object group!"));
-        @log::log("security","ogroups/".get_class($this),$dn,array(),"Tried to trick deletion.");
+        new log("security","ogroups/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
       /* Remove lock file after successfull deletion */
index 6f615cff1a3a1c8890f11c004894c86aa2a1211b..813981e8eea8ecc505873511a7105c8417150d5e 100644 (file)
@@ -157,13 +157,13 @@ class phonequeue extends plugin
     $cfg_Current  = $this->goFonHomeServers[$this->goFonHomeServer];
     $r_current    =  @mysql_pconnect($cfg_Current['SERVER'],$cfg_Current['LOGIN'],$cfg_Current['PASSWORD']);
     if(!$r_current){
-      @log::log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_current));
+      new log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_current));
       return(sprintf(_("The MySQL home server '%s' isn't reachable as user '%s', check GOsa log for mysql error."),
             $cfg_Current['SERVER'],$cfg_Current['LOGIN']));
     }
     $db_current  =  @mysql_select_db($cfg_Current['DB'],$r_current);
     if(!$db_current){
-      @log::log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_current));
+      new log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_current));
       mysql_close($r_current);
       return( sprintf(_("Can't select database '%s' on home server '%s'."),$cfg_Current['DB'],$cfg_Current['SERVER']));
     }
@@ -176,13 +176,13 @@ class phonequeue extends plugin
       $cfg_Init  = $this->goFonHomeServers[$this->init_HomeServer] ;
       $r_init    =  @mysql_pconnect($cfg_Init['SERVER'],$cfg_Init['LOGIN'],$cfg_Init['PASSWORD']);
       if(!$r_init){
-        @log::log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_init));
+        new log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_init));
         return(sprintf(_("The MySQL initial home server '%s' isn't reachable as user '%s', check GOsa log for mysql error."),
               $cfg_Init['SERVER'],$cfg_Init['LOGIN']));
       }
       $db_init  =  @mysql_select_db($cfg_Init['DB'],$r_init);
       if(!$db_init){
-        @log::log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_init));
+        new log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_init));
         mysql_close($r_init);
         return( sprintf(_("Can't select database '%s' on initial home server '%s'."),$cfg_Init['DB'],$cfg_Init['SERVER']));
       }
@@ -198,7 +198,7 @@ class phonequeue extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","ogroups/".get_class($this),$this->dn);
+      new log("view","ogroups/".get_class($this),$this->dn);
     }
 
     if(isset($_POST['modify_state'])){
@@ -379,7 +379,7 @@ class phonequeue extends plugin
         foreach($delete as $sql){
           $res = @mysql_query($sql,$res_cur);
           if(!$res){
-            @log::log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_current));
+            new log("debug","ogroups/".get_class($this),"",array(),@mysql_error($r_current));
             return(_("Error while removing old queue entries from database.").
                 "&nbsp;"._("Please have a look a the gosa logfiles."));
           }
@@ -439,7 +439,7 @@ class phonequeue extends plugin
       $query = "SELECT * FROM ".$cfg_Current['QUEUE_TABLE']."  WHERE name='".$this->old_cn."';";
       $res   = mysql_query($query,$res_cur);
       if(!$res){
-        @log::log("debug","ogroups/".get_class($this),"",array(),@mysql_error($res_cur));
+        new log("debug","ogroups/".get_class($this),"",array(),@mysql_error($res_cur));
         return(_("Could not detect old queue entry, query failed.")."&nbsp;"._("Please have a look a the gosa logfiles."));
       }
       $cnt = mysql_affected_rows($res_cur);
@@ -734,7 +734,7 @@ class phonequeue extends plugin
       foreach($SQL as $query)
       $res   = mysql_query($query,$res_cur);
       if(!$res){
-        @log::log("debug","ogroups/".get_class($this),"",array(),@mysql_error($res_cur));
+        new log("debug","ogroups/".get_class($this),"",array(),@mysql_error($res_cur));
         return(_("Mysql query failed.")."&nbsp;"._("Please have a look a the gosa logfiles."));
       }
     }
@@ -835,9 +835,9 @@ class phonequeue extends plugin
     $ldap->modify ($this->attrs); 
 
     if($this->initially_was_account){
-      @log::log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), _("Saving phone queue failed"));
@@ -892,7 +892,7 @@ class phonequeue extends plugin
     $ldap->cd($this->dn);
     $this->cleanup();
     $ldap->modify ($this->attrs); 
-    @log::log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     show_ldap_error($ldap->get_error(), _("Removing phone queue failed"));
   }
 
index a05c6a1c0de4fbb3195d818ada9e9cd70fd6ec28..aa913640d9b6c06fe069b46a1527d232d5d2923f 100644 (file)
@@ -129,7 +129,7 @@ class termgroup extends plugin
     $ldap->cd($this->orig_dn);
     $ldap->modify($this->attrs);
     $this->handle_post_events("remove");
-    @log::log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
   }
 
 
@@ -177,7 +177,7 @@ class termgroup extends plugin
 
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","ogroups/".get_class($this),$this->dn);
+      new log("view","ogroups/".get_class($this),$this->dn);
     }
 
     /*************** 
@@ -369,9 +369,9 @@ class termgroup extends plugin
     $ldap->modify ($this->attrs);
 
     if($this->initially_was_account){
-      @log::log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     if(!$this->didAction){
index ef4308c47d3e9985679c0913d443adc6f7adc93e..20bb0c09805f92307c139dce6d79f96e99224833 100644 (file)
@@ -48,7 +48,7 @@ class componentGeneric extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","component/".get_class($this),$this->dn);
+      new log("view","component/".get_class($this),$this->dn);
     }
 
     /* Do we represent a valid phone? */
@@ -130,7 +130,7 @@ class componentGeneric extends plugin
     $this->netConfigDNS->remove_from_parent();
     $ldap->rmdir($this->dn);
     
-    @log::log("remove","component/".get_class($this),$this->dn,$this->attributes,$ldap->get_error());
+    new log("remove","component/".get_class($this),$this->dn,$this->attributes,$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of system component/generic with dn '%s' failed."),$this->dn));
     $this->handle_post_events(array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
@@ -240,7 +240,7 @@ class componentGeneric extends plugin
       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","component/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","component/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
       
     } else {
@@ -251,7 +251,7 @@ class componentGeneric extends plugin
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify ($this->attrs); 
-      @log::log("modify","component/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","component/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("modify",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
     }
 
index 03e5712dbbc2b2cdeda4bb43aada367d526e93ca..2859930ea078954314811be2400244db6d37e0e9 100644 (file)
@@ -121,7 +121,7 @@ class glpiAccount extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","all/".get_class($this),$this->dn);
+      new log("view","all/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -673,11 +673,11 @@ class glpiAccount extends plugin
       $this->handle = new glpiDB($this->data['SERVER'],$this->data['LOGIN'],$this->data['PASSWORD'],$this->data['DB']);
       if($this->initially_was_account){
         $this->handle->removeComputerInformations($this->dn); 
-        @log::log("remove","undefined/".get_class($this),$this->dn);
+        new log("remove","undefined/".get_class($this),$this->dn);
       }
     }else{
       print_red(_("Can't remove glpi account, while mysql extension is missing."));
-      @log::log("remove","undefined/".get_class($this),$this->dn,array(),_("Can't remove glpi account, while mysql extension is missing."));
+      new log("remove","undefined/".get_class($this),$this->dn,array(),_("Can't remove glpi account, while mysql extension is missing."));
     }
   
   }
@@ -737,10 +737,10 @@ class glpiAccount extends plugin
       /* check if we have to update, add */
       if($this->initially_was_account&&$this->is_account){
         $this->handle->updateComputerInformations($attrs,$this->orig_dn);
-        @log::log("modify","undefined/".get_class($this),$this->dn);
+        new log("modify","undefined/".get_class($this),$this->dn);
       }elseif($this->is_account){
         $this->handle->addComputerInformations($attrs,$this->dn);
-        @log::log("create","undefined/".get_class($this),$this->dn);
+        new log("create","undefined/".get_class($this),$this->dn);
       }
       $tmp = $this->handle->getComputerInformations($this->dn);
       $this->handle->addDevicesToComputer($this->usedDevices,$tmp[0]['ID']);
index dd69e23012037cbca7ad17228d75b1104330ca77..9645a1e0bec1375547e32c09ba87f79dce3991da 100644 (file)
@@ -136,7 +136,7 @@ class glpiPrinterAccount extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","printer/".get_class($this),$this->dn);
+      new log("view","printer/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -656,7 +656,7 @@ class glpiPrinterAccount extends plugin
     $this->handle = new glpiDB($this->data['SERVER'],$this->data['LOGIN'],$this->data['PASSWORD'],$this->data['DB']);
     if($this->initially_was_account){
       $this->handle->removePrinterInformations($this->dn);
-      @log::log("remove","printer/".get_class($this),$this->dn); 
+      new log("remove","printer/".get_class($this),$this->dn); 
     }
   }
 
@@ -717,10 +717,10 @@ class glpiPrinterAccount extends plugin
       $this->handle = new glpiDB($this->data['SERVER'],$this->data['LOGIN'],$this->data['PASSWORD'],$this->data['DB']);
       if($this->initially_was_account&&$this->is_account){
         $this->handle->updatePrinterInformations($attrs,$this->dn);
-        @log::log("modify","printer/".get_class($this),$this->dn); 
+        new log("modify","printer/".get_class($this),$this->dn); 
       }elseif($this->is_account){
         $this->handle->addPrinterInformations($attrs,$this->dn);
-        @log::log("create","printer/".get_class($this),$this->dn); 
+        new log("create","printer/".get_class($this),$this->dn); 
       }
       $tmp = $this->handle->getPrinterInformations($this->dn);
       $this->handle->addAttachmentsToPrinter($this->usedAttachments,$tmp[0]['ID']);
index b5d282a01dbd7c853a9b325b651e910788847087..e4e3f8b984507920ab4e800a9fde1a827920b16b 100644 (file)
@@ -34,7 +34,7 @@ class goCupsServer extends goService{
   { 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $smarty = get_smarty(); 
index c791b6eb8bf1cc45bac8cfdb198aa90ac2a3df23..074df70864f8f2ba32ae2818c238b356efb282d7 100644 (file)
@@ -39,7 +39,7 @@ class goFaxServer extends goService {
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     /* Assign acls */
index 7457444c8e796beb03b2eaed7a447a50903adaaa..7408a7800ae6ce7260cdfe6470e48e39da609b45 100644 (file)
@@ -40,7 +40,7 @@ class goFonServer extends goService{
   { 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $smarty = get_smarty(); 
index ec35b1f24afc2d1d928ccc867a00a0bae0ae707b..83ee39ef92740c91017d7c75a7a8da238626bf4e 100644 (file)
@@ -39,7 +39,7 @@ class goGlpiServer extends goService {
   { 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $smarty = get_smarty(); 
index d08972ca7c4a5c3375a0444930434217d695c67e..3fb4fe9578ce7508936bed77f5800e94d8f30e0b 100644 (file)
@@ -63,7 +63,7 @@ class goImapServer extends goService {
  
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
  
     /* set new status */
index 51802b1cdca591fcb4b91a5003f416ad26adba3d..e49c2ba4f320965979b3e6105836f20b5f29e361 100644 (file)
@@ -38,7 +38,7 @@ class goKrbServer extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $tmp = $this->plinfo();
index b8d151ee302d240185354e674cd58d134a6c9a9d..7e35f52e3af4d0cbc4479bfbf56b69f30d9f6746 100644 (file)
@@ -35,7 +35,7 @@ class goLdapServer extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $smarty = get_smarty(); 
index a28990812aa665c3363766540cc121b9b62ccc3c..4d95ca8726afe7d34e43b499c4f7fe47081fafa0 100644 (file)
@@ -38,7 +38,7 @@ class goLogDBServer extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $tmp = $this->plInfo();
index 25d2fd827f0f50fac3b135c5aef5958039d4dd61..251d2e53b15370400d50ac8a315f797eddb69e7e 100644 (file)
@@ -195,7 +195,7 @@ class goMailServer extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $tmp = $this->plInfo();
@@ -583,10 +583,10 @@ class goMailServer extends goService{
     show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/mail with dn '%s' failed."),$this->dn));
     if($this->initially_was_account){
       $this->handle_post_events("modify");
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());  
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());  
     }else{
       $this->handle_post_events("add");
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());  
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());  
     }
 
   }
index 26434eefba5236985f1b2d056803b40b35c0bb37..bba487bc32719ff45dc1b3bc32d6846815f9dcbe 100644 (file)
@@ -46,7 +46,7 @@ class goNtpServer extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     /* Here we add a new entry  */
@@ -99,10 +99,10 @@ class goNtpServer extends goService{
     show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/goNtpServer with dn '%s' failed."),$this->dn));
     if($this->initially_was_account){
       $this->handle_post_events("modify");
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
       $this->handle_post_events("add");
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
   }
 
index bf4b63bcb6c9cfd0e010e468ff898100156cac71..49c44125f615eb26c5d9677eba050c8118f3eab1 100644 (file)
@@ -32,7 +32,7 @@ class goService extends plugin{
   {
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $str ="<div style='width:100%; text-align:right;'>".
@@ -97,7 +97,7 @@ class goService extends plugin{
       
     }
 
-    @log::log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of server services/".get_class($this)." - (".$this->DisplayName.") with dn '%s' failed."),$this->dn));
     $this->handle_post_events("remove");
@@ -119,11 +119,11 @@ class goService extends plugin{
       $ldap->add($this->attrs);
     }
     if($this->initially_was_account){
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("modify");
     }else{
       $this->handle_post_events("add");
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of server services/".get_class($this)." - (".$this->DisplayName.") with dn '%s' failed."),$this->dn));
   }
index 315a6e26a6751400825b32c51a027e9783c6b747..d12c5a07b8222160c397e28a7648cf885d4c83e7 100644 (file)
@@ -57,7 +57,7 @@ class goShareServer extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
 
@@ -193,10 +193,10 @@ class goShareServer extends goService{
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of system server/shares with dn '%s' failed."),$this->dn));
     if($this->initially_was_account){
       $this->handle_post_events("modify");
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
       $this->handle_post_events("add");
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
   }
 
index 55781fbbac9046696acae00253d9bf27a2f26d70..329522fa74097934aa56de03433b2e1ecdb49ba5 100644 (file)
@@ -91,7 +91,7 @@ class gospamserver extends goService{
     
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     /* If displayed, it is ever true*/
@@ -276,10 +276,10 @@ class gospamserver extends goService{
     }
     if($this->initially_was_account){
       $this->handle_post_events("modify");
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
       $this->handle_post_events("add");
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of server services/spamassassin with dn '%s' failed."),$this->dn));
index 2adc6886ee1f04ae2eed196a7943fd3f9d487202..e0935bc2edceccbb7b301920b8d5a4de4eea3333 100644 (file)
@@ -22,7 +22,7 @@ class goSpamServerRule extends plugin {
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
                foreach($this->attributes as $attr){
index 4c242a3291b264190c0570b74f864aef14e83038..b94093026aeccc62fac5fda973f875a2dd8b9f46 100644 (file)
@@ -34,7 +34,7 @@ class goSyslogServer extends goService{
   { 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
 
index d6afed9fac5f61145f59467c2ce5a1dae7ce3f2e..21b721b761cfa80a56ea5c6343f1aeeb30ebea09 100644 (file)
@@ -39,7 +39,7 @@ class goTerminalServer extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
   
@@ -85,10 +85,10 @@ class goTerminalServer extends goService{
     show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/terminalServer with dn '%s' failed."),$this->dn));
     if($this->initially_was_account){
       $this->handle_post_events("modify");
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
       $this->handle_post_events("add");
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
   }
 
index 287f915d5b0da40d0444d2923a474ce40a8e1839..7e02b97016a38d92b44ee568a0ad67cc91230ba5 100644 (file)
@@ -66,7 +66,7 @@ class govirusserver extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
 
@@ -147,10 +147,10 @@ class govirusserver extends goService{
     }
     if($this->initially_was_account){
       $this->handle_post_events("modify");
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
       $this->handle_post_events("add");
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of server services/anti virus with dn '%s' failed."),$this->dn));
index 6bb2b60ced11ac3c7aff90e01c54979e6efd12fc..4f40407a938a6275e84470c3cfc041d20a4df5c4 100644 (file)
@@ -35,7 +35,7 @@ class gosaLogServer extends goService{
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     $tmp = $this->plInfo();
index aa78ad9e076c015c953a7a85c7b0077ba36b725e..c5d35fe8702223ee7dbf8ad7ec2ab180bcd51494 100644 (file)
@@ -115,7 +115,7 @@ class phoneGeneric extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","phone/".get_class($this),$this->dn);
+      new log("view","phone/".get_class($this),$this->dn);
     }
 
     /* Do we represent a valid phone? */
@@ -273,7 +273,7 @@ class phoneGeneric extends plugin
       $this->netConfigDNS->remove_from_parent();
       $ldap->rmdir($this->dn);
   
-      @log::log("remove","phone/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","phone/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of system phone/generic with dn '%s' failed."),$this->dn));
       $this->handle_post_events("remove",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
@@ -401,7 +401,7 @@ class phoneGeneric extends plugin
       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","phone/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","phone/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
     } else {
       if ($this->orig_dn != $this->dn){
@@ -411,7 +411,7 @@ class phoneGeneric extends plugin
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify ($this->attrs); 
-      @log::log("modify","phone/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","phone/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       // $user_phone_reload   
       $ldap->cd ($this->config->current['BASE']); 
index 52ae6e3457764e92966855ae11ba0874eff734a8..2dfbc4cd4b61dff4a13dd5afd74b35c8570986b8 100644 (file)
@@ -255,7 +255,7 @@ class printgeneric extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","printer/".get_class($this),$this->dn);
+      new log("view","printer/".get_class($this),$this->dn);
     }
 
 
@@ -594,7 +594,7 @@ class printgeneric extends plugin
       $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());
+      new 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",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
@@ -832,13 +832,13 @@ class printgeneric extends plugin
 
       $ldap->add($this->attrs);
       $this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
-      @log::log("create","printer/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new 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",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
-      @log::log("modify","printer/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new 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));
 
index 5f04fbbf1e71e0f980aae35f5233a1cc8f57f06a..42eaf2b9c90363f8c66bada91ba8568d5e53bf00 100644 (file)
@@ -25,7 +25,7 @@ class servdhcp extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
@@ -54,7 +54,7 @@ class servdhcp extends plugin
   function remove_from_parent()
   {
     /* This cannot be removed... */
-    @log::log("remove","unknown/".get_class($this),$this->dn);
+    new log("remove","unknown/".get_class($this),$this->dn);
   }
 
 
@@ -79,7 +79,7 @@ class servdhcp extends plugin
   function save()
   {
     plugin::save();
-    @log::log("modfiy","unknown/".get_class($this),$this->dn);
+    new log("modfiy","unknown/".get_class($this),$this->dn);
 
     /* Optionally execute a command after we're done */
     #$this->handle_post_events($mode);
index 485eede2bd72ca312814574787f729ac4ad70cef..50cdb38d0f53926852416608d91c31806a97828f 100644 (file)
@@ -63,7 +63,7 @@ class servdns extends goService
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff 
@@ -300,7 +300,7 @@ class servdns extends goService
       foreach($tmp['zoneUpdates'] as $dn => $attrs){
         $ldap->cd($dn);
         $ldap->modify($attrs);
-        @log::log("modfiy","unknown/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("modfiy","unknown/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
         show_ldap_error($ldap->get_error(), sprintf(_("Updating of system server/dns with dn '%s' failed."),$this->dn));
       }
     }
@@ -310,7 +310,7 @@ class servdns extends goService
     foreach($tmp['del'] as $dn => $del){
       $ldap->cd($dn);
       $ldap->rmdir_recursive($dn);
-      @log::log("remove","unknown/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","unknown/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of system server/dns with dn '%s' failed."),$this->dn));
     }
 
index a9e93f5a59c6686592181e893a259ba81deda838..d44b6763b8cb800dce8859222f7f59bb71f3dfcb 100644 (file)
@@ -92,7 +92,7 @@ class servgeneric extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     /* Do we represent a valid server? */
@@ -240,7 +240,7 @@ class servgeneric extends plugin
     $ldap= $this->config->get_ldap_link();
     $ldap->rmdir($this->dn);
 
-    @log::log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of system server/generic with dn '%s' failed."),$this->dn)); 
 
@@ -334,7 +334,7 @@ class servgeneric extends plugin
       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $mode= "add";
     } else {
    
@@ -354,7 +354,7 @@ class servgeneric extends plugin
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify ($this->attrs); 
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       $mode= "modify";
     }
index 8c819844268b3bfe87aa82adcc014dd9f883358b..aa57ad1aec7ec53d9a16a09911db5cc52262d339 100644 (file)
@@ -87,7 +87,7 @@ class servkolab extends goService {
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     /***************  
@@ -214,7 +214,7 @@ class servkolab extends goService {
       show_ldap_error($ldap->get_error(), sprintf(_("Removing host entry from system server/kolab with dn '%s' failed."),$this->dn));
     }
 
-    @log::log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     /* Optionally execute a command after we're done */
     $this->handle_post_events("remove");
@@ -351,9 +351,9 @@ class servkolab extends goService {
     $ldap->$mode($this->attrs);
 
     if($mode == "add"){
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving system server/kolab with dn '%s' failed."),$this->dn));
index 15d15f68b7afc2e75aefa292503a94930e0cbe14..fbacff14202baafc3951c13329c492dd11c65829 100644 (file)
@@ -86,7 +86,7 @@ class servnfs extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     /* Fill templating stuff */
index 27bb610f73c6c9257e7907199fc1c0a65c59c502..e188062e563843a9d752793256552d1c8bf6122f 100644 (file)
@@ -93,7 +93,7 @@ class servrepository extends goService
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","server/".get_class($this),$this->dn);
+      new log("view","server/".get_class($this),$this->dn);
     }
 
     if(!$this->fai_activated){
@@ -354,9 +354,9 @@ class servrepository extends goService
     }
 
     if($this->initially_was_account){
-      @log::log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
   }
 
index b3e614ea48a454876d76e07356312212b3e0556c..f20efe5a82914d9583c4ae5ee85f064c7abfd82f 100644 (file)
@@ -405,7 +405,7 @@ class systems extends plugin
             $attrs['gotoRootPasswd']= crypt($_POST['new_password'],substr(session_id(),0,2));
           }
           $ldap->modify($attrs);
-          @log::log("security","systems/".get_class($this),$this->dn,array_keys($attrs),$ldap->get_error());
+          new log("security","systems/".get_class($this),$this->dn,array_keys($attrs),$ldap->get_error());
         }else{
           print_red(_("You are not allowed to change the password for this object."));
         }
@@ -519,7 +519,7 @@ class systems 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","systems/".get_class($this),$dn,array(),"Tried to trick deletion.");
+            new log("security","systems/".get_class($this),$dn,array(),"Tried to trick deletion.");
           }
           /* Remove lock file after successfull deletion */
           del_lock ($dn);
@@ -653,7 +653,7 @@ class systems 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","systems/".get_class($this),$dn,array(),"Tried to trick deletion.");
+        new log("security","systems/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
       /* Remove lock file after successfull deletion */
index d6b04fff5ca47f8724c5cdacc33b4cc1e0ead4d7..f12666aa6b269b24b783d5832297070b543769c5 100644 (file)
@@ -97,7 +97,7 @@ class termDNS extends plugin
     $this->initially_was_account = $this->DNS_is_account;
 
     if($this->DNS_is_account){
-      @log::log("view","unknown/".get_class($this),$this->dn);
+      new log("view","unknown/".get_class($this),$this->dn);
     }
   }
 
@@ -271,7 +271,7 @@ class termDNS extends plugin
       foreach($tmp['del'] as $dn => $del){
         $ldap->cd($dn);
         $ldap->rmdir_recursive($dn);
-        @log::log("remove","unknown/".get_class($this),$dn);
+        new log("remove","unknown/".get_class($this),$dn);
       }
     }
   }
@@ -486,7 +486,7 @@ class termDNS extends plugin
         }
       }
 
-      @log::log("modify","unknown/".get_class($this),$dn,array_keys($attrs),$ldap->get_error());
+      new log("modify","unknown/".get_class($this),$dn,array_keys($attrs),$ldap->get_error());
 
       /* Display errors 
        */
index 312b6f6cd104363367287dc0947d3b948e519e35..36afa8cbe518efbade39b9db8ab9ace318cc9df9 100644 (file)
@@ -146,7 +146,7 @@ class termgeneric extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","terminal/".get_class($this),$this->dn);
+      new log("view","terminal/".get_class($this),$this->dn);
     }
 
     /* Do we need to flip is_account state? */
@@ -352,7 +352,7 @@ class termgeneric extends plugin
         $this->netConfigDNS->remove_from_parent();
         $ldap->rmDir($this->dn);
   
-        @log::log("remove","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("remove","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
   
         show_ldap_error($ldap->get_error(), sprintf(_("Removing of object system terminal/generic with dn '%s' failed."),$this->dn));
 
@@ -519,13 +519,13 @@ class termgeneric extends plugin
         unset($this->attrs['gotoNtpServer']);
       }
       $ldap->add($this->attrs);
-      @log::log("create","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
     } else {
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify ($this->attrs); 
-      @log::log("modify","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("modify",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
     }
     
index ae731aec9caa3fee035a0df5911d0820ba65d03d..7ce3d2bb98c0d5e824287ff6854b223069676b6b 100644 (file)
@@ -64,7 +64,7 @@ class terminfo extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","terminal/".get_class($this),$this->dn);
+      new log("view","terminal/".get_class($this),$this->dn);
     }
 
     /* Do we represent a valid terminal? */
index 25751532b6ccb8a95a52c6d3efd25172b72d80e9..5f798720c293f23e5cb6f80548b32dd873996090 100644 (file)
@@ -253,7 +253,7 @@ class termservice extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","terminal/".get_class($this),$this->dn);
+      new log("view","terminal/".get_class($this),$this->dn);
     }
 
     /* Do we need to flip is_account state? */
@@ -352,7 +352,7 @@ class termservice extends plugin
 
   function remove_from_parent()
   {
-    @log::log("remove","terminal/".get_class($this),$this->dn,array_keys($this->attrs));
+    new log("remove","terminal/".get_class($this),$this->dn,array_keys($this->attrs));
     $this->handle_post_events("remove");
   }
 
@@ -460,7 +460,7 @@ class termservice extends plugin
     $ldap->cd($this->dn);
     $this->cleanup();
     $ldap->modify ($this->attrs); 
-    @log::log("modify","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("modify","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of object system terminal/service with dn '%s' failed."),$this->dn));
     $this->handle_post_events("modify");
index 7c45334801baa1334479abddafb4320caf1f8001..fa71aba613575fb63f84d63df207ca38ca4da314 100644 (file)
@@ -154,7 +154,7 @@ class termstartup extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","terminal/".get_class($this),$this->dn);
+      new log("view","terminal/".get_class($this),$this->dn);
     }
 
     /* Do we need to flip is_account state? */
@@ -295,7 +295,7 @@ class termstartup extends plugin
   {
     if($this->acl_is_removeable()){
       $this->handle_post_events("remove");
-      @log::log("remove","terminal/".get_class($this),$this->dn,array_keys($this->attrs));
+      new log("remove","terminal/".get_class($this),$this->dn,array_keys($this->attrs));
     }
   }
 
@@ -405,7 +405,7 @@ class termstartup extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    @log::log("modify","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("modify","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of system terminal/startup with dn '%s' failed."),$this->dn));
     $this->handle_post_events("modify");
index 020256dd24d77db22a6959b519a9d336d2ae9af6..dcf6e205136b094d6d5faf40d5dbe15d2668ca6a 100644 (file)
@@ -86,7 +86,7 @@ class wingeneric extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","winworkstation/".get_class($this),$this->dn);
+      new log("view","winworkstation/".get_class($this),$this->dn);
     }
 
 
@@ -151,7 +151,7 @@ class wingeneric extends plugin
     $this->netConfigDNS->remove_from_parent();
     $ldap= $this->config->get_ldap_link();
     $ldap->rmdir($this->dn);
-    @log::log("remove","winworkstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","winworkstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of system wingeneric/generic with dn '%s' failed."),$this->dn));
     $this->handle_post_events("remove");
 
@@ -251,7 +251,7 @@ class wingeneric extends plugin
       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","winworkstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","winworkstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("add");
     } else {
       if ($this->orig_dn != $this->dn){
@@ -261,7 +261,7 @@ class wingeneric extends plugin
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify ($this->attrs); 
-      @log::log("modify","winworkstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","winworkstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("modify");
     }
 
index d28d106bc26e309334efcc9d97dad67db422831f..26050acde5bdba9d8167d3ddd2e8f92ecb8c4528 100644 (file)
@@ -152,7 +152,7 @@ class workgeneric extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","workstation/".get_class($this),$this->dn);
+      new log("view","workstation/".get_class($this),$this->dn);
     }
 
     /* Do we need to flip is_account state? */
@@ -338,7 +338,7 @@ class workgeneric extends plugin
       $this->netConfigDNS->remove_from_parent();
       $ldap= $this->config->get_ldap_link();
       $ldap->rmdir($this->dn);
-      @log::log("remove","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of system workstation/generic with dn '%s' failed."),$this->dn));
 
       /* Optionally execute a command after we're done */
@@ -498,7 +498,7 @@ class workgeneric extends plugin
       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       show_ldap_error($ldap->get_error(), sprintf(_("Saving of system workstation/generic with dn '%s' failed."),$this->dn));
       if(!$this->didAction){
         $this->handle_post_events("add",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
@@ -510,7 +510,7 @@ class workgeneric extends plugin
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify ($this->attrs); 
-      @log::log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       if(!$this->didAction){
         $this->handle_post_events("modify",array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber));
index 370253fbe66bc39092295d892b797849a8dc2c05..d0d45262fdf991d43595a5c18a3c7874019eb0d3 100644 (file)
@@ -244,7 +244,7 @@ class workservice extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","workstation/".get_class($this),$this->dn);
+      new log("view","workstation/".get_class($this),$this->dn);
     }
 
     /* Do we need to flip is_account state? */
@@ -350,7 +350,7 @@ class workservice extends plugin
   function remove_from_parent()
   {
     $this->handle_post_events("remove");
-    @log::log("remove","workstation/".get_class($this),$this->dn);
+    new log("remove","workstation/".get_class($this),$this->dn);
   }
 
   /* Save data to object */
@@ -447,7 +447,7 @@ class workservice extends plugin
     $ldap->cd($this->dn);
     $this->cleanup();
     $ldap->modify ($this->attrs); 
-    @log::log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of system workstation/service with dn '%s' failed."),$this->dn));
     $this->handle_post_events("modify");
   }
index 4ce45768e3d2617db56bcf23390eeb6bac7d8b23..6991b3bb728d8c5326f53378bf215070c53140f2 100644 (file)
@@ -490,7 +490,7 @@ class workstartup extends plugin
 
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","workstation/".get_class($this),$this->dn);
+      new log("view","workstation/".get_class($this),$this->dn);
     }
 
     /* Do we need to flip is_account state? */
@@ -810,7 +810,7 @@ class workstartup extends plugin
   function remove_from_parent()
   {
     $this->handle_post_events("remove");
-    @log::log("remove","workstation/".get_class($this),$this->dn);
+    new log("remove","workstation/".get_class($this),$this->dn);
   }
 
   function generateDNSyn($release)
@@ -1092,7 +1092,7 @@ class workstartup extends plugin
 
     $this->cleanup();
     $ldap->modify ($this->attrs); 
-    @log::log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("modify","workstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of system workstation/startup with dn '%s' failed."),$this->dn));
     $this->handle_post_events("modify");
index 7f02cf1688c770268a0bdae70ad28e4bf01c1f01..63ba95115fe7216dae8183f3e698030db46cf603 100644 (file)
@@ -258,7 +258,7 @@ class userManagement extends plugin
             if (isset($config->data['MAIN']['EXTERNALPWDHOOK'])){
               exec($config->data['MAIN']['EXTERNALPWDHOOK']." ".$username." ".$_POST['new_password'], $resarr);
             }
-            @log::log("modify","users/".get_class($this),$this->usertab->dn,array(),"Password has been changed");
+            new log("modify","users/".get_class($this),$this->usertab->dn,array(),"Password has been changed");
             unset($this->usertab);
             $this->usertab= NULL;
           }
@@ -268,7 +268,7 @@ class userManagement extends plugin
             exec($config->data['MAIN']['EXTERNALPWDHOOK']." ".$username." ".$_POST['new_password'], $resarr);
           }
 
-          @log::log("modify","users/".get_class($this),$this->dn,array(),"Password has been changed");
+          new log("modify","users/".get_class($this),$this->dn,array(),"Password has been changed");
         }
       } else {
 
@@ -345,7 +345,7 @@ class userManagement extends plugin
           } else {
             print_red (sprintf(_("You are not allowed to delete the user '%s'!"),$dn));
             if(isset($this->ui->uid)){
-              @log::log("security","users/".get_class($this),$dn,array(),"Tried to trick deletion.");
+              new log("security","users/".get_class($this),$dn,array(),"Tried to trick deletion.");
             }
           }
           /* Remove lock file after successfull deletion */
@@ -422,7 +422,7 @@ class userManagement extends plugin
         print_red (_("You are not allowed to delete this user!"));
 
         if(isset($this->ui->uid)){
-          @log::log("security","users/".get_class($this),$this->dn,array(),"Tried to trick deletion.");
+          new log("security","users/".get_class($this),$this->dn,array(),"Tried to trick deletion.");
         }
       }
 
index 8c9fde5771c0982a9c4e142f9bdb29fd9ba38045..2776226330d9193bbddfbb168b9a7f275d60f881 100644 (file)
@@ -326,7 +326,7 @@ class blocklist extends plugin
       /* Log view */
       if(!$this->view_logged){
         $this->view_logged = TRUE;
-        @log::log("view","users/".get_class($this),$this->dn);
+        new log("view","users/".get_class($this),$this->dn);
       }
  
       /* set Account states, this is nescessary for get_allowed_bases */
@@ -525,7 +525,7 @@ class blocklist extends plugin
     $ldap= $this->config->get_ldap_link();
     $ldap->rmDir($this->dn);
 
-    @log::log("remove","gofaxlist/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","gofaxlist/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
   
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of blocklist with dn '%s' failed."),$this->dn));
     $this->clear_fields();
@@ -631,14 +631,14 @@ class blocklist extends plugin
       $ldap->cd($this->dn);
       $this->cleanup();
       $ldap->modify($this->attrs);
-      @log::log("modify","gofaxlist/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","gofaxlist/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("modify");
     } else {
       $ldap->cd($this->config->current['BASE']);
       $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
       $ldap->cd($this->dn);
       $ldap->add($this->attrs);
-      @log::log("create","gofaxlist/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","gofaxlist/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       $this->handle_post_events("add");
     }
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of blocklist with dn '%s' failed."),$this->dn));
index 50a3c9b373830361821531fd5f227feb9d40cc6b..985c13e07aab53ca4190cafc2ce130b33eeed120 100644 (file)
@@ -116,7 +116,7 @@ class gofaxAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Hickert : 11.11.05
@@ -629,7 +629,7 @@ class gofaxAccount extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/fax account with dn '%s' failed."),$this->dn));
 
@@ -753,9 +753,9 @@ class gofaxAccount extends plugin
 
     /* Log last action */
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/fax account with dn '%s' failed."),$this->dn));
index 2bc248c5d45b371f4fdebc5b26f95c14009291c7..d0d2b18ff019715c618c308650d15390d2513b5b 100644 (file)
@@ -68,7 +68,7 @@ class faxreport extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /************ 
index 41e574419d7565a0c3d89e605fd27ea181537606..4eba32b4658dd4a6a4ce26052c41dc9639c95040 100644 (file)
@@ -151,7 +151,7 @@ class conference extends plugin
     /* Log last action */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","gofonconference/".get_class($this),$this->dn);
+      new log("view","gofonconference/".get_class($this),$this->dn);
     }
 
     $smarty= get_smarty();
@@ -256,7 +256,7 @@ class conference extends plugin
     $ldap->cd ($this->dn);
     $ldap->recursive_remove();
 
-    @log::log("remove","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     /* Optionally execute a command after we're done */
     $this->handle_post_events('remove');
@@ -315,14 +315,14 @@ class conference extends plugin
     $cfg_Current  = $this->goFonHomeServers[$this->goFonHomeServer];
     $r_current    =  @mysql_pconnect($cfg_Current['SERVER'],$cfg_Current['LOGIN'],$cfg_Current['PASSWORD']);
     if(!$r_current){
-      @log::log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_current));
+      new log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_current));
 
       return(sprintf(_("The MySQL home server '%s' isn't reachable as user '%s', check GOsa log for mysql error."),
             $cfg_Current['SERVER'],$cfg_Current['LOGIN']));
     }
     $db_current  =  @mysql_select_db($cfg_Current['DB'],$r_current);
     if(!$db_current){
-      @log::log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_current));
+      new log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_current));
       mysql_close($r_current);
       return( sprintf(_("Can't select database '%s' on home server '%s'."),$cfg_Current['DB'],$cfg_Current['SERVER']));
     }
@@ -335,14 +335,14 @@ class conference extends plugin
       $cfg_Init  = $this->goFonHomeServers[$this->init_HomeServer] ;
       $r_init    =  @mysql_pconnect($cfg_Init['SERVER'],$cfg_Init['LOGIN'],$cfg_Init['PASSWORD']);
       if(!$r_init){
-        @log::log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_init));
+        new log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_init));
 
         return(sprintf(_("The MySQL initial home server '%s' isn't reachable as user '%s', check GOsa log for mysql error."),
               $cfg_Init['SERVER'],$cfg_Init['LOGIN']));
       }
       $db_init  =  @mysql_select_db($cfg_Init['DB'],$r_init);
       if(!$db_init){
-        @log::log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_init));
+        new log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_init));
         mysql_close($r_init);
         return( sprintf(_("Can't select database '%s' on initial home server '%s'."),$cfg_Init['DB'],$cfg_Init['SERVER']));
       }
@@ -431,7 +431,7 @@ class conference extends plugin
       $query = "SELECT id FROM ".$cfg_Current['EXT_TABLE']." WHERE exten='".$this->telephoneNumber."' OR '".$this->cn."';";
       $res = @mysql_query($query,$res_cur);
       if(!$res){
-        @log::log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($res_cur));
+        new log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($res_cur));
         return(_("Can not check if there are already some entries with given telephone number and/or cn in the destination home server.").
             "&nbsp;"._("Please have a look a the gosa logfiles."));
       }
@@ -443,7 +443,7 @@ class conference extends plugin
         /* Query and ensure that everything went fine */
         $res =  @mysql_query($SQL,$res_cur);
         if(!$res){
-          @log::log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($res_cur));
+          new log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($res_cur));
           return(_("Can not remove entries with some telephone number and/or cn from destination home server.").
               "&nbsp;"._("Please have a look a the gosa logfiles."));
         }
@@ -561,7 +561,7 @@ class conference extends plugin
     $query = "SELECT id FROM ".$cfg_Init['EXT_TABLE']." WHERE exten='".$this->old_tele_number."' OR '".$this->old_cn."';";
     $res = @mysql_query($query,$r_init);
     if(!$res){
-      @log::log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_init));
+      new log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_init));
       return(_("Can not check if entry exists in old database. Please have a look a the gosa logfiles."));
     }
    
@@ -574,7 +574,7 @@ class conference extends plugin
       /* Query and ensure that everything went fine */
       $res =  @mysql_query($SQL,$r_init);
       if(!$res){
-        @log::log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_init));
+        new log("debug","gofonconference/".get_class($this),"",array(),@mysql_error($r_init));
         return(_("Can not remove old entries from initial home server. Please have a look a the gosa logfiles."));
       }
 
@@ -673,9 +673,9 @@ class conference extends plugin
 
     /* Log last action */
     if($this->initially_was_account){
-      @log::log("modify","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","gofonconference/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of goFonConference/generic with dn '%s' failed."),$this->dn));
index 7c58872b430eb0a5fd8e17a31a5de6f0a705cf33..dc72ddd94f70a5136cd69951fb9d420b9970a218 100644 (file)
@@ -107,7 +107,7 @@ class fonreport extends plugin
     /* Log view */
     if(!$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","gofon/".get_class($this),$this->dn);
+      new log("view","gofon/".get_class($this),$this->dn);
     }
 
     /*****************
index 3163ec45abb1350731b9e52cf24d97db695c7453..05f761b0d2afdc17f026506bc409b5afba73a9d2 100755 (executable)
@@ -100,7 +100,7 @@ class macro extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","gofonmacro/".get_class($this),$this->dn);
+      new log("view","gofonmacro/".get_class($this),$this->dn);
     }
 
     /* Variables */
@@ -200,13 +200,13 @@ class macro extends plugin
     foreach($this->goFonHomeServers as $goFonHomeServer => $cfg_Current){
       $r_current    =  @mysql_pconnect($cfg_Current['SERVER'],$cfg_Current['LOGIN'],$cfg_Current['PASSWORD']);
       if(!$r_current){
-        @log::log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_current));
+        new log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_current));
         return(sprintf(_("The MySQL home server '%s' isn't reachable as user '%s', check GOsa log for mysql error."),
               $cfg_Current['SERVER'],$cfg_Current['LOGIN']));
       }
       $db_current  =  @mysql_select_db($cfg_Current['DB'],$r_current);
       if(!$db_current){
-        @log::log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_current));
+        new log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_current));
         mysql_close($r_current);
         return( sprintf(_("Can't select database '%s' on home server '%s'."),$cfg_Current['DB'],$cfg_Current['SERVER']));
       }
@@ -237,7 +237,7 @@ class macro extends plugin
         $db_current =  @mysql_select_db($Server['DB'],$r_current);
         $res = @mysql_query($query,$r_current);
         if(!$res){
-          @log::log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_current));
+          new log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_current));
           return(sprintf(_("Removing macro from '%s' failed. Check GOsa log for mysql error."),$Server['SERVER']));
         }
         @mysql_close($r_current);
@@ -345,7 +345,7 @@ class macro extends plugin
         $query  = preg_replace("/%TABLENAME%/",$cfg['EXT_TABLE'],$sql);
         $res    = @mysql_query($query,$r_con);
         if(!$res){
-          @log::log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_con));
+          new log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_con));
           return(sprintf(_("Insert of new macro failed for server '%s'."),$cfg['SERVER']));
         }
         @mysql_close($r_con);
@@ -488,7 +488,7 @@ class macro extends plugin
 
     /* Remove phone macro */ 
     $ldap->rmDir($this->dn);
-    @log::log("remove","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); 
+    new log("remove","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of goFonMacro/generic account with dn '%s' failed."),$this->dn));
 
     /* Delete references to object groups */
@@ -536,9 +536,9 @@ class macro extends plugin
 
       /* Log last action */
       if($this->initially_was_account){
-        @log::log("modify","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("modify","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }else{
-        @log::log("create","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("create","gofonmacro/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }
     }
   }
index 8312702cbb0d0f3f35a9403b8a297bf23a894302..f7a0e337f04a4e1c71a6393c190d24b696f11fbd 100755 (executable)
@@ -314,7 +314,7 @@ class gofonMacro 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 macro!"));
-        @log::log("security","gofonmacro/".get_class($this),$this->dn,array(),"Tried to trick deletion.");
+        new log("security","gofonmacro/".get_class($this),$this->dn,array(),"Tried to trick deletion.");
       }
       /* Remove lock file after successfull deletion */
       del_lock ($this->dn);
index 61ae399ede6025e3b9c1082638f0ee606964cbc3..0387abb0f9ef954b8655cafbe7b97c17549a4d6c 100644 (file)
@@ -119,12 +119,12 @@ class phoneAccount extends plugin
         if(!$r_con){
           print_red( sprintf(_("The MySQL Server '%s' isn't reachable as user '%s', check GOsa log for mysql error."),
                 $cur_cfg['SERVER'],$cur_cfg['LOGIN']));
-          @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
+          new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
         }
         $db  =  @mysql_select_db($cur_cfg['DB'],$r_con);
         if(!$db){
           print_red(sprintf(_("Can't select database %s on %s."),$cur_cfg['DB'],$cur_cfg['SERVER']));
-          @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
+          new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
         }
 
         $first = false; 
@@ -436,7 +436,7 @@ class phoneAccount extends plugin
       $this->generate_error = sprintf(
           _("The MySQL Server '%s' isn't reachable as user '%s'. Abort saving entries to keep the database consistent, check GOsa log for mysql error."),
           $a_New['SERVER'],$a_New['LOGIN']);
-      @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($new_connection));
+      new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($new_connection));
       return false;
     }
     $new_database  =  @mysql_select_db($a_New['DB'],$new_connection);
@@ -444,7 +444,7 @@ class phoneAccount extends plugin
       $this->generate_error = sprintf(
           _("Can't select database %s on %s. Abort saving entries to keep the database consistent, check GOsa log for mysql error."),
           $a_New['DB'],$a_New['SERVER']);
-      @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($new_connection));
+      new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($new_connection));
       return false;
     }
 
@@ -463,7 +463,7 @@ class phoneAccount extends plugin
         $this->generate_error = sprintf(
             _("The old MySQL home server '%s' isn't reachable as user '%s'. Abort saving entries to keep the database consistent, check GOsa log for mysql error."),
             $a_Remove['SERVER'],$a_Remove['LOGIN']);
-        @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($old_connection));
+        new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($old_connection));
         return false;
       }
       $old_database  =  @mysql_select_db($a_Remove['DB'],$old_connection);
@@ -471,7 +471,7 @@ class phoneAccount extends plugin
         $this->generate_error = sprintf(
             _("Can't select database %s on %s. Abort saving entries to keep the database consistent, check GOsa log for mysql error."),
             $a_Remove['DB'],$a_Remove['SERVER']);
-        @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($old_connection));
+        new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($old_connection));
         return false;
       }
     }
@@ -793,7 +793,7 @@ class phoneAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     $display = "";
@@ -1238,9 +1238,9 @@ class phoneAccount extends plugin
 
     /* Log last action */
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/phone account with dn '%s' failed."),$this->dn));
@@ -1295,7 +1295,7 @@ class phoneAccount extends plugin
       if(!$r_con){
         print_red(sprintf(_("The MySQL Server '%s' isn't reachable as user '%s', check GOsa log for mysql error."),
                     $a_SETUP['SERVER'],$a_SETUP['LOGIN']));
-        @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
+        new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
         return false;
       }
 
@@ -1305,7 +1305,7 @@ class phoneAccount extends plugin
       // Test if we have the database selected correctly
       if(!$db){
         print_red(sprintf(_("Can't select database %s on %s."),$a_SETUP['DB'],$a_SETUP['SERVER']));
-        @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
+        new log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
         return false;
       }
 
@@ -1380,7 +1380,7 @@ class phoneAccount extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/phone account with dn '%s' failed."),$this->dn));
 
     /* Optionally execute a command after we're done */
index 202970f7906a51743b0e1c8ccfe55913f57ad067..20b3d784be404a4ef6476442be4d4a0bd42c5433 100644 (file)
@@ -63,7 +63,7 @@ class intranetAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     $display= "";
@@ -116,7 +116,7 @@ class intranetAccount extends plugin
       $ldap->modify ($this->attrs); 
 
       /* Log last action */
-      @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/intranet account with dn '%s' failed."),$this->dn));
 
@@ -178,9 +178,9 @@ class intranetAccount extends plugin
 
       /* Log last action */
       if($this->initially_was_account){
-        @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }else{
-        @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }
 
       show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/intranet account with dn '%s' failed."),$this->dn));
index 9fbb6fb83dc1b70af54e56e734b77e7805813dfc..5e83d5f14b99f957e79d9ca9f172a44108da6595 100644 (file)
@@ -79,7 +79,7 @@ class kolabAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Show tab dialog headers */
@@ -296,7 +296,7 @@ class kolabAccount extends plugin
     $ldap->modify($this->attrs);
 
     /* Log last action */
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     $this->handle_post_events('remove',array("uid" => $this->uid));
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/kolab account with dn '%s' failed."),$this->dn));
@@ -423,9 +423,9 @@ class kolabAccount extends plugin
 
     /* Log last action */
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/kolab account with dn '%s' failed."),$this->dn));
index f404536053004ba2b7c0a905072e96e8d6d2d0ad..4d18794184e95513338925f61a131c5673eb8270 100644 (file)
@@ -125,7 +125,7 @@ class opengwAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
                /* Show tab dialog headers */
@@ -244,7 +244,7 @@ class opengwAccount extends plugin
                        $this->handle->SetInfos($this->info);
                        $this->handle->Perform("REMOVE");
 
-      @log::log("remove","users/".get_class($this),$this->dn);
+      new log("remove","users/".get_class($this),$this->dn);
                }
        }
 
@@ -310,10 +310,10 @@ class opengwAccount extends plugin
                $this->handle->checkInfos();
                if($this->initialy_was_account){
                        $this->handle->Perform("EDIT");
-      @log::log("modify","users/".get_class($this),$this->dn);
+      new log("modify","users/".get_class($this),$this->dn);
                }else{
                        $this->handle->Perform("ADD");
-      @log::log("create","users/".get_class($this),$this->dn);
+      new log("create","users/".get_class($this),$this->dn);
                }
        }
 
index 847b34311ae51df431954640306527eae2aac552..e76cb2cd438f17d08ceb518be8dfcee0fc5c8daa 100644 (file)
@@ -609,7 +609,7 @@ class oxchangeAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     $display="";
@@ -746,7 +746,7 @@ class oxchangeAccount extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
                show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/oxchange addressbook account with dn '%s' failed."),$this->dn));
 
@@ -852,9 +852,9 @@ class oxchangeAccount extends plugin
     $ldap->modify ($this->attrs); 
 
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
                show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/oxchange account with dn '%s' failed."),$this->dn));
index 40ecbbe40ae7434e5d40be6d153c79c532de4fa7..bd3036422cb8ad77d1067eb93f8aeee79db07dc9 100644 (file)
@@ -36,7 +36,7 @@ class phpgwAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
  
     /* Show tab dialog headers */
@@ -84,7 +84,7 @@ class phpgwAccount extends plugin
 
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PHPgw account with dn '%s' failed."),$this->dn));
 
-      @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       /* Optionally execute a command after we're done */
       $this->handle_post_events('remove',array("uid" => $this->uid));
@@ -131,9 +131,9 @@ class phpgwAccount extends plugin
     $ldap->modify ($this->attrs); 
 
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PHPgw account with dn '%s' failed."),$this->dn));
index 597f254a58d4ac77c7e757b55604c45141cde0be..6272294521f52142d202e1ec694b254c94088522 100644 (file)
@@ -43,7 +43,7 @@ class phpscheduleitAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Show tab dialog headers */
@@ -85,7 +85,7 @@ class phpscheduleitAccount extends plugin
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PHPscheduleit account with dn '%s' failed."),$this->dn));
 
       if($this->is_account){
-        @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }
       /* Optionally execute a command after we're done */
       $this->handle_post_events('remove',array("uid" => $this->uid));
@@ -132,9 +132,9 @@ class phpscheduleitAccount extends plugin
     $ldap->modify ($this->attrs); 
 
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PHPscheduleit account with dn '%s' failed."),$this->dn));
index d9f1945deb12b8f9a26eb9515819c5ba9baee2a1..1efe423c908b259beaa8f9fc4f905c9d11fdee67 100644 (file)
@@ -52,7 +52,7 @@ class pptpAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Show tab dialog headers */
@@ -96,7 +96,7 @@ class pptpAccount extends plugin
       $ldap->modify ($this->attrs); 
 
       /* Log last action */
-      @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PPTP account with dn '%s' failed."),$this->dn));
 
@@ -147,9 +147,9 @@ class pptpAccount extends plugin
 
       /* Log last action */
       if($this->initially_was_account){
-        @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }else{
-        @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }
 
       show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PPTP account with dn '%s' failed."),$this->dn));
index c11a16c6de4aaa0f53f3264ae745f67de336cd6a..feeabd9e602478900a55eea1b9f4b3fe8027b64c 100644 (file)
@@ -41,7 +41,7 @@ class proxyAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     $display= "";
@@ -162,7 +162,7 @@ class proxyAccount extends plugin
       $ldap->modify ($this->attrs); 
 
       /* Log last action */
-      @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/proxy account with dn '%s' failed."),$this->dn));
 
@@ -281,9 +281,9 @@ class proxyAccount extends plugin
 
     /* Log last action */
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/proxy account with dn '%s' failed."),$this->dn));
index 4b62d10d75f2aa5fa2bda27674717141516cc986..c0ad6435811644c608f6d4a16a2e94ae95cc8fc3 100644 (file)
@@ -41,7 +41,7 @@ class pureftpdAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Show tab dialog headers */
@@ -111,7 +111,7 @@ class pureftpdAccount extends plugin
     $ldap->modify ($this->attrs); 
 
     /* Log last action */
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
   
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/pureftpd account with dn '%s' failed."),$this->dn));
 
@@ -207,9 +207,9 @@ class pureftpdAccount extends plugin
     
     /* Log last action */
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/pureftpd account with dn '%s' failed."),$this->dn));
index c14eee425a90595d80ecbfd3ebc36578253c8e6a..e3e588e2d5e49437533939a9db01a60e7ce2ff3c 100644 (file)
@@ -31,7 +31,7 @@ class webdavAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Show tab dialog headers */
@@ -79,7 +79,7 @@ class webdavAccount extends plugin
       $ldap->modify ($this->attrs); 
 
       /* Log last action */
-      @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
       show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/webDAV account with dn '%s' failed."),$this->dn));
 
@@ -130,9 +130,9 @@ class webdavAccount extends plugin
 
       /* Log last action */
       if($this->initially_was_account){
-        @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }else{
-        @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+        new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
       }
 
       show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/webDAV account with dn '%s' failed."),$this->dn));
index a2313aaf4f0294f974698312609340440db9077c..d0ffa94848cdaad342da541f07cc22211f020f04 100644 (file)
@@ -260,9 +260,9 @@ class environment extends plugin
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
       if(in_array("gosaAccount",$this->attrs['objectClass'])){
-        @log::log("view","users/".get_class($this),$this->dn);
+        new log("view","users/".get_class($this),$this->dn);
       }else{
-        @log::log("view","groups/".get_class($this),$this->dn);
+        new log("view","groups/".get_class($this),$this->dn);
       }
     }
 
@@ -944,9 +944,9 @@ class environment extends plugin
     $ldap->modify ($this->attrs); 
 
     if($this->is_group){
-      @log::log("remove","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","groups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/environment account with dn '%s' failed."),$this->dn));
@@ -1210,9 +1210,9 @@ class environment extends plugin
 
     /* Log last action */ 
     if($this->initially_was_account){
-      @log::log("modify",$cat."/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify",$cat."/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create",$cat."/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create",$cat."/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/environment account with dn '%s' failed."),$this->dn));
index f5f4cc2dd25d669740c0cac7c47eb8c656f28454..19f7e5ed9c9a802aebac4335434849457b772e97 100644 (file)
@@ -220,7 +220,7 @@ class user extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     $smarty= get_smarty();
@@ -598,7 +598,7 @@ class user extends plugin
     $ldap->rmdir ($this->dn);
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/generic account with dn '%s' failed."),$this->dn));
   
-    @log::log("remove","users/".get_class($this),$this->dn,$this->attributes,$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,$this->attributes,$ldap->get_error());
   
     /* Delete references to groups */
     $ldap->cd ($this->config->current['BASE']);
@@ -881,22 +881,22 @@ class user extends plugin
 
         /* Load the new uploaded Photo */
         if(!$handle  =  imagick_blob2image($this->photoData))  {
-          @log::log("debug","users/".get_class($this),"",array(),"Could not access uploaded image");
+          new log("debug","users/".get_class($this),"",array(),"Could not access uploaded image");
         }
 
         /* Resizing image to 147x200 and blur */
         if(!imagick_resize($handle,147,200,IMAGICK_FILTER_GAUSSIAN,0)){
-          @log::log("debug","users/".get_class($this),"",array(),"Could not resize uploaded image");
+          new log("debug","users/".get_class($this),"",array(),"Could not resize uploaded image");
         }
 
         /* Converting image to JPEG */
         if(!imagick_convert($handle,"JPEG")) {
-          @log::log("debug","users/".get_class($this),"",array(),"Could not convert uploaded image to jepg");
+          new log("debug","users/".get_class($this),"",array(),"Could not convert uploaded image to jepg");
         }
 
         /* Creating binary Code for the Image */
         if(!$dump = imagick_image2blob($handle)){
-          @log::log("debug","users/".get_class($this),"",array(),"Could not create new user image");
+          new log("debug","users/".get_class($this),"",array(),"Could not create new user image");
         }
 
         /* Sending Image */
@@ -950,9 +950,9 @@ class user extends plugin
     }
 
     if($mode == "modify"){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     /* Remove cert? 
index 7bf40176ce48663b98fe09d928637ed04cb46d84..b54dab2496b965f6c39589bb964966ad52e63f01 100644 (file)
@@ -94,7 +94,7 @@ if (!$remove_lock){
         return ($display);
       }
       change_password ($user->dn, $_POST['new_password'], 0, $user->pw_storage);
-      @log::log("modify","users/".get_class($this),"",array(),"Password has been changed");
+      new log("modify","users/".get_class($this),"",array(),"Password has been changed");
 
     } else {
 
index b8af3484a8f76c2cbc53228766cd98e7343ac8d2..ef48fdd074d6f78243e7e9b107452483fb1e3737 100644 (file)
@@ -231,7 +231,7 @@ class mailAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Initialise vars */
@@ -683,7 +683,7 @@ class mailAccount extends plugin
     $ldap->modify ($this->attrs); 
 
     /* Add "view" to logging class */ 
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/mail account with dn '%s' failed."),$this->dn));
 
@@ -843,9 +843,9 @@ class mailAccount extends plugin
 
     /* Log last action */ 
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     /* Only do IMAP actions if we are not a template */
index a01b4a87b5a5a60e657b2869e739a4813e2a560d..2650ab0938f3dba8ff76cb7a2a61240f1708c5d5 100644 (file)
@@ -88,7 +88,7 @@ class nagiosAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Load templating engine */
@@ -170,9 +170,9 @@ class nagiosAccount extends plugin
 
     /* Log last action */
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/nagios account with dn '%s' failed."),$this->dn));
@@ -256,7 +256,7 @@ class nagiosAccount extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    @log::log("view","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("view","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/nagios account with dn '%s' failed."),$this->dn));
 
index f1ed25a3462206e8d6acc23740e4c420b1643252..b322a151f16d3d34d0a9a84939c832a5f445af53 100644 (file)
@@ -157,7 +157,7 @@ class netatalk extends plugin {
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Use the smarty templating engine here... */
@@ -286,9 +286,9 @@ class netatalk extends plugin {
     $ldap->modify($this->attrs);
 
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/netatalk account with dn '%s' failed."),$this->dn));
@@ -351,7 +351,7 @@ class netatalk extends plugin {
     $this->cleanup();
     $ldap->modify($this->attrs);
 
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/netatalk account with dn '%s' failed."),$this->dn));
 
index 1954e2ed606afc95d01b5cfdce18ba8d64e37a01..10b1cbd574506db78dc1cb7b037ff9ac16959d97 100644 (file)
@@ -94,7 +94,7 @@ if (!$remove_lock){
           show_errors($message);
         } else {               
           change_password ($ui->dn, $_POST['new_password']);
-          @log::log("modify","users/".get_class($this),$ui->dn,array(),"User has been changed");
+          new log("modify","users/".get_class($this),$ui->dn,array(),"User has been changed");
           $ui->password= $_POST['new_password'];
           $_SESSION['ui']= $ui;
           $display= $smarty->fetch(get_template_path("changed.tpl", TRUE));
index 31cbc42de5ff35bb9eb72e548a603d96dfcb3222..999cf166596cc16eba5d1a51fec27be5d55ca1ae 100644 (file)
@@ -230,7 +230,7 @@ class posixAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Department has changed? */
@@ -619,7 +619,7 @@ class posixAccount extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/posix account with dn '%s' failed."),$this->dn));
 
@@ -860,9 +860,9 @@ class posixAccount extends plugin
 
     /* Log last action */ 
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/posix account with dn '%s' failed."),$this->dn));
index ad90cce5d9254e246f460eef62daae0b5e06acb4..862d631088879d08680b9df347e88276ad1ce929 100644 (file)
@@ -199,7 +199,7 @@ class sambaAccount extends plugin
     /* Log view */
     if($this->is_account && !$this->view_logged){
       $this->view_logged = TRUE;
-      @log::log("view","users/".get_class($this),$this->dn);
+      new log("view","users/".get_class($this),$this->dn);
     }
 
     /* Do we need to flip is_account state? */
@@ -669,7 +669,7 @@ class sambaAccount extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    @log::log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+    new log("remove","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
 
     show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/samba account with dn '%s' failed."),$this->dn));
 
@@ -1020,9 +1020,9 @@ class sambaAccount extends plugin
     $ldap->modify ($this->attrs); 
 
     if($this->initially_was_account){
-      @log::log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }else{
-      @log::log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+      new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
     }
 
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/samba account with dn '%s' failed."),$this->dn));
index 864cee4f1ad43e267cfb2d55a2b8d40e92eb991e..671dd5fbbc502a1c77bacca81cfbc77bced6b6e7 100644 (file)
@@ -462,7 +462,7 @@ class Step_Migrate extends setup_step
     $res = $ldap->add($testEntry);
     $ldap->cat($dn);
     if(!$ldap->count()){
-      @log::log("view","setup/".get_class($this),$dn,array(),$ldap->get_error());
+      new log("view","setup/".get_class($this),$dn,array(),$ldap->get_error());
 
       $this->checks['permissions']['STATUS']    = FALSE;
       $this->checks['permissions']['STATUS_MSG']= _("Failed");
@@ -476,7 +476,7 @@ class Step_Migrate extends setup_step
     $res = $ldap->rmDir($dn);
     $ldap->cat($dn);
     if($ldap->count()){
-      @log::log("view","setup/".get_class($this),$dn,array(),$ldap->get_error());
+      new log("view","setup/".get_class($this),$dn,array(),$ldap->get_error());
       $this->checks['permissions']['STATUS']    = FALSE;
       $this->checks['permissions']['STATUS_MSG']= _("Failed");
       $this->checks['permissions']['ERROR_MSG'] =