Changeset 3167 for branches/2.2/workflow/inc/class.ui_ajaxinterface.inc.php
- Timestamp:
- 08/17/10 16:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.ui_ajaxinterface.inc.php
r1452 r3167 11 11 \**************************************************************************/ 12 12 13 require_once 'class.workflow_acl.inc.php';14 13 require_once 'common.inc.php'; 15 14 require_once 'engine/class.ajax_config.inc.php'; … … 50 49 function set_wf_session() 51 50 { 52 $acl = new workflow_acl();51 $acl = Factory::getInstance('workflow_acl'); 53 52 $_SESSION['phpgw_info']['workflow']['server_root'] = PHPGW_SERVER_ROOT; 54 53 $_SESSION['phpgw_info']['workflow']['phpgw_api_inc'] = PHPGW_API_INC; … … 56 55 $vfs = createobject('phpgwapi.vfs'); 57 56 $_SESSION['phpgw_info']['workflow']['vfs_basedir'] = $vfs->basedir; 58 $_SESSION['phpgw_info']['workflow']['server'] = $GLOBALS['phpgw_info']['server']; 57 $_SESSION['phpgw_info']['workflow']['server'] = $GLOBALS['phpgw_info']['server']; 59 58 $_SESSION['phpgw_info']['workflow']['lang'] = $GLOBALS['lang']; 60 59 $_SESSION['phpgw_info']['workflow']['account_id'] = $GLOBALS['phpgw_info']['user']['account_id']; 61 $_SESSION['phpgw_info']['workflow']['user_groups'] = $GLOBALS['workflow']['factory']->getInstance('WorkflowLDAP')->getUserGroups($GLOBALS['phpgw_info']['user']['account_id']);60 $_SESSION['phpgw_info']['workflow']['user_groups'] = Factory::getInstance('WorkflowLDAP')->getUserGroups($GLOBALS['phpgw_info']['user']['account_id']); 62 61 $user_is_admin = $acl->checkWorkflowAdmin($GLOBALS['phpgw_info']['user']['account_id']); 63 $_SESSION['phpgw_info']['workflow']['user_is_admin'] = $user_is_admin; 62 $_SESSION['phpgw_info']['workflow']['user_is_admin'] = $user_is_admin; 64 63 $_SESSION['phpgw_info']['workflow']['user_can_admin_process'] = ($user_is_admin || ($GLOBALS['phpgw']->acl->check('admin_workflow',1,'workflow'))); 65 $_SESSION['phpgw_info']['workflow']['user_can_admin_instance'] = ($user_is_admin || ($GLOBALS['phpgw']->acl->check('admin_instance_workflow',1,'workflow'))); 64 $_SESSION['phpgw_info']['workflow']['user_can_admin_instance'] = ($user_is_admin || ($GLOBALS['phpgw']->acl->check('admin_instance_workflow',1,'workflow'))); 66 65 67 66 $can_monitor = $acl->checkUserGroupAccessToType('MON', $GLOBALS['phpgw_info']['user']['account_id']); … … 118 117 { 119 118 $CSSName = "css/{$CSSName}.css"; 120 $templateServer = & $GLOBALS['workflow']['factory']->getInstance('TemplateServer');119 $templateServer = &Factory::getInstance('TemplateServer'); 121 120 $CSSLink = $templateServer->getWebFile($CSSName); 122 121 $CSSFile = $templateServer->getSystemFile($CSSName);
Note: See TracChangeset
for help on using the changeset viewer.