summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68ea014)
raw | patch | inline | side by side (parent: 68ea014)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Dec 2006 06:37:21 +0000 (06:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Dec 2006 06:37:21 +0000 (06:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5459 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/conference/class_phoneConferenceGeneric.inc | patch | blob | history |
diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc
index 43701df19b1a3f8dec9b3a9c4662c38d79245a56..fe4c11cc8bc1a19871a40ae066b07dad96888a9e 100644 (file)
var $init_HomeServer = "0"; // Initial home server of the conference
var $goFonHomeServers = array(); // All available home servers
- var $error_shown = false;
-
var $goFonConferenceOptionFormat = "";
var $goFonConferenceOptionLifetime = "";
var $telephoneNumber = "";
var $old_tele_number = false;
- var $generate_error = "";
-
var $old_dn;
/* Headpage attributes */
/* Check server configurations
* Load all server configuration in $this->goFonHomeServers if available
- * and first server as default if necessary.
- * Check if connection is successfull for the selected server $this->goFonHomeServer
+ * and use first server as default if necessary.
*/
$a_SETUP= array();
if(array_key_exists('config',$_SESSION) &&
/* get config */
if(!isset($this->goFonHomeServers[$this->goFonHomeServer])){
- print_red(sprintf(_("The specified goFonHomeServer '%s' is not available in GOsa server configuration. Saving this account will create a new entry on the server '%s'. Use cancel if you do not want to create a new entry and ignoring old accounts."),$this->goFonHomeServer, $this->goFonHomeServers[0]['DN']));
+ print_red(sprintf(_("The specified home server '%s' is not available in GOsa server configuration. Saving this account will create a new entry on the server '%s'. Use cancel if you do not want to create a new entry while ignoring old accounts."),$this->goFonHomeServer, $this->goFonHomeServers[0]['DN']));
$this->goFonHomeServer = $this->goFonHomeServers[0]['DN'];
$this->init_HomeServer = $this->goFonHomeServers[0]['DN'];
} else {
/* The base is something like this
- "cn=Confis,ou=conferences,ou=asterisk,ou=configs,ou=systems,"
- */
+ "cn=Confis,ou=conferences,ou=asterisk,ou=configs,ou=systems," */
$this->base= preg_replace ("/^[^,]+,[^,]+,[^,]+,[^,]+,[^,]+,/", "", $this->dn);
}
return($smarty->fetch (get_template_path('generic.tpl', TRUE)));
}
+
function remove_from_parent()
{
$str = $this->SQL_remove_me(true);
function check_database_accessibility()
{
-
/* Check if mysql extension is available */
if(!is_callable("mysql_pconnect")){
return(_("Can't save any changes to asterisk database, there is currently no mysql extension available in your php setup."));
$message[] =_("Only numbers are allowed in Lifetime.");
}
+ /* Check if add could be successful */
$str = $this->SQL_add_me(false);
if(!empty($str)){
$message[] = $str;
return($error_str);
}
-
/* Connect to current database to be able to add new entries */
$cfg_Current = $this->goFonHomeServers[$this->goFonHomeServer] ;
$res_cur = @mysql_pconnect($cfg_Current['SERVER'],$cfg_Current['LOGIN'],$cfg_Current['PASSWORD']);