session->sessionid = $_COOKIE[ 'sessionid' ]; } if( !self::$sessionStarted ) self::$sessionStarted = session_start(); if( $header === true ) { require_once (dirname(__FILE__).'/../../header.inc.php'); $_SESSION['wallet']['Sieve']['user'] = $GLOBALS['phpgw_info']['user']['account_lid']; $_SESSION['wallet']['Sieve']['password'] = $GLOBALS['phpgw_info']['user']['passwd']; $_SESSION['wallet']['Cyrus']['user'] = $GLOBALS['phpgw_info']['user']['account_lid']; $_SESSION['wallet']['Cyrus']['password'] = $GLOBALS['phpgw_info']['user']['passwd']; $_SESSION['wallet']['user']['uid'] = $GLOBALS['phpgw_info']['user']['userid']; $_SESSION['wallet']['user']['uidNumber'] = $GLOBALS['phpgw_info']['user']['account_id']; $_SESSION['wallet']['user']['password'] = $GLOBALS['phpgw_info']['user']['passwd']; $_SESSION['wallet']['user']['cn'] = $GLOBALS['phpgw_info']['user']['cn']; $_SESSION['wallet']['user']['mail'] = $GLOBALS['phpgw_info']['user']['email']; $_SESSION['wallet']['PostgreSQL']['user'] = $GLOBALS['phpgw_info']['server']['db_user']; $_SESSION['wallet']['PostgreSQL']['password'] = $GLOBALS['phpgw_info']['server']['db_pass']; $_SESSION['wallet']['PostgreSQL']['dbname'] = $GLOBALS['phpgw_info']['server']['db_name']; $_SESSION['wallet']['PostgreSQL']['host'] = $GLOBALS['phpgw_info']['server']['db_host']; $_SESSION['wallet']['OpenLDAP']['context'] = $GLOBALS['phpgw_info']['server']['ldap_context']; $_SESSION['wallet']['OpenLDAP']['host'] = $GLOBALS['phpgw_info']['server']['ldap_host']; } } } Config::init(); ?>