True, 'edit_conf' => True, ); function __construct() { $this->bo = new bohostsjabber(); } public final function edit_conf() { if($GLOBALS['phpgw']->acl->check('applications_access',1,'admin')) { $GLOBALS['phpgw']->redirect_link('/index.php'); } $GLOBALS['phpgw_info']['flags']['app_header'] = lang('Admin') .' - ' . 'Configurar Organizações e Servidores Jabber'; $_SESSION['phpgwinfo']['db_host'] = $GLOBALS['phpgw_info']['server']['db_host']; $_SESSION['phpgwinfo']['db_port'] = $GLOBALS['phpgw_info']['server']['db_port']; $_SESSION['phpgwinfo']['db_name'] = $GLOBALS['phpgw_info']['server']['db_name']; $_SESSION['phpgwinfo']['db_user'] = $GLOBALS['phpgw_info']['server']['db_user']; $_SESSION['phpgwinfo']['db_pass'] = $GLOBALS['phpgw_info']['server']['db_pass']; $_SESSION['phpgwinfo']['db_type'] = $GLOBALS['phpgw_info']['server']['db_type']; $webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url']; $webserver_url = ( !empty($webserver_url) ) ? $webserver_url : '/'; $GLOBALS['phpgw']->common->phpgw_header(); echo parse_navbar(); // Load Language; require_once "load_lang.php"; // Load Ldap; require_once "class.ldap_im.inc.php"; $ldap = new ldap_im(); $ous = ""; if( ($LdapOus = $ldap->listOrganizationsLdap()) ) { foreach($LdapOus as $tmp ) $ous .= ""; } $ConfHosts = $this->bo->getHostsJabber(); if( $ConfHosts ) { $ConfHosts = unserialize($this->bo->getHostsJabber()); $ConfHosts = explode(";", $ConfHosts); natcasesort($ConfHosts); } $value_Organizations_Servers = ""; if(is_array($ConfHosts)) { foreach($ConfHosts as $values) { $itens = explode(":", $values); $value_Organizations_Servers .= "