source: contrib/listAdmin/docs/header.inc.php.template @ 3312

Revision 3312, 6.4 KB checked in by rafaelraymundo, 14 years ago (diff)

Ticket #1174 - Disponibilização do módulo de Listas(Mailman)

  • Property svn:executable set to *
Line 
1<?php
2        /**************************************************************************\
3        * eGroupWare                                                               *
4        * http://www.egroupware.org                                                *
5        * This file was originaly written by Dan Kuykendall                        *
6        * --------------------------------------------                             *
7        *  This program is free software; you can redistribute it and/or modify it *
8        *  under the terms of the GNU General Public License as published by the   *
9        *  Free Software Foundation; either version 2 of the License, or (at your  *
10        *  option) any later version.                                              *
11        \**************************************************************************/
12        /* $Id: header.inc.php.template,v 1.55.2.1 2004/08/03 14:05:35 reinerj Exp $ */
13
14        /**************************************************************************\
15        * !!!!!!! EDIT THESE LINES !!!!!!!!                                        *
16        * This setting allows you to easily move the include directory and the     *
17        * base of the eGroupWare install. Simple edit the following 2 lines with   *
18        * the absolute path to fit your site, and you should be up and running.    *
19        \**************************************************************************/
20
21        define('PHPGW_SERVER_ROOT','{SERVER_ROOT}');
22        define('PHPGW_INCLUDE_ROOT','{INCLUDE_ROOT}');
23        $GLOBALS['phpgw_info']['server']['header_admin_user'] = '{HEADER_ADMIN_USER}';
24        $GLOBALS['phpgw_info']['server']['header_admin_password'] = '{HEADER_ADMIN_PASSWORD}';
25        $GLOBALS['phpgw_info']['server']['setup_acl'] = '{SETUP_ACL}';
26
27        // Opcoes exlusivas para o Expresso Livre
28        $GLOBALS['phpgw_info']['server']['use_https'] = {USE_HTTPS};
29        $GLOBALS['phpgw_info']['server']['sugestoes_email_to'] = '{SUGESTOES_EMAIL_TO}';
30        $GLOBALS['phpgw_info']['server']['domain_name'] = '{DOMAIN_NAME}';
31        $GLOBALS['phpgw_info']['server']['use_prefix_organization'] = {USE_PREFIX_ORGANIZATION};
32
33/********** INICIO BLOCO MAILMAN ************/
34
35        // Opcoes usadas com servidor de listas Mailman
36        $GLOBALS['phpgw_info']['server']['use_mailman'] = '{USE_MAILMAN}';
37        $GLOBALS['phpgw_info']['server']['dn_listas'] = '{DN_LISTAS}';
38        $GLOBALS['phpgw_info']['server']['dominio_listas'] = '{DOMINIO_LISTAS}';
39        $GLOBALS['phpgw_info']['server']['porta_mailman'] = '{PORTA_MAILMAN}';
40        $GLOBALS['phpgw_info']['server']['host_mailman'] = '{HOST_MAILMAN}';
41        $GLOBALS['phpgw_info']['server']['url_mailman'] = '{URL_MAILMAN}';
42
43/********** FIM BLOCO MAILMAN ***************/
44
45        // If you want to identify your App Server (recommended for multiple servers):
46        //$GLOBALS['phpgw_info']['server']['use_frontend_id']   = 1024;
47        //$GLOBALS['phpgw_info']['server']['use_frontend_name'] = '01';
48                       
49        /* eGroupWare domain-specific db settings */{domains}
50        /*
51        ** If you want to have your domains in a select box, change to True
52        ** If not, users will have to login as user@domain
53        ** Note: This is only for virtual domain support, default domain users can login only using
54        ** there loginid.
55        */
56        $GLOBALS['phpgw_info']['server']['show_domain_selectbox'] = {DOMAIN_SELECTBOX};
57
58        $GLOBALS['phpgw_info']['server']['db_persistent'] = {DB_PERSISTENT};
59
60        /*
61        ** eGroupWare can handle session management using the database or
62        ** the session support built into PHP4 which usually gives better
63        ** performance.
64        ** Your choices are 'db' or 'php4'
65        */
66        $GLOBALS['phpgw_info']['server']['sessions_type'] = '{SESSIONS_TYPE}';
67
68        /* Select which login template set you want, most people will use default */
69        $GLOBALS['phpgw_info']['login_template_set'] = 'celepar';
70
71        /* This is used to control mcrypt's use */
72        $GLOBALS['phpgw_info']['server']['mcrypt_enabled'] = {ENABLE_MCRYPT};
73        /* Set this to 'old' for versions < 2.4, otherwise the exact mcrypt version you use. */
74        $GLOBALS['phpgw_info']['server']['versions']['mcrypt'] = '{MCRYPT_VERSION}';
75
76        /*
77        ** This is a random string used as the initialization vector for mcrypt
78        ** feel free to change it when setting up eGrouWare on a clean database,
79        ** but you must not change it after that point!
80        ** It should be around 30 bytes in length.
81        */
82        $GLOBALS['phpgw_info']['server']['mcrypt_iv'] = '{MCRYPT_IV}';
83
84        if(!isset($GLOBALS['phpgw_info']['flags']['nocachecontrol']) || !$GLOBALS['phpgw_info']['flags']['nocachecontrol'])
85        {
86                header('Cache-Control: no-cache, must-revalidate');  // HTTP/1.1
87                header('Pragma: no-cache');                          // HTTP/1.0
88        }
89        else
90        {
91                // allow caching by browser
92                session_cache_limiter(PHP_VERSION >= 4.2 ? 'private_no_expire' : 'private');
93        }
94
95        /* debugging settings */
96        define('DEBUG_APP',  False);
97        define('DEBUG_API',  False);
98        define('DEBUG_DATATYPES',  True);
99        define('DEBUG_LEVEL',  3);
100        define('DEBUG_OUTPUT', 2); /* 1 = screen,  2 = DB. For both use 3. */
101        define('DEBUG_TIMER', False);
102
103        function perfgetmicrotime()
104        {
105                list($usec, $sec) = explode(' ',microtime());
106                return ((float)$usec + (float)$sec);
107        }
108
109        if (DEBUG_TIMER)
110        {
111                $GLOBALS['debug_timer_start'] = perfgetmicrotime();
112        }
113
114        /**************************************************************************\
115        * Do not edit these lines                                                  *
116        \**************************************************************************/
117        define('PHPGW_API_INC',PHPGW_INCLUDE_ROOT.'/phpgwapi/inc');
118        include(PHPGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php');
119        $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] = $setup_info['phpgwapi']['version'];
120        $GLOBALS['phpgw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header'];
121        unset($setup_info);
122        $GLOBALS['phpgw_info']['server']['versions']['header'] = '1.27';
123        /* This is a fix for NT */
124        if(!isset($GLOBALS['phpgw_info']['flags']['noapi']) || !$GLOBALS['phpgw_info']['flags']['noapi'] == True)
125        {
126                include(PHPGW_API_INC . '/functions.inc.php');
127                include(PHPGW_API_INC . '/xml_functions.inc.php');
128                include(PHPGW_API_INC . '/soap_functions.inc.php');
129        }
130
131        /*
132          Leave off the final php closing tag, some editors will add
133          a \n or space after which will mess up cookies later on
134        */<!-- BEGIN domain -->
135        $GLOBALS['phpgw_domain']['{DB_DOMAIN}'] = array(
136                'db_host' => '{DB_HOST}',
137                'db_port' => '{DB_PORT}',
138                'db_name' => '{DB_NAME}',
139                'db_user' => '{DB_USER}',
140                'db_pass' => '{DB_PASS}',
141                // Look at the README file
142                'db_type' => '{DB_TYPE}',
143                // This will limit who is allowed to make configuration modifications
144                'config_user'   => '{CONFIG_USER}',
145                'config_passwd' => '{CONFIG_PASS}'
146        );
147
148<!-- END domain -->
Note: See TracBrowser for help on using the repository browser.