source: companies/serpro/listAdmin/index.php @ 903

Revision 903, 2.6 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?php
2        /*************************************************************************************\
3        * Expresso Administraᅵᅵo                                                                                                 *
4        * by Joao Alfredo Knopik Junior (joao.alfredo@gmail.com, jakjr@celepar.pr.gov.br)        *
5        * -----------------------------------------------------------------------------------*
6        *  This program is free software; you can redistribute it and/or modify it                       *
7        *  under the terms of the GNU General Public License as published by the                         *
8        *  Free Software Foundation; either version 2 of the License, or (at your                        *
9        *  option) any later version.                                                                                                            *
10        \*************************************************************************************/
11
12        $GLOBALS['phpgw_info'] = array();
13        $GLOBALS['phpgw_info']['flags']['currentapp'] = 'listAdmin';
14        include('../header.inc.php');
15
16        $c = CreateObject('phpgwapi.config','listAdmin');
17        $c->read_repository();
18        $current_config = $c->config_data;
19       
20        $ldap_manager = CreateObject('contactcenter.bo_ldap_manager');
21        $boemailadmin   = CreateObject('emailadmin.bo');
22        $emailadmin_profile = $boemailadmin->getProfileList();
23        $_SESSION['phpgw_info']['expresso']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']);
24        $_SESSION['phpgw_info']['expresso']['user'] = $GLOBALS['phpgw_info']['user'];
25        $_SESSION['phpgw_info']['expresso']['server'] = $GLOBALS['phpgw_info']['server'];
26        $_SESSION['phpgw_info']['expresso']['ldap_server'] = $ldap_manager ? $ldap_manager->srcs[1] : null;
27        $_SESSION['phpgw_info']['expresso']['expressoAdmin'] = $current_config;
28        $_SESSION['phpgw_info']['expresso']['global_denied_users'] = $GLOBALS['phpgw_info']['server']['global_denied_users'];
29        $_SESSION['phpgw_info']['expresso']['global_denied_groups'] = $GLOBALS['phpgw_info']['server']['global_denied_groups'];
30       
31        $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
32        $template->set_file(Array('listAdmin' => 'index.tpl'));
33        $template->set_block('listAdmin','body');
34       
35
36        $exibir = 'inline';
37        $ocultar = 'none';
38        if($GLOBALS['phpgw_info']['server']['use_mailman'] == 0)
39        {
40                $msg = '-- Mï¿œDULO INDISPONï¿œVEL --<br />';
41                $msg .= 'Senhor administrador, por favor faï¿œa a configuraᅵᅵo do servidor de listas na pï¿œgina de setup, ';
42                $msg .= 'opᅵᅵo Header Admin Login.';
43                $exibir = 'none';
44                $ocultar = 'inline';
45        }
46
47        $var = Array(
48                'lang_email_lists'              => lang('Email Lists'),
49                'msg'                           => $msg,
50                'exibir'                        => $exibir,
51                'ocultar'                       => $ocultar
52        );
53        $template->set_var($var);
54        $template->pfp('out','body');
55       
56        $GLOBALS['phpgw']->common->phpgw_footer();
57?>
Note: See TracBrowser for help on using the repository browser.