<?php
	$phpgw_info = array();
	$GLOBALS['egw_info']['flags'] = array(
		'currentapp' => 'workflow',
		'noheader'   => True,
		'nonavbar'   => True
	);
	require_once('../header.inc.php');
	
	$GLOBALS['egw']->preferences->read_repository();
	$startscreen = $GLOBALS['egw_info']['user']['preferences']['workflow']['startpage'];
	if (!isset($startscreen))
	{
		$startscreen='workflow.ui_userprocesses';
		$form_args = Array();
	}
	else
	{
		if ($startscreen == 'workflow.ui_useractivities2')
		{
			$startscreen = 'workflow.ui_useractivities';
			$form_args = 1;
		}
		else
		{
			$form_args = array();
		}
	}
	ExecMethod($startscreen.'.form',$form_args);
				
//	$obj =& CreateObject($startscreen);
//	$obj->form();

//	$GLOBALS['egw']->common->egw_footer();

?>
