2000-08-18 05:24:22 +02:00
|
|
|
<?php
|
2001-05-11 12:02:34 +02:00
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare *
|
|
|
|
* http://www.phpgroupware.org *
|
|
|
|
* This file written by Dan Kuykendall <seek3r@phpgroupware.org> *
|
|
|
|
* -------------------------------------------- *
|
|
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU General Public License as published by the *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
2000-08-18 05:24:22 +02:00
|
|
|
|
2001-05-11 12:02:34 +02:00
|
|
|
/* $Id$ */
|
2000-08-18 05:24:22 +02:00
|
|
|
|
2001-05-11 12:02:34 +02:00
|
|
|
/**************************************************************************\
|
|
|
|
* !!!!!!! EDIT THESE LINES !!!!!!!! *
|
|
|
|
* This setting allows you to easily move the include directory and the *
|
|
|
|
* base of the phpGroupWare install. Simple edit the following 2 lines with *
|
|
|
|
* the absolute path to fit your site, and you should be up and running. *
|
|
|
|
\**************************************************************************/
|
2000-08-18 05:24:22 +02:00
|
|
|
|
2001-05-11 12:02:34 +02:00
|
|
|
define('PHPGW_SERVER_ROOT','{SERVER_ROOT}');
|
|
|
|
define('PHPGW_INCLUDE_ROOT','{INCLUDE_ROOT}');
|
2002-02-12 10:10:40 +01:00
|
|
|
$GLOBALS['phpgw_info']['server']['header_admin_password'] = '{HEADER_ADMIN_PASSWORD}';
|
2000-11-28 20:17:39 +01:00
|
|
|
|
2002-04-08 01:56:03 +02:00
|
|
|
/* phpGroupWare domain-specific db settings */{domains}
|
|
|
|
/*
|
|
|
|
** If you want to have your domains in a select box, change to True
|
|
|
|
** If not, users will have to login as user@domain
|
|
|
|
** Note: This is only for virtual domain support, default domain users can login only using
|
|
|
|
** there loginid.
|
|
|
|
*/
|
|
|
|
$GLOBALS['phpgw_info']['server']['show_domain_selectbox'] = {DOMAIN_SELECTBOX};
|
2000-09-28 02:35:27 +02:00
|
|
|
|
2002-02-12 10:10:40 +01:00
|
|
|
$GLOBALS['phpgw_info']['server']['db_persistent'] = {DB_PERSISTENT};
|
2001-09-17 04:06:12 +02:00
|
|
|
|
2002-01-02 15:32:22 +01:00
|
|
|
/*
|
|
|
|
** phpGroupWare can handle session management using the database, but if
|
|
|
|
** you are using PHP4 you can usually get better performance by having phpGroupWare
|
|
|
|
** use the session support built into PHP4. PHP3 users will have to use the database.
|
|
|
|
** Your choices are 'db' or 'php4'
|
|
|
|
*/
|
|
|
|
$GLOBALS['phpgw_info']['server']['sessions_type'] = '{SESSIONS_TYPE}';
|
|
|
|
|
2001-05-11 12:02:34 +02:00
|
|
|
/* Select which login template set you want, most people will use default */
|
2002-02-12 10:10:40 +01:00
|
|
|
$GLOBALS['phpgw_info']['login_template_set'] = 'default';
|
2000-10-31 07:46:46 +01:00
|
|
|
|
2001-05-11 12:02:34 +02:00
|
|
|
/* This is used to control mcrypt's use */
|
2002-02-12 10:10:40 +01:00
|
|
|
$GLOBALS['phpgw_info']['server']['mcrypt_enabled'] = {ENABLE_MCRYPT};
|
2002-04-08 01:56:03 +02:00
|
|
|
/* Set this to 'old' for versions < 2.4, otherwise the exact mcrypt version you use. */
|
2002-02-12 10:10:40 +01:00
|
|
|
$GLOBALS['phpgw_info']['server']['versions']['mcrypt'] = '{MCRYPT_VERSION}';
|
2001-05-11 12:02:34 +02:00
|
|
|
|
|
|
|
/*
|
2002-04-08 01:56:03 +02:00
|
|
|
** This is a random string used as the initialization vector for mcrypt
|
|
|
|
** feel free to change it when setting up phpgroupware on a clean database,
|
2001-05-11 12:02:34 +02:00
|
|
|
** but you must not change it after that point!
|
|
|
|
** It should be around 30 bytes in length.
|
2002-04-08 01:56:03 +02:00
|
|
|
*/
|
2002-02-12 10:10:40 +01:00
|
|
|
$GLOBALS['phpgw_info']['server']['mcrypt_iv'] = '{MCRYPT_IV}';
|
2000-10-31 07:46:46 +01:00
|
|
|
|
2001-12-18 19:11:39 +01:00
|
|
|
/* If you want phpGroupWare to be cached by proxy servers, uncomment the following */
|
|
|
|
/* This is NOT recommended, but phpGroupWare should still work fine. */
|
2002-04-08 01:56:03 +02:00
|
|
|
if(!isset($GLOBALS['phpgw_info']['flags']['nocachecontrol']) || !$GLOBALS['phpgw_info']['flags']['nocachecontrol'] == True)
|
2002-01-02 16:47:54 +01:00
|
|
|
{
|
|
|
|
header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
|
|
|
|
header('Pragma: no-cache'); // HTTP/1.0
|
|
|
|
}
|
2000-12-12 18:16:19 +01:00
|
|
|
|
2002-02-12 10:10:40 +01:00
|
|
|
/* debugging settings */
|
|
|
|
define('DEBUG_APP', False);
|
|
|
|
define('DEBUG_API', False);
|
2002-02-12 10:56:03 +01:00
|
|
|
define('DEBUG_DATATYPES', True);
|
2002-02-12 10:10:40 +01:00
|
|
|
define('DEBUG_LEVEL', 3);
|
2002-02-14 19:57:11 +01:00
|
|
|
define('DEBUG_OUTPUT', 2); /* 1 = screen, 2 = DB (not supported with PHP3). For both use 3. */
|
2002-02-12 10:10:40 +01:00
|
|
|
|
2001-05-11 12:02:34 +02:00
|
|
|
/**************************************************************************\
|
|
|
|
* Do not edit these lines *
|
|
|
|
\**************************************************************************/
|
|
|
|
define('PHPGW_API_INC',PHPGW_INCLUDE_ROOT.'/phpgwapi/inc');
|
2001-05-30 10:26:24 +02:00
|
|
|
include(PHPGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php');
|
2002-04-08 01:56:03 +02:00
|
|
|
$GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] = $setup_info['phpgwapi']['version'];
|
2002-02-12 10:10:40 +01:00
|
|
|
$GLOBALS['phpgw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header'];
|
2001-05-30 10:26:24 +02:00
|
|
|
unset($setup_info);
|
2002-04-08 01:56:03 +02:00
|
|
|
$GLOBALS['phpgw_info']['server']['versions']['header'] = '1.21';
|
2001-06-20 10:36:55 +02:00
|
|
|
/* This is a fix for NT */
|
2002-04-08 01:56:03 +02:00
|
|
|
if(!isset($GLOBALS['phpgw_info']['flags']['noapi']) || !$GLOBALS['phpgw_info']['flags']['noapi'] == True)
|
2001-05-11 12:02:34 +02:00
|
|
|
{
|
|
|
|
include(PHPGW_API_INC . '/functions.inc.php');
|
2001-08-08 01:04:49 +02:00
|
|
|
include(PHPGW_API_INC . '/xml_functions.inc.php');
|
|
|
|
include(PHPGW_API_INC . '/soap_functions.inc.php');
|
2001-05-11 12:02:34 +02:00
|
|
|
}
|
2000-09-30 00:26:31 +02:00
|
|
|
|
2001-06-20 10:36:55 +02:00
|
|
|
/*
|
|
|
|
Leave off the final php closing tag, some editors will add
|
|
|
|
a \n or space after which will mess up cookies later on
|
2002-04-21 19:14:07 +02:00
|
|
|
*/<!-- BEGIN domain -->
|
2002-04-08 01:56:03 +02:00
|
|
|
$GLOBALS['phpgw_domain']['{DB_DOMAIN}'] = array (
|
|
|
|
'db_host' => '{DB_HOST}',
|
|
|
|
'db_name' => '{DB_NAME}',
|
|
|
|
'db_user' => '{DB_USER}',
|
|
|
|
'db_pass' => '{DB_PASS}',
|
|
|
|
// Look at the README file
|
|
|
|
'db_type' => '{DB_TYPE}',
|
|
|
|
// This will limit who is allowed to make configuration modifications
|
|
|
|
'config_passwd' => '{CONFIG_PASS}'
|
|
|
|
);
|
|
|
|
|
|
|
|
<!-- END domain -->
|