[3312] | 1 | <?php |
---|
| 2 | /************************************************************************************************\ |
---|
| 3 | * Administracao de Listas (baseadas no Mailman) * |
---|
| 4 | * by Rommel de Brito Cysne (rommel.cysne@serpro.gov.br, rommel.cysne@gmail.com) * |
---|
| 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 | $_SESSION['phpgw_info']['expresso']['user'] = $GLOBALS['phpgw_info']['user']; |
---|
| 21 | $_SESSION['phpgw_info']['expresso']['server'] = $GLOBALS['phpgw_info']['server']; |
---|
| 22 | $_SESSION['phpgw_info']['expresso']['listAdmin'] = $current_config; |
---|
| 23 | $_SESSION['phpgw_info']['expresso']['global_denied_users'] = $GLOBALS['phpgw_info']['server']['global_denied_users']; |
---|
| 24 | $_SESSION['phpgw_info']['expresso']['global_denied_groups'] = $GLOBALS['phpgw_info']['server']['global_denied_groups']; |
---|
| 25 | |
---|
| 26 | $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); |
---|
| 27 | $template->set_file(Array('listAdmin' => 'index.tpl')); |
---|
| 28 | $template->set_block('listAdmin','body'); |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | $exibir = 'inline'; |
---|
| 32 | $ocultar = 'none'; |
---|
| 33 | |
---|
| 34 | $var = Array( |
---|
| 35 | 'lang_email_lists' => lang('Email Lists'), |
---|
| 36 | 'msg' => $msg, |
---|
| 37 | 'exibir' => $exibir, |
---|
| 38 | 'ocultar' => $ocultar |
---|
| 39 | ); |
---|
| 40 | $template->set_var($var); |
---|
| 41 | $template->pfp('out','body'); |
---|
| 42 | |
---|
| 43 | // $obj = CreateObject('listAdmin.uimaillists'); |
---|
| 44 | // $obj->list_maillists(); |
---|
| 45 | |
---|
| 46 | $GLOBALS['phpgw']->common->phpgw_footer(); |
---|
| 47 | ?> |
---|