accounts->membership(); $_SESSION['phpgw_info']['workflow']['user_groups'] = array(); foreach($membership as $idx => $group) $_SESSION['phpgw_info']['workflow']['user_groups'][] = $group['account_id']; $_SESSION['phpgw_info']['workflow']['account_id'] = $GLOBALS['phpgw_info']['user']['account_id']; $_SESSION['phpgw_info']['workflow']['phpgw_api_inc'] = dirname(__FILE__) . '/../../phpgwapi/inc'; $_SESSION['phpgw_info']['workflow']['server']['db_name'] = $GLOBALS['phpgw_info']['server']['db_name']; $_SESSION['phpgw_info']['workflow']['server']['db_host'] = $GLOBALS['phpgw_info']['server']['db_host']; $_SESSION['phpgw_info']['workflow']['server']['db_port'] = $GLOBALS['phpgw_info']['server']['db_port']; $_SESSION['phpgw_info']['workflow']['server']['db_user'] = $GLOBALS['phpgw_info']['server']['db_user']; $_SESSION['phpgw_info']['workflow']['server']['db_pass'] = $GLOBALS['phpgw_info']['server']['db_pass']; $_SESSION['phpgw_info']['workflow']['server']['db_type'] = $GLOBALS['phpgw_info']['server']['db_type']; $_SESSION['phpgw_info']['workflow']['server']['webserver_url'] = $GLOBALS['phpgw_info']['server']['webserver_url']; } $title = lang("External Applications"); $bo = CreateObject('workflow.bo_userinterface'); $externals = $bo -> externals(); $extra_data = ''; $next_br = "0"; $extra_data = "
"; foreach($externals as $idx => $external){ if($next_br == 0){ $extra_data .= ""; } $extra_data .= ""; $next_br++; if($next_br == 3){ $extra_data .= ""; $next_br = 0; } } if($next_br == 3){ $extra_data .= ""; } $extra_data .= "

".$external["name"]."
"; $portalbox = CreateObject('phpgwapi.listbox', Array( 'title' => $title, 'primary' => $GLOBALS['phpgw_info']['theme']['navbar_bg'], 'secondary' => $GLOBALS['phpgw_info']['theme']['navbar_bg'], 'tertiary' => $GLOBALS['phpgw_info']['theme']['navbar_bg'], 'width' => '100%', 'outerborderwidth' => '0', 'header_background_image' => $GLOBALS['phpgw']->common->image('phpgwapi/templates/phpgw_website','bg_filler') ) ); echo "\n".''."\n".$portalbox->draw($extra_data).''."\n"; ?>