= 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'] = '2.0'; /* 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'); } $connection_id = $GLOBALS['phpgw']->session->sessionid; if (!strlen($connection_id) != 32){ if (!isset($_SESSION['connection_db_info'])) { $GLOBALS['phpgw']->db->query("select trim(sessionid), ip, browser from phpgw_access_log where account_id <> 0 and lo = 0 and sessionid='{$GLOBALS['phpgw']->session->sessionid}' limit 1",__LINE__,__FILE__); $GLOBALS['phpgw']->db->next_record( ); $_SESSION['connection_db_info']['user_auth'] = $GLOBALS['phpgw']->db->row( ); } include("header.session.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}' );