Revision 2206,
987 bytes
checked in by pedroerp, 14 years ago
(diff) |
Ticket #609 - Versão inicial das classes de segurança e fábricas.
|
Line | |
---|
1 | <?php |
---|
2 | if (file_exists(PHPGW_SERVER_ROOT . '/header.session.inc.php')) { |
---|
3 | require_once PHPGW_SERVER_ROOT . '/header.session.inc.php'; |
---|
4 | } |
---|
5 | |
---|
6 | /* garante que durante a execução de funções que modificam strings, os |
---|
7 | * caracteres acentuados sejam tratados corretamente (e.g. strtoupper) |
---|
8 | */ |
---|
9 | setlocale(LC_CTYPE, 'pt_BR', 'pt_BR.iso-8859-1', 'pt_BR.utf-8'); |
---|
10 | |
---|
11 | |
---|
12 | /* define o umask para a criação de arquivos por parte do Workflow */ |
---|
13 | umask(007); |
---|
14 | |
---|
15 | |
---|
16 | /* defining constants */ |
---|
17 | define('WF_SERVER_ROOT', PHPGW_SERVER_ROOT.'/workflow/'); |
---|
18 | define('WF_INC_ROOT', WF_SERVER_ROOT.'/inc/'); |
---|
19 | define('WF_LIB_ROOT', WF_SERVER_ROOT.'/lib/'); |
---|
20 | |
---|
21 | |
---|
22 | /* including common classes */ |
---|
23 | require_once WF_LIB_ROOT . 'Security.php'; |
---|
24 | require_once WF_LIB_ROOT . 'Factory.php'; |
---|
25 | require_once WF_LIB_ROOT . 'BaseFactory.php'; |
---|
26 | require_once WF_LIB_ROOT . 'WorkflowFactory.php'; |
---|
27 | require_once WF_LIB_ROOT . 'ProcessFactory.php'; |
---|
28 | |
---|
29 | |
---|
30 | /* FIXME!! */ |
---|
31 | $GLOBALS['workflow']['workflowObjects'] = Factory::getInstance('WorkflowObjects', 'asd', 123); |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.