True,
'editParticipantsExternals' => True,
);
final function __construct()
{
}
public final function editParticipantsExternals()
{
if($GLOBALS['phpgw']->acl->check('applications_access',1,'admin'))
{
$GLOBALS['phpgw']->redirect_link('/index.php');
}
$GLOBALS['phpgw_info']['flags']['app_header'] = lang('Admin') . ' - ' . lang('Config External Participants');
$_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();
$organizations = explode(",",$GLOBALS['phpgw_info']['server']['conf_organization_jabberit']);
natcasesort($organizations);
foreach($organizations as $tmp)
{
if( $tmp != "" )
{
$orgs .= "
";
$orgs .= "".$tmp." | ";
$orgs .= "Excluir";
$orgs .= " |
";
}
}
$pExternal = $GLOBALS['phpgw_info']['server']['use_external_participants_jabberit'];
if( $GLOBALS['phpgw_info']['server']['use_external_participants_jabberit'] === "true")
{
$optionExternal = "".
"";
$flagInputs = "selected=\"false\"";
}
else
{
$optionExternal = "".
"";
$flagInputs = "selected=\"true\"";
}
// Load Language;
require_once "load_lang.php";
$GLOBALS['phpgw']->template->set_file(array('jabberit_messenger'=>'confExternals.tpl'));
$GLOBALS['phpgw']->template->set_block('jabberit_messenger','confOrg');
$teste = $GLOBALS['phpgw']->template->set_var(array(
'action_url' => $GLOBALS['phpgw']->link('/index.php','menuaction=jabberit_messenger.uiexternals.backPage'),
'attributes_list' => '',
'lang_add' => 'Adicionar',
'lang_Back' => 'Voltar',
'lang_cancel' => lang('Cancel'),
'lang_Informe_as_Organizacoes_Externas' => 'Informe as Organizações Externas',
'lang_Cadastrar_Organizacao' => 'Cadastrar Organização',
'lang_Habilitar_Participantes_Externos' => 'Habilitar Participantes Externos',
'lang_Delete' => lang('Delete'),
'lang_save' => lang('Save'),
'lang_Organization' => lang('Organization'),
'lang_Organizacoes_Cadastradas' => 'Organizações Cadastradas',
'organizations_attributes' => $orgs,
'value_flag' => $flagInputs,
'value_use_external_participants_jabberit' => $optionExternal,
));
$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');
}
}
?>