[903] | 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 Carteiro Expresso |
---|
| 28 | $GLOBALS['phpgw_info']['server']['captcha'] = {CAPTCHA}; /* troque para 1 para usar o captcha */ |
---|
| 29 | $GLOBALS['phpgw_info']['server']['num_badlogin'] = {NUM_BADLOGIN}; /*Numero de falhas no login antes de pedir o captcha */ |
---|
| 30 | $GLOBALS['phpgw_info']['server']['atributoexpiracao'] = '{ATRIBUTOEXPIRACAO}'; |
---|
| 31 | $GLOBALS['phpgw_info']['server']['atributousuarios'] = '{ATRIBUTOUSUARIOS}'; |
---|
| 32 | $GLOBALS['phpgw_info']['server']['politicasenhas'] = '{POLITICASENHAS}'; /* expresso ou diretorio */ |
---|
| 33 | $GLOBALS['phpgw_info']['server']['diretorioescravo'] = '{DIRETORIOESCRAVO}'; /* 1 ou 0 */ |
---|
| 34 | $GLOBALS['phpgw_info']['server']['certificado'] = {CERTIFICADO}; /* troque para 1 para usar o Certificado */ |
---|
| 35 | $GLOBALS['phpgw_info']['server']['use_assinar_criptografar'] = {USE_ASSINAR_CRIPTOGRAFAR}; |
---|
| 36 | $GLOBALS['phpgw_info']['server']['num_max_certs_to_cipher'] = {NUM_MAX_CERTS_TO_CIPHER}; |
---|
| 37 | #$GLOBALS['phpgw_info']['server']['corporative_certificate'] = '{CORPORATIVE_CERTIFICATE}'; |
---|
| 38 | $GLOBALS['phpgw_info']['server']['versao-Serpro'] = '1.0'; /* soh para o SERPRO */ |
---|
| 39 | |
---|
| 40 | // Opcoes exlusivas para o Expresso Livre |
---|
| 41 | $GLOBALS['phpgw_info']['server']['use_https'] = {USE_HTTPS}; |
---|
| 42 | $GLOBALS['phpgw_info']['server']['sugestoes_email_to'] = '{SUGESTOES_EMAIL_TO}'; /* email para receber sugestoes */ |
---|
| 43 | $GLOBALS['phpgw_info']['server']['domain_name'] = '{DOMAIN_NAME}'; |
---|
| 44 | $GLOBALS['phpgw_info']['server']['use_prefix_organization'] = {USE_PREFIX_ORGANIZATION}; |
---|
| 45 | $GLOBALS['phpgw_info']['server']['use_mailman'] = {USE_MAILMAN}; |
---|
| 46 | $GLOBALS['phpgw_info']['server']['contexto_geral'] = '{CONTEXTO_GERAL}'; |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | /********** INICIO BLOCO MAILMAN ************/ |
---|
| 50 | |
---|
| 51 | // Opcoes usadas com servidor de listas Mailman |
---|
| 52 | $GLOBALS['phpgw_info']['server']['use_mailman'] = '{USE_MAILMAN}'; |
---|
| 53 | $GLOBALS['phpgw_info']['server']['dn_listas'] = '{DN_LISTAS}'; |
---|
| 54 | $GLOBALS['phpgw_info']['server']['dn_listadmin'] = '{DN_LISTADMIN}'; |
---|
| 55 | $GLOBALS['phpgw_info']['server']['dominio_listas'] = '{DOMINIO_LISTAS}'; |
---|
| 56 | $GLOBALS['phpgw_info']['server']['porta_mailman'] = '{PORTA_MAILMAN}'; |
---|
| 57 | $GLOBALS['phpgw_info']['server']['host_mailman'] = '{HOST_MAILMAN}'; |
---|
| 58 | $GLOBALS['phpgw_info']['server']['url_mailman'] = '{URL_MAILMAN}'; |
---|
| 59 | |
---|
| 60 | /********** FIM BLOCO MAILMAN ***************/ |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | /* eGroupWare domain-specific db settings */{domains} |
---|
| 64 | /* |
---|
| 65 | ** If you want to have your domains in a select box, change to True |
---|
| 66 | ** If not, users will have to login as user@domain |
---|
| 67 | ** Note: This is only for virtual domain support, default domain users can login only using |
---|
| 68 | ** there loginid. |
---|
| 69 | */ |
---|
| 70 | $GLOBALS['phpgw_info']['server']['show_domain_selectbox'] = {DOMAIN_SELECTBOX}; |
---|
| 71 | |
---|
| 72 | $GLOBALS['phpgw_info']['server']['db_persistent'] = {DB_PERSISTENT}; |
---|
| 73 | |
---|
| 74 | /* |
---|
| 75 | ** eGroupWare can handle session management using the database or |
---|
| 76 | ** the session support built into PHP4 which usually gives better |
---|
| 77 | ** performance. |
---|
| 78 | ** Your choices are 'db' or 'php4' |
---|
| 79 | */ |
---|
| 80 | $GLOBALS['phpgw_info']['server']['sessions_type'] = '{SESSIONS_TYPE}'; |
---|
| 81 | |
---|
| 82 | /* Select which login template set you want, most people will use default */ |
---|
| 83 | $GLOBALS['phpgw_info']['login_template_set'] = 'serpro'; |
---|
| 84 | |
---|
| 85 | /* This is used to control mcrypt's use */ |
---|
| 86 | $GLOBALS['phpgw_info']['server']['mcrypt_enabled'] = {ENABLE_MCRYPT}; |
---|
| 87 | /* Set this to 'old' for versions < 2.4, otherwise the exact mcrypt version you use. */ |
---|
| 88 | $GLOBALS['phpgw_info']['server']['versions']['mcrypt'] = '{MCRYPT_VERSION}'; |
---|
| 89 | |
---|
| 90 | /* |
---|
| 91 | ** This is a random string used as the initialization vector for mcrypt |
---|
| 92 | ** feel free to change it when setting up eGrouWare on a clean database, |
---|
| 93 | ** but you must not change it after that point! |
---|
| 94 | ** It should be around 30 bytes in length. |
---|
| 95 | */ |
---|
| 96 | $GLOBALS['phpgw_info']['server']['mcrypt_iv'] = '{MCRYPT_IV}'; |
---|
| 97 | |
---|
| 98 | if(!isset($GLOBALS['phpgw_info']['flags']['nocachecontrol']) || !$GLOBALS['phpgw_info']['flags']['nocachecontrol']) |
---|
| 99 | { |
---|
| 100 | header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1 |
---|
| 101 | header('Pragma: no-cache'); // HTTP/1.0 |
---|
| 102 | } |
---|
| 103 | else |
---|
| 104 | { |
---|
| 105 | // allow caching by browser |
---|
| 106 | session_cache_limiter(PHP_VERSION >= 4.2 ? 'private_no_expire' : 'private'); |
---|
| 107 | } |
---|
| 108 | |
---|
| 109 | /* debugging settings */ |
---|
| 110 | define('DEBUG_APP', False); |
---|
| 111 | define('DEBUG_API', False); |
---|
| 112 | define('DEBUG_DATATYPES', True); |
---|
| 113 | define('DEBUG_LEVEL', 3); |
---|
| 114 | define('DEBUG_OUTPUT', 2); /* 1 = screen, 2 = DB. For both use 3. */ |
---|
| 115 | define('DEBUG_TIMER', False); |
---|
| 116 | |
---|
| 117 | function perfgetmicrotime() |
---|
| 118 | { |
---|
| 119 | list($usec, $sec) = explode(' ',microtime()); |
---|
| 120 | return ((float)$usec + (float)$sec); |
---|
| 121 | } |
---|
| 122 | |
---|
| 123 | if (DEBUG_TIMER) |
---|
| 124 | { |
---|
| 125 | $GLOBALS['debug_timer_start'] = perfgetmicrotime(); |
---|
| 126 | } |
---|
| 127 | |
---|
| 128 | /**************************************************************************\ |
---|
| 129 | * Do not edit these lines * |
---|
| 130 | \**************************************************************************/ |
---|
| 131 | define('PHPGW_API_INC',PHPGW_INCLUDE_ROOT.'/phpgwapi/inc'); |
---|
| 132 | include(PHPGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php'); |
---|
| 133 | $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] = $setup_info['phpgwapi']['version']; |
---|
| 134 | $GLOBALS['phpgw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header']; |
---|
| 135 | unset($setup_info); |
---|
| 136 | $GLOBALS['phpgw_info']['server']['versions']['header'] = '1.27'; |
---|
| 137 | /* This is a fix for NT */ |
---|
| 138 | if(!isset($GLOBALS['phpgw_info']['flags']['noapi']) || !$GLOBALS['phpgw_info']['flags']['noapi'] == True) |
---|
| 139 | { |
---|
| 140 | include(PHPGW_API_INC . '/functions.inc.php'); |
---|
| 141 | include(PHPGW_API_INC . '/xml_functions.inc.php'); |
---|
| 142 | include(PHPGW_API_INC . '/soap_functions.inc.php'); |
---|
| 143 | } |
---|
| 144 | |
---|
| 145 | /* |
---|
| 146 | Leave off the final php closing tag, some editors will add |
---|
| 147 | a \n or space after which will mess up cookies later on |
---|
| 148 | */<!-- BEGIN domain --> |
---|
| 149 | $GLOBALS['phpgw_domain']['{DB_DOMAIN}'] = array( |
---|
| 150 | 'db_host' => '{DB_HOST}', |
---|
| 151 | 'db_port' => '{DB_PORT}', |
---|
| 152 | 'db_name' => '{DB_NAME}', |
---|
| 153 | 'db_user' => '{DB_USER}', |
---|
| 154 | 'db_pass' => '{DB_PASS}', |
---|
| 155 | // Look at the README file |
---|
| 156 | 'db_type' => '{DB_TYPE}', |
---|
| 157 | // This will limit who is allowed to make configuration modifications |
---|
| 158 | 'config_user' => '{CONFIG_USER}', |
---|
| 159 | 'config_passwd' => '{CONFIG_PASS}' |
---|
| 160 | ); |
---|
| 161 | |
---|
| 162 | <!-- END domain --> |
---|