summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 24332d0)
raw | patch | inline | side by side (parent: 24332d0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 May 2007 10:58:25 +0000 (10:58 +0000) | ||
committer | hickert <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:
diff --git a/include/class_acl.inc b/include/class_acl.inc
index 23db48299827c7fe3728761250d65be0ab92fc14..6e7044c7dcb4372dc0a59f9e86f7381a3e232984 100644 (file)
--- a/include/class_acl.inc
+++ b/include/class_acl.inc
$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));
$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)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
/* 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 */
diff --git a/include/php_setup.inc b/include/php_setup.inc
index 7d6c73870158054dabcaa2c8772ccc467ccb341d..9c2153ed6450ba5a011aa8800b007cca1888b987 100644 (file)
--- a/include/php_setup.inc
+++ b/include/php_setup.inc
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)
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));
diff --git a/plugins/addons/addressbook/class_addressbook.inc b/plugins/addons/addressbook/class_addressbook.inc
index f766133f36b200d48842c58c6495f133128053c0..6ac0591e7b1d01a5c7c6eee834a8964b3aabaaad 100644 (file)
/* 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 */
$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']);
}
}
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());
}
}
diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc
index c362ab439c81a5d531b04118f5704a27b786c602..6a2330b141eccfab906142ce5f97599157b4512d 100644 (file)
/* 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")){
diff --git a/plugins/addons/ldapmanager/class_csvimport.inc b/plugins/addons/ldapmanager/class_csvimport.inc
index 9b3cf27d07f3e4af4a16d71c68d58f77cde4dde2..fcb5ef07a67a9815e6d1cdf681aabd88efd8ec33 100644 (file)
/* 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 */
diff --git a/plugins/addons/ldapmanager/class_export.inc b/plugins/addons/ldapmanager/class_export.inc
index d64dc79d49de817efad65abcbd1e755c10982f49..64ea7c309ba2aa48b979c97c6020ceb8050c39c8 100644 (file)
/* 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 */
diff --git a/plugins/addons/ldapmanager/class_exportxls.inc b/plugins/addons/ldapmanager/class_exportxls.inc
index a8e1ee68524420c57e05509d33e482e7d96cd9d1..10100dadbd97230faec59bc5bfae5b3a399f2998 100644 (file)
/* 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'];
diff --git a/plugins/addons/ldapmanager/class_import.inc b/plugins/addons/ldapmanager/class_import.inc
index ff61022bfdea7f28e748b896f55bec83289d2f03..ca5a02ea0ce7c9b4dae600ed41463110dd92185d 100644 (file)
/* 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)
/* 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");
diff --git a/plugins/addons/mailqueue/class_mailqueue.inc b/plugins/addons/mailqueue/class_mailqueue.inc
index fea487fd5608d716ae70cb925dcc2235ef7456ff..f33ba88b7f63bc0e0a2e39a4f444abe007240456 100644 (file)
/* 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'])){
diff --git a/plugins/addons/notifications/class_msgplug.inc b/plugins/addons/notifications/class_msgplug.inc
index 517a78e3b4a10a6713c4ef2f02cc31d933d48746..363a980b522d2d53033d047a0b0908e99fc9da48 100644 (file)
/* 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)
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.");
}
}
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)
$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 */
$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));
}
$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 */
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index a82acc5b119f10e7801ff74c12f1677914810548..1882c313a502eae20d68efbc7d1fc4dba0124dfb 100644 (file)
/* 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();
{
$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 */
$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 */
$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));
diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc
index 8ce6dc1840255f6109c41e7f3382b2f0b63dccc1..a340977ca8e09cb7542f9346828f1f9444a856b1 100644 (file)
/* 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);
/* 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 */
diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc
index 2b637e06e938cf90deb3151edfae60222a0b31ea..7a0c3d8401f684ee9b9f31806db777037083c443 100644 (file)
/* 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 */
$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 */
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)
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 */
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']);
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)
/* 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 */
/* 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{
$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");
}
}
<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)
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 */
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){
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 */
diff --git a/plugins/admin/fai/class_faiPartitionTable.inc b/plugins/admin/fai/class_faiPartitionTable.inc
index 7825da40d30baf24a70c0fc0d59cec6f4b191e23..7ac1a29175df45594d186243b5f23dff82c575ef 100644 (file)
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 */
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){
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)
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 */
$use_dn = $this->dn;
}
- @log::log("remove","fai/".get_class($this),$use_dn,$this->attributes);
+ new log("remove","fai/".get_class($this),$use_dn,$this->attributes);
prepare_to_save_FAI_object($use_dn,array(),true);
$this->handle_post_events("remove");
}
prepare_to_save_FAI_object($this->dn,$this->attrs);
if($this->initially_was_account){
- @log::log("modify","fai/".get_class($this),$this->dn,$this->attributes);
+ new log("modify","fai/".get_class($this),$this->dn,$this->attributes);
}else{
- @log::log("create","fai/".get_class($this),$this->dn,$this->attributes);
+ new log("create","fai/".get_class($this),$this->dn,$this->attributes);
}
show_ldap_error($ldap->get_error(), sprintf(_("Saving of FAI/profile with dn '%s' failed."),$this->dn));
index 58e8aed414304844bb96ebdc4b121daf75771473..9c01f5489e6881b34ab391bb936b8bf2cd7c40de 100644 (file)
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 */
$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);
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)
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 */
}
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']);
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)
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 */
}
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']);
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 */
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index 753352db10a1f52d445310722198096ed47cbd13..10e3294e622b751016e85fe0ad611eb69e79be3d 100644 (file)
/* 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 */
$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 */
$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));
diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index 75d3f4218634d47801d33e946380ff9f907c952c..a80ddd9444f984c753e63235341fcae342bb914c 100644 (file)
/* 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? */
$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']);
$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)
/* 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 */
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");
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());
}
diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc
index 6fd51ecd3553d31269c4af3524967cb3ff1dc872..de6a7fb56ad7de77806e33a394595e63ac1bc955 100644 (file)
/* 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);
/* 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 */
diff --git a/plugins/admin/mimetypes/class_mimetypeGeneric.inc b/plugins/admin/mimetypes/class_mimetypeGeneric.inc
index 882c2b8625551f1e8eea9a3a4109972eec20fac3..22b56bc94b123a13911905379c68c889bb7e0e83 100644 (file)
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();
$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));
}
$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");
diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc
index fc87bec435a022931c95e0bfcabdafc23ca5b999..4955d2fe7677f72c5a0fa187469c9730ee5161f0 100755 (executable)
/* 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);
/* 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 */
diff --git a/plugins/admin/ogroups/class_mailogroup.inc b/plugins/admin/ogroups/class_mailogroup.inc
index 933dbb62abdb98979e9bb25cdd1a43cb1223c314..1040dc626a0269fb76e3709574f24860acc9f09f 100644 (file)
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);
}
$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));
$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)
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);
}
$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 */
$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");
diff --git a/plugins/admin/ogroups/class_ogroupManagement.inc b/plugins/admin/ogroups/class_ogroupManagement.inc
index b5ab277dcaede6b45471f685cf1adaaa8090ab0c..14f9d9f97ef32540864659651ec9f2c68da3525b 100644 (file)
/* 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);
/* 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 */
diff --git a/plugins/admin/ogroups/class_phonequeue.inc b/plugins/admin/ogroups/class_phonequeue.inc
index 6f615cff1a3a1c8890f11c004894c86aa2a1211b..813981e8eea8ecc505873511a7105c8417150d5e 100644 (file)
$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']));
}
$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']));
}
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'])){
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.").
" "._("Please have a look a the gosa logfiles."));
}
$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.")." "._("Please have a look a the gosa logfiles."));
}
$cnt = mysql_affected_rows($res_cur);
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.")." "._("Please have a look a the gosa logfiles."));
}
}
$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"));
$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)
$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());
}
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);
}
/***************
$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){
diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc
index ef4308c47d3e9985679c0913d443adc6f7adc93e..20bb0c09805f92307c139dce6d79f96e99224833 100644 (file)
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? */
$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));
$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 {
$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));
}
diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc
index 03e5712dbbc2b2cdeda4bb43aada367d526e93ca..2859930ea078954314811be2400244db6d37e0e9 100644 (file)
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 */
$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."));
}
}
/* 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']);
diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc
index dd69e23012037cbca7ad17228d75b1104330ca77..9645a1e0bec1375547e32c09ba87f79dce3991da 100644 (file)
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 */
$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);
}
}
$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']);
diff --git a/plugins/admin/systems/class_goCupsServer.inc b/plugins/admin/systems/class_goCupsServer.inc
index b5d282a01dbd7c853a9b325b651e910788847087..e4e3f8b984507920ab4e800a9fde1a827920b16b 100644 (file)
{
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();
diff --git a/plugins/admin/systems/class_goFaxServer.inc b/plugins/admin/systems/class_goFaxServer.inc
index c791b6eb8bf1cc45bac8cfdb198aa90ac2a3df23..074df70864f8f2ba32ae2818c238b356efb282d7 100644 (file)
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 */
diff --git a/plugins/admin/systems/class_goFonServer.inc b/plugins/admin/systems/class_goFonServer.inc
index 7457444c8e796beb03b2eaed7a447a50903adaaa..7408a7800ae6ce7260cdfe6470e48e39da609b45 100644 (file)
{
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();
diff --git a/plugins/admin/systems/class_goGlpiServer.inc b/plugins/admin/systems/class_goGlpiServer.inc
index ec35b1f24afc2d1d928ccc867a00a0bae0ae707b..83ee39ef92740c91017d7c75a7a8da238626bf4e 100644 (file)
{
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();
diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc
index d08972ca7c4a5c3375a0444930434217d695c67e..3fb4fe9578ce7508936bed77f5800e94d8f30e0b 100644 (file)
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 */
diff --git a/plugins/admin/systems/class_goKrbServer.inc b/plugins/admin/systems/class_goKrbServer.inc
index 51802b1cdca591fcb4b91a5003f416ad26adba3d..e49c2ba4f320965979b3e6105836f20b5f29e361 100644 (file)
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();
diff --git a/plugins/admin/systems/class_goLdapServer.inc b/plugins/admin/systems/class_goLdapServer.inc
index b8d151ee302d240185354e674cd58d134a6c9a9d..7e35f52e3af4d0cbc4479bfbf56b69f30d9f6746 100644 (file)
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();
diff --git a/plugins/admin/systems/class_goLogDBServer.inc b/plugins/admin/systems/class_goLogDBServer.inc
index a28990812aa665c3363766540cc121b9b62ccc3c..4d95ca8726afe7d34e43b499c4f7fe47081fafa0 100644 (file)
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();
diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc
index 25d2fd827f0f50fac3b135c5aef5958039d4dd61..251d2e53b15370400d50ac8a315f797eddb69e7e 100644 (file)
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();
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());
}
}
diff --git a/plugins/admin/systems/class_goNtpServer.inc b/plugins/admin/systems/class_goNtpServer.inc
index 26434eefba5236985f1b2d056803b40b35c0bb37..bba487bc32719ff45dc1b3bc32d6846815f9dcbe 100644 (file)
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 */
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)
{
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;'>".
}
- @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");
$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));
}
diff --git a/plugins/admin/systems/class_goShareServer.inc b/plugins/admin/systems/class_goShareServer.inc
index 315a6e26a6751400825b32c51a027e9783c6b747..d12c5a07b8222160c397e28a7648cf885d4c83e7 100644 (file)
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);
}
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());
}
}
diff --git a/plugins/admin/systems/class_goSpamServer.inc b/plugins/admin/systems/class_goSpamServer.inc
index 55781fbbac9046696acae00253d9bf27a2f26d70..329522fa74097934aa56de03433b2e1ecdb49ba5 100644 (file)
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*/
}
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));
diff --git a/plugins/admin/systems/class_goSpamServerRule.inc b/plugins/admin/systems/class_goSpamServerRule.inc
index 2adc6886ee1f04ae2eed196a7943fd3f9d487202..e0935bc2edceccbb7b301920b8d5a4de4eea3333 100644 (file)
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){
diff --git a/plugins/admin/systems/class_goSyslogServer.inc b/plugins/admin/systems/class_goSyslogServer.inc
index 4c242a3291b264190c0570b74f864aef14e83038..b94093026aeccc62fac5fda973f875a2dd8b9f46 100644 (file)
{
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);
}
diff --git a/plugins/admin/systems/class_goTerminalServer.inc b/plugins/admin/systems/class_goTerminalServer.inc
index d6afed9fac5f61145f59467c2ce5a1dae7ce3f2e..21b721b761cfa80a56ea5c6343f1aeeb30ebea09 100644 (file)
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);
}
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());
}
}
diff --git a/plugins/admin/systems/class_goVirusServer.inc b/plugins/admin/systems/class_goVirusServer.inc
index 287f915d5b0da40d0444d2923a474ce40a8e1839..7e02b97016a38d92b44ee568a0ad67cc91230ba5 100644 (file)
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->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));
diff --git a/plugins/admin/systems/class_gosaLogServer.inc b/plugins/admin/systems/class_gosaLogServer.inc
index 6bb2b60ced11ac3c7aff90e01c54979e6efd12fc..4f40407a938a6275e84470c3cfc041d20a4df5c4 100644 (file)
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();
diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc
index aa78ad9e076c015c953a7a85c7b0077ba36b725e..c5d35fe8702223ee7dbf8ad7ec2ab180bcd51494 100644 (file)
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? */
$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));
$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){
$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']);
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 52ae6e3457764e92966855ae11ba0874eff734a8..2dfbc4cd4b61dff4a13dd5afd74b35c8570986b8 100644 (file)
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);
}
$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));
$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)
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 */
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);
}
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)
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
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));
}
}
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));
}
diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index a9e93f5a59c6686592181e893a259ba81deda838..d44b6763b8cb800dce8859222f7f59bb71f3dfcb 100644 (file)
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? */
$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));
$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 {
$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)
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);
}
/***************
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");
$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)
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 */
diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index 27bb610f73c6c9257e7907199fc1c0a65c59c502..e188062e563843a9d752793256552d1c8bf6122f 100644 (file)
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){
}
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());
}
}
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index b3e614ea48a454876d76e07356312212b3e0556c..f20efe5a82914d9583c4ae5ee85f064c7abfd82f 100644 (file)
$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."));
}
/* 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);
/* 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)
$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);
}
}
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);
}
}
}
}
}
- @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
*/
diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc
index 312b6f6cd104363367287dc0947d3b948e519e35..36afa8cbe518efbade39b9db8ab9ace318cc9df9 100644 (file)
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? */
$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));
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));
}
diff --git a/plugins/admin/systems/class_terminalInfo.inc b/plugins/admin/systems/class_terminalInfo.inc
index ae731aec9caa3fee035a0df5911d0820ba65d03d..7ce3d2bb98c0d5e824287ff6854b223069676b6b 100644 (file)
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? */
diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc
index 25751532b6ccb8a95a52c6d3efd25172b72d80e9..5f798720c293f23e5cb6f80548b32dd873996090 100644 (file)
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? */
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");
}
$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");
diff --git a/plugins/admin/systems/class_terminalStartup.inc b/plugins/admin/systems/class_terminalStartup.inc
index 7c45334801baa1334479abddafb4320caf1f8001..fa71aba613575fb63f84d63df207ca38ca4da314 100644 (file)
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? */
{
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));
}
}
$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");
diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc
index 020256dd24d77db22a6959b519a9d336d2ae9af6..dcf6e205136b094d6d5faf40d5dbe15d2668ca6a 100644 (file)
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);
}
$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");
$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){
$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");
}
diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index d28d106bc26e309334efcc9d97dad67db422831f..26050acde5bdba9d8167d3ddd2e8f92ecb8c4528 100644 (file)
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? */
$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 */
$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));
$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));
diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc
index 370253fbe66bc39092295d892b797849a8dc2c05..d0d45262fdf991d43595a5c18a3c7874019eb0d3 100644 (file)
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? */
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 */
$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");
}
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index 4ce45768e3d2617db56bcf23390eeb6bac7d8b23..6991b3bb728d8c5326f53378bf215070c53140f2 100644 (file)
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? */
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)
$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");
diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc
index 7f02cf1688c770268a0bdae70ad28e4bf01c1f01..63ba95115fe7216dae8183f3e698030db46cf603 100644 (file)
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;
}
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 {
} 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 */
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.");
}
}
diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc
index 8c9fde5771c0982a9c4e142f9bdb29fd9ba38045..2776226330d9193bbddfbb168b9a7f275d60f881 100644 (file)
/* 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 */
$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();
$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));
diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc
index 50a3c9b373830361821531fd5f227feb9d40cc6b..985c13e07aab53ca4190cafc2ce130b33eeed120 100644 (file)
/* 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
$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));
/* 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));
diff --git a/plugins/gofax/faxreports/class_faxreport.inc b/plugins/gofax/faxreports/class_faxreport.inc
index 2bc248c5d45b371f4fdebc5b26f95c14009291c7..d0d2b18ff019715c618c308650d15390d2513b5b 100644 (file)
/* 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);
}
/************
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index 41e574419d7565a0c3d89e605fd27ea181537606..4eba32b4658dd4a6a4ce26052c41dc9639c95040 100644 (file)
/* 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();
$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');
$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']));
}
$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']));
}
$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.").
" "._("Please have a look a the gosa logfiles."));
}
/* 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.").
" "._("Please have a look a the gosa logfiles."));
}
$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."));
}
/* 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."));
}
/* 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));
diff --git a/plugins/gofon/fonreports/class_fonreport.inc b/plugins/gofon/fonreports/class_fonreport.inc
index 7c58872b430eb0a5fd8e17a31a5de6f0a705cf33..dc72ddd94f70a5136cd69951fb9d420b9970a218 100644 (file)
/* 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)
/* 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 */
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']));
}
$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);
$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);
/* 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 */
/* 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());
}
}
}
diff --git a/plugins/gofon/macro/class_gofonMacroManagement.inc b/plugins/gofon/macro/class_gofonMacroManagement.inc
index 8312702cbb0d0f3f35a9403b8a297bf23a894302..f7a0e337f04a4e1c71a6393c190d24b696f11fbd 100755 (executable)
/* 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);
diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc
index 61ae399ede6025e3b9c1082638f0ee606964cbc3..0387abb0f9ef954b8655cafbe7b97c17549a4d6c 100644 (file)
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;
$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);
$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;
}
$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);
$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;
}
}
/* 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 = "";
/* 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));
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;
}
// 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;
}
$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 */
diff --git a/plugins/personal/connectivity/class_intranetAccount.inc b/plugins/personal/connectivity/class_intranetAccount.inc
index 202970f7906a51743b0e1c8ccfe55913f57ad067..20b3d784be404a4ef6476442be4d4a0bd42c5433 100644 (file)
/* 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= "";
$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));
/* 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));
diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc
index 9fbb6fb83dc1b70af54e56e734b77e7805813dfc..5e83d5f14b99f957e79d9ca9f172a44108da6595 100644 (file)
/* 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 */
$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));
/* 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));
diff --git a/plugins/personal/connectivity/class_opengwAccount.inc b/plugins/personal/connectivity/class_opengwAccount.inc
index f404536053004ba2b7c0a905072e96e8d6d2d0ad..4d18794184e95513338925f61a131c5673eb8270 100644 (file)
/* 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 */
$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);
}
}
$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);
}
}
diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc
index 847b34311ae51df431954640306527eae2aac552..e76cb2cd438f17d08ceb518be8dfcee0fc5c8daa 100644 (file)
/* 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="";
$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));
$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));
diff --git a/plugins/personal/connectivity/class_phpgwAccount.inc b/plugins/personal/connectivity/class_phpgwAccount.inc
index 40ecbbe40ae7434e5d40be6d153c79c532de4fa7..bd3036422cb8ad77d1067eb93f8aeee79db07dc9 100644 (file)
/* 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 */
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));
$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));
diff --git a/plugins/personal/connectivity/class_phpscheduleitAccount.inc b/plugins/personal/connectivity/class_phpscheduleitAccount.inc
index 597f254a58d4ac77c7e757b55604c45141cde0be..6272294521f52142d202e1ec694b254c94088522 100644 (file)
/* 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 */
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));
$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));
diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc
index d9f1945deb12b8f9a26eb9515819c5ba9baee2a1..1efe423c908b259beaa8f9fc4f905c9d11fdee67 100644 (file)
/* 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 */
$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));
/* 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));
diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index c11a16c6de4aaa0f53f3264ae745f67de336cd6a..feeabd9e602478900a55eea1b9f4b3fe8027b64c 100644 (file)
/* 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= "";
$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));
/* 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));
diff --git a/plugins/personal/connectivity/class_pureftpdAccount.inc b/plugins/personal/connectivity/class_pureftpdAccount.inc
index 4b62d10d75f2aa5fa2bda27674717141516cc986..c0ad6435811644c608f6d4a16a2e94ae95cc8fc3 100644 (file)
/* 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 */
$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));
/* 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));
diff --git a/plugins/personal/connectivity/class_webdavAccount.inc b/plugins/personal/connectivity/class_webdavAccount.inc
index c14eee425a90595d80ecbfd3ebc36578253c8e6a..e3e588e2d5e49437533939a9db01a60e7ce2ff3c 100644 (file)
/* 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 */
$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));
/* 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));
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index a2313aaf4f0294f974698312609340440db9077c..d0ffa94848cdaad342da541f07cc22211f020f04 100644 (file)
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);
}
}
$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));
/* 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)
/* 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();
$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']);
/* 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 */
}
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)
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 {
diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index b8af3484a8f76c2cbc53228766cd98e7343ac8d2..ef48fdd074d6f78243e7e9b107452483fb1e3737 100644 (file)
/* 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 */
$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));
/* 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 */
diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc
index a01b4a87b5a5a60e657b2869e739a4813e2a560d..2650ab0938f3dba8ff76cb7a2a61240f1708c5d5 100644 (file)
/* 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 */
/* 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));
$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));
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index f1ed25a3462206e8d6acc23740e4c420b1643252..b322a151f16d3d34d0a9a84939c832a5f445af53 100644 (file)
/* 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... */
$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));
$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)
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));
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 31cbc42de5ff35bb9eb72e548a603d96dfcb3222..999cf166596cc16eba5d1a51fec27be5d55ca1ae 100644 (file)
/* 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? */
$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));
/* 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));
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index ad90cce5d9254e246f460eef62daae0b5e06acb4..862d631088879d08680b9df347e88276ad1ce929 100644 (file)
/* 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? */
$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));
$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)
$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");
$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'] =