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"));
}