diff --git a/header.inc.php.template b/header.inc.php.template new file mode 100644 index 0000000000..866565e09d --- /dev/null +++ b/header.inc.php.template @@ -0,0 +1,126 @@ += 4.2 ? 'private_no_expire' : 'private'); + } + + /* debugging settings */ + define('DEBUG_APP', False); + define('DEBUG_API', False); + define('DEBUG_DATATYPES', True); + define('DEBUG_LEVEL', 3); + define('DEBUG_OUTPUT', 2); /* 1 = screen, 2 = DB. For both use 3. */ + define('DEBUG_TIMER', False); + + function perfgetmicrotime() + { + list($usec, $sec) = explode(' ',microtime()); + return ((float)$usec + (float)$sec); + } + + if (DEBUG_TIMER) + { + $GLOBALS['debug_timer_start'] = perfgetmicrotime(); + } + + /**************************************************************************\ + * Do not edit these lines * + \**************************************************************************/ + define('PHPGW_API_INC',PHPGW_INCLUDE_ROOT.'/phpgwapi/inc'); + include(PHPGW_SERVER_ROOT.'/phpgwapi/setup/setup.inc.php'); + $GLOBALS['phpgw_info']['server']['versions']['phpgwapi'] = $setup_info['phpgwapi']['version']; + $GLOBALS['phpgw_info']['server']['versions']['current_header'] = $setup_info['phpgwapi']['versions']['current_header']; + unset($setup_info); + $GLOBALS['phpgw_info']['server']['versions']['header'] = '1.27'; + /* This is a fix for NT */ + if(!isset($GLOBALS['phpgw_info']['flags']['noapi']) || !$GLOBALS['phpgw_info']['flags']['noapi'] == True) + { + include(PHPGW_API_INC . '/functions.inc.php'); + include(PHPGW_API_INC . '/xml_functions.inc.php'); + include(PHPGW_API_INC . '/soap_functions.inc.php'); + } + + /* + Leave off the final php closing tag, some editors will add + a \n or space after which will mess up cookies later on + */ + $GLOBALS['phpgw_domain']['{DB_DOMAIN}'] = array( + 'db_host' => '{DB_HOST}', + 'db_port' => '{DB_PORT}', + '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_user' => '{CONFIG_USER}', + 'config_passwd' => '{CONFIG_PASS}' + ); + +