summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7986b98)
raw | patch | inline | side by side (parent: 7986b98)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Dec 2007 09:46:06 +0000 (09:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Dec 2007 09:46:06 +0000 (09:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7995 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/conference/class_phoneConferenceGeneric.inc | patch | blob | history | |
plugins/gofon/macro/class_gofonMacro.inc | patch | blob | history |
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index c79ce83f8088c4ca44abf95bc61faa208aeb5288..e8f436de47370a8783c094982c195960301ab92e 100644 (file)
if($this->goFonHomeServer != $this->init_HomeServer){
$query = "SELECT id FROM ".$cfg_Current['EXT_TABLE']." WHERE exten='".$this->telephoneNumber."' OR '".$this->cn."';";
$res = @mysql_query($query,$res_cur);
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
if(!$res){
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.").
/* Query and ensure that everything went fine */
$res = @mysql_query($SQL,$res_cur);
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$SQL, "Database query");
if(!$res){
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.").
}
foreach($SQL as $sqlsyn){
mysql_query($sqlsyn,$res_cur);
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$sqlsyn, "Database query");
}
}
/* Check if there is an old entry */
$query = "SELECT id FROM ".$cfg_Init['EXT_TABLE']." WHERE exten='".$this->old_tele_number."' OR '".$this->old_cn."';";
$res = @mysql_query($query,$r_init);
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
if(!$res){
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);
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$SQL, "Database query");
if(!$res){
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."));
index dba57adb728ae285fbf687d3d70ada42643fa44c..1dbb4ee22e184df4ef09b8dfd1fafdc8fb74ca1c 100755 (executable)
$r_current = @mysql_pconnect($Server['SERVER'],$Server['LOGIN'],$Server['PASSWORD']);
$db_current = @mysql_select_db($Server['DB'],$r_current);
$res = @mysql_query($query,$r_current);
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
if(!$res){
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']));
$db = @mysql_select_db($cfg['DB'],$r_con);
$query = preg_replace("/%TABLENAME%/",$cfg['EXT_TABLE'],$sql);
$res = @mysql_query($query,$r_con);
+ @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
if(!$res){
new log("debug","gofonmacro/".get_class($this),"",array(),@mysql_error($r_con));
return(sprintf(_("Insert of new macro failed for server '%s'."),$cfg['SERVER']));