[2] | 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 | |
---|
| 13 | /**************************************************************************\ |
---|
| 14 | * !!!!!!! EDIT THESE LINES !!!!!!!! * |
---|
| 15 | * This setting allows you to easily move the include directory and the * |
---|
| 16 | * base of the eGroupWare install. Simple edit the following 2 lines with * |
---|
| 17 | * the absolute path to fit your site, and you should be up and running. * |
---|
| 18 | \**************************************************************************/ |
---|
| 19 | |
---|
| 20 | define('PHPGW_SERVER_ROOT','/var/www/expresso'); |
---|
| 21 | define('PHPGW_INCLUDE_ROOT','/var/www/expresso'); |
---|
| 22 | $GLOBALS['phpgw_info']['server']['header_admin_user'] = 'expresso-admin'; |
---|
| 23 | $GLOBALS['phpgw_info']['server']['header_admin_password'] = 'HEADER_PWD'; |
---|
| 24 | $GLOBALS['phpgw_info']['server']['setup_acl'] = ''; |
---|
| 25 | |
---|
| 26 | // Opcoes exlusivas para o Expresso Livre |
---|
| 27 | $GLOBALS['phpgw_info']['server']['use_https'] = 0; |
---|
| 28 | $GLOBALS['phpgw_info']['server']['sugestoes_email_to'] = ''; |
---|
| 29 | $GLOBALS['phpgw_info']['server']['domain_name'] = ''; |
---|
| 30 | |
---|
| 31 | /* eGroupWare domain-specific db settings */ |
---|
| 32 | $GLOBALS['phpgw_domain']['default'] = array( |
---|
| 33 | 'db_host' => 'localhost', |
---|
| 34 | 'db_port' => '5432', |
---|
| 35 | 'db_name' => 'expresso', |
---|
| 36 | 'db_user' => 'postgres', |
---|
| 37 | 'db_pass' => '', |
---|
| 38 | // Look at the README file |
---|
| 39 | 'db_type' => 'pgsql', |
---|
| 40 | // This will limit who is allowed to make configuration modifications |
---|
| 41 | 'config_user' => 'expresso-admin', |
---|
| 42 | 'config_passwd' => 'HEADER_PWD' |
---|
| 43 | ); |
---|
| 44 | |
---|
| 45 | /* |
---|
| 46 | ** If you want to have your domains in a select box, change to True |
---|
| 47 | ** If not, users will have to login as user@domain |
---|
| 48 | ** Note: This is only for virtual domain support, default domain users can login only using |
---|
| 49 | ** there loginid. |
---|
| 50 | */ |
---|
| 51 | $GLOBALS['phpgw_info']['server']['show_domain_selectbox'] = False; |
---|
| 52 | |
---|
| 53 | $GLOBALS['phpgw_info']['server']['db_persistent'] = False; |
---|
| 54 | |
---|
| 55 | /* |
---|
| 56 | ** eGroupWare can handle session management using the database or |
---|
| 57 | ** the session support built into PHP4 which usually gives better |
---|
| 58 | ** performance. |
---|
| 59 | ** Your choices are 'db' or 'php4' |
---|
| 60 | */ |
---|
| 61 | $GLOBALS['phpgw_info']['server']['sessions_type'] = 'php4'; |
---|
| 62 | |
---|
| 63 | /* Select which login template set you want, most people will use default */ |
---|
| 64 | $GLOBALS['phpgw_info']['login_template_set'] = 'celepar'; |
---|
| 65 | |
---|
| 66 | /* This is used to control mcrypt's use */ |
---|
| 67 | $GLOBALS['phpgw_info']['server']['mcrypt_enabled'] = False; |
---|
| 68 | /* Set this to 'old' for versions < 2.4, otherwise the exact mcrypt version you use. */ |
---|
| 69 | $GLOBALS['phpgw_info']['server']['versions']['mcrypt'] = ''; |
---|
| 70 | |
---|
| 71 | /* |
---|
| 72 | ** This is a random string used as the initialization vector for mcrypt |
---|
| 73 | ** feel free to change it when setting up eGrouWare on a clean database, |
---|
| 74 | ** but you must not change it after that point! |
---|
| 75 | ** It should be around 30 bytes in length. |
---|
| 76 | */ |
---|
| 77 | $GLOBALS['phpgw_info']['server']['mcrypt_iv'] = 'Ngi4u5HOw64uCuhEdAOlZlmdiZCRNE'; |
---|
| 78 | |
---|
| 79 | if(!isset($GLOBALS['phpgw_info']['flags']['nocachecontrol']) || !$GLOBALS['phpgw_info']['flags']['nocachecontrol']) |
---|
| 80 | { |
---|
| 81 | header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1 |
---|
| 82 | header('Pragma: no-cache'); // HTTP/1.0 |
---|
| 83 | } |
---|
| 84 | else |
---|
| 85 | { |
---|
| 86 | // allow caching by browser |
---|
| 87 | session_cache_limiter(PHP_VERSION >= 4.2 ? 'private_no_expire' : 'private'); |
---|
| 88 | } |
---|
| 89 | |
---|
| 90 | /* debugging settings */ |
---|
| 91 | define('DEBUG_APP', False); |
---|
| 92 | define('DEBUG_API', False); |
---|
| 93 | define('DEBUG_DATATYPES', True); |
---|
| 94 | define('DEBUG_LEVEL', 3); |
---|
| 95 | define('DEBUG_OUTPUT', 2); /* 1 = screen, 2 = DB. For both use 3. */ |
---|
| 96 | define('DEBUG_TIMER', False); |
---|
| 97 | |
---|
| 98 | function perfgetmicrotime() |
---|
| 99 | { |
---|
| 100 | list($usec, $sec) = explode(' ',microtime()); |
---|
| 101 | return ((float)$usec + (float)$sec); |
---|
| 102 | } |
---|
| 103 | |
---|
| 104 | if (DEBUG_TIMER) |
---|
| 105 | { |
---|
| 106 | $GLOBALS['debug_timer_start'] = perfgetmicrotime(); |
---|
| 107 | } |
---|
| 108 | |
---|
| 109 | /**************************************************************************\ |
---|
| 110 | * Do not edit these lines * |
---|
| 111 | \**************************************************************************/ |
---|
| 112 | define('PHPGW_API_INC',PHPGW_INCLUDE_ROOT.'/phpgwapi/inc'); |
---|
| 113 | include(PHPGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php'); |
---|
| 114 | $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] = $setup_info['phpgwapi']['version']; |
---|
| 115 | $GLOBALS['phpgw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header']; |
---|
| 116 | unset($setup_info); |
---|
| 117 | $GLOBALS['phpgw_info']['server']['versions']['header'] = '1.27'; |
---|
| 118 | /* This is a fix for NT */ |
---|
| 119 | if(!isset($GLOBALS['phpgw_info']['flags']['noapi']) || !$GLOBALS['phpgw_info']['flags']['noapi'] == True) |
---|
| 120 | { |
---|
| 121 | include(PHPGW_API_INC . '/functions.inc.php'); |
---|
| 122 | include(PHPGW_API_INC . '/xml_functions.inc.php'); |
---|
| 123 | include(PHPGW_API_INC . '/soap_functions.inc.php'); |
---|
| 124 | } |
---|
| 125 | |
---|
| 126 | /* |
---|
| 127 | Leave off the final php closing tag, some editors will add |
---|
| 128 | a \n or space after which will mess up cookies later on |
---|
| 129 | */ |
---|