True, 'edit_conf' => True, ); 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 o Atributo de Autenticação'; $_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(); $options_attributes = array('uid','mail','description'); $attributes .= ""; foreach($options_attributes as $tmp ) $attributes .= ""; $options_orgAttributes = explode(",",$GLOBALS['phpgw_info']['server']['attributes_org_ldap_jabberit']); natcasesort($options_orgAttributes); foreach($options_orgAttributes as $key => $tmp) { if( $tmp != "" ) { $attr = explode(";", $tmp); $orgAttributes .= ""; $orgAttributes .= "".$attr[0].""; $orgAttributes .= "".$attr[1].""; $orgAttributes .= "Excluir"; $orgAttributes .= ""; } } // Load Language; require_once "load_lang.php"; $GLOBALS['phpgw']->template->set_file(array('jabberit_messenger'=>'confOrganization.tpl')); $GLOBALS['phpgw']->template->set_block('jabberit_messenger','confOrg'); $GLOBALS['phpgw']->template->set_var(array( 'action_url' => $GLOBALS['phpgw']->link('/index.php','menuaction=jabberit_messenger.uiconforganization.backPage'), 'attributes_list' => $attributes, 'lang_add' => 'Adicionar', 'lang_Attribute' => lang('Attribute'), 'lang_Back' => 'Voltar', 'lang_cancel' => lang('Cancel'), 'lang_Delete' => lang('Delete'), 'lang_save' => lang('Save'), 'lang_Organization' => lang('Organization'), 'organizations_attributes' => $orgAttributes, )); $GLOBALS['phpgw']->template->pparse('out','confOrg'); } public final function backPage() { if($GLOBALS['phpgw']->acl->check('applications_access',1,'admin')) { $GLOBALS['phpgw']->redirect_link('/index.php'); } if ($_POST['cancel']) { $GLOBALS['phpgw']->redirect_link('/admin/index.php'); } $GLOBALS['phpgw']->redirect_link('/admin/index.php'); } } ?>