summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6edc3ac)
raw | patch | inline | side by side (parent: 6edc3ac)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 May 2007 08:38:06 +0000 (08:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 23 May 2007 08:38:06 +0000 (08:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6451 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc
index 7fd5512c7afca4442b2da10485c053d9abc9423d..8c9fde5771c0982a9c4e142f9bdb29fd9ba38045 100644 (file)
if (isset($_POST['delete_blocklist_confirm'])){
if ($this->acl_is_removeable()){
$this->remove_from_parent();
- gosa_log ("Blocklist object'".$this->dn."' has been removed");
$this->reload ();
} else {
print_red (_("You have no permission to remove this blocklist."));
}
$this->save ();
- gosa_log ("Blocklist object'".$this->dn."' has been saved");
if (!isset($_POST['edit_apply'])){
$this->dn= "";
index 0f1817415806d723efe0830de79a20f626126737..d2786d889e0c390db926fb9dfbe0d12f7872f576 100644 (file)
/* No errors, save object */
if (count ($message) == 0){
$gofaxAccount->save ();
- gosa_log ("User/fax object'".$ui->dn."' has been saved");
del_lock ($ui->dn);
sess_del ('edit');
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index 50795e6a03d0356356e36d0ecfdbeaf824ee5434..41e574419d7565a0c3d89e605fd27ea181537606 100644 (file)
$cfg_Current = $this->goFonHomeServers[$this->goFonHomeServer];
$r_current = @mysql_pconnect($cfg_Current['SERVER'],$cfg_Current['LOGIN'],$cfg_Current['PASSWORD']);
if(!$r_current){
- gosa_log(@mysql_error($r_current));
+ @log::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){
- gosa_log(@mysql_error($r_current));
+ @log::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){
- gosa_log(@mysql_error($r_init));
+ @log::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){
- gosa_log(@mysql_error($r_init));
+ @log::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){
- gosa_log(@mysql_error($res_cur));
+ @log::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){
- gosa_log(@mysql_error($res_cur));
+ @log::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){
- gosa_log(@mysql_error($r_init));
+ @log::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){
- gosa_log(@mysql_error($r_init));
+ @log::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."));
}
diff --git a/plugins/gofon/conference/class_phoneConferenceManagment.inc b/plugins/gofon/conference/class_phoneConferenceManagment.inc
index 039399748ee5260a8387d703d7f814e3883c6875..715e5fe4a0d2d0f54b0eb4d775c74f88a9fec343 100644 (file)
$acl = $this->ui->get_permissions($this->dn,"gofonconference/conference");
if(preg_match("/d/",$acl)){
$this->remove_from_parent();
- gosa_log ("Department object'".$this->dn."' has been removed");
} else {
print_red (_("You have no permission to remove this department."));
}
$acl = $this->ui->get_permissions($this->dn,"gofonconference/conference");
if(preg_match("/d/",$acl)){
$this->remove_from_parent();
- gosa_log ("Department object'".$this->dn."' has been removed");
} else {
print_red (_("You have no permission to remove this department."));
}
if (count($message) == 0){
if($this->conftab->save() == 1){
- gosa_log ("goFonConference object '".$this->dn."' saving failed.");
return;
}
- gosa_log ("goFonConference object '".$this->dn."' has been saved");
if (!isset($_POST['edit_apply'])){
if ($this->dn != "new"){
index 213cf62563ab4d989ee1fd0ac45a02ec26530ddb..3163ec45abb1350731b9e52cf24d97db695c7453 100755 (executable)
foreach($this->goFonHomeServers as $goFonHomeServer => $cfg_Current){
$r_current = @mysql_pconnect($cfg_Current['SERVER'],$cfg_Current['LOGIN'],$cfg_Current['PASSWORD']);
if(!$r_current){
- gosa_log(@mysql_error($r_current));
+ @log::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){
- gosa_log(@mysql_error($r_current));
+ @log::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){
- gosa_log(@mysql_error($r_current));
+ @log::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){
- gosa_log(@mysql_error($r_con));
- gosa_log($query);
+ @log::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);
diff --git a/plugins/gofon/macro/class_gofonMacroManagement.inc b/plugins/gofon/macro/class_gofonMacroManagement.inc
index 8069d41cd57bba65ae97a8394bf765dab3e4e81c..8312702cbb0d0f3f35a9403b8a297bf23a894302 100755 (executable)
/* Save data data to ldap */
$this->macrotabs->save();
- gosa_log ("Macro object'".$this->dn."' has been saved");
if (!isset($_POST['edit_apply'])){
/* macro has been saved successfully, remove lock from
/* Delete request is permitted, perform LDAP action */
$this->macrotabs= new macrotabs($this->config,$this->config->data['TABS']['MACROTABS'], $dn,"gofonmacro");
$this->macrotabs->delete ();
- gosa_log ("macro object'".$dn."' has been removed");
unset ($this->macrotabs);
$this->macrotabs= NULL;
/* Delete request is permitted, perform LDAP action */
$this->macrotabs= new macrotabs($this->config,$this->config->data['TABS']['MACROTABS'], $this->dn,"gofonmacro");
$this->macrotabs->delete ();
- gosa_log ("macro object'".$this->dn."' has been removed");
unset ($this->macrotabs);
$this->macrotabs= NULL;
} else {
/* Normally this shouldn't be reached, send some extra
logs to notify the administrator */
print_red (_("You are not allowed to delete this macro!"));
- gosa_log ("Warning: '".$this->ui->uid."' tried to trick group deletion.");
+ @log::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 25e1f2382dd1894ce7d5a1a6da470d408da77b78..61ae399ede6025e3b9c1082638f0ee606964cbc3 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']));
- gosa_log(mysql_error());
+ @log::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']));
- gosa_log(mysql_error());
+ @log::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']);
- gosa_log(@mysql_error($new_connection));
+ @log::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']);
- gosa_log( @mysql_error($new_connection));
+ @log::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']);
- gosa_log(@mysql_error($old_connection));
+ @log::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']);
- gosa_log(@mysql_error($old_connection));
+ @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error($old_connection));
return false;
}
}
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']));
- gosa_log(@mysql_error());
+ @log::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']));
- gosa_log(@mysql_error());
+ @log::log("debug","gofonreport/".get_class($this),"",array(),@mysql_error());
return false;
}
index 5b113a8fef47a049e19338c54032b21fabdf325f..683057ad2b77b2bf7c5d6fa6525f2c753804c275 100644 (file)
if (count ($message) == 0){
$phoneAccount->save ();
- gosa_log ("User/phone object'".$ui->dn."' has been saved");
del_lock ($ui->dn);
sess_del ('edit');