Changeset 2492 for sandbox/workflow/branches/993/inc/common.inc.php
- Timestamp:
- 04/12/10 16:21:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/993/inc/common.inc.php
r2429 r2492 11 11 12 12 /** 13 * This is other big workaround. In ajax calls, we use controller.php13 * This is an other big workaround. In ajax calls, we use controller.php 14 14 * directly, which do not includes header.inc for performance issues. 15 15 * However, for phpgwAPI to work properly we need to set several … … 24 24 'currentapp' => 'workflow' 25 25 ); 26 /* TODO TODO TODO TODO */ 26 27 /** 28 * the base dir must be relative to this file location because 29 * the root directory is not the some in every call. 30 */ 27 31 $base = dirname(dirname(dirname(__FILE__))); 32 33 /* including expresso's header.inc.php */ 28 34 require_once ($base . '/header.inc.php'); 35 36 /* restoring old flags */ 29 37 $GLOBALS['phpgw_info']['flags'] = $old; 38 39 40 /* assure that the correct encoding will be used (e.g string functions) */ 41 setlocale(LC_CTYPE, 'pt_BR', 'pt_BR.iso-8859-1', 'pt_BR.utf-8'); 42 43 44 /* define o umask para a criação de arquivos por parte do Workflow */ 45 umask(007); 30 46 31 47 … … 66 82 67 83 68 69 /* assure that the correct encondig will be used (e.g string functions) */70 setlocale(LC_CTYPE, 'pt_BR', 'pt_BR.iso-8859-1', 'pt_BR.utf-8');71 72 73 /* define o umask para a criação de arquivos por parte do Workflow */74 umask(007);75 76 77 84 /* including common classes */ 78 85 require_once WF_LIB_ROOT . 'security/Security.php'; … … 83 90 require_once WF_LIB_ROOT . 'settings/Settings.php'; 84 91 92 /** 93 * Expresso base url. 94 * @name EGW_BASE_URL 95 */ 96 define('EGW_BASE_URL', Settings::get('expresso', 'webserver_url')); 97 98 /** 99 * Workflow base url. 100 * @name WF_BASE_URL 101 */ 102 define('WF_BASE_URL', EGW_BASE_URL . "/workflow/"); 103 104 85 105 $GLOBALS['workflow']['workflowObjects'] = Factory::getInstance('WorkflowObjects'); 86 106 ?>
Note: See TracChangeset
for help on using the changeset viewer.