| 4 | | == Podstawowy kod/nagłówki dla skryptów typu standalone/front controller == |
| 5 | | |
| 6 | | {{{ |
| 7 | | <?php |
| 8 | | // poniższy kod zakłada że skrypt znajduje się w apps/edokumenty/scripts/ |
| 9 | | // aktualym foderem musi być zawsze apps/edokumenty/ |
| 10 | | chdir(dirname(__FILE__).'/../'); |
| 11 | | require_once('./../../framework/lib/util/Translator/Translator.inc'); |
| 12 | | |
| 13 | | include('./config.inc'); |
| 14 | | |
| 15 | | error_reporting(ERROR_REPORTING); |
| 16 | | |
| 17 | | define('SCRIPT_PATH', ''); |
| 18 | | define('ASYNC_SERVICE', false); |
| 19 | | |
| 20 | | include('../../framework/globalVar.inc'); |
| 21 | | include_once(LIB_PATH.'system/SysContext.inc'); |
| 22 | | |
| 23 | | SysContext::$ent_id = null; |
| 24 | | SysContext::$usr_info = array( |
| 25 | | 'usr_id' => 1, |
| 26 | | 'orunid' => array(1), // EXTSYS_SERVICE_ID = -3 |
| 27 | | 'firnam' => 'System', |
| 28 | | 'lasnam' => 'eDokumenty', |
| 29 | | 'usrnam' => 'root', |
| 30 | | 'fullnm' => 'System eDokumenty', |
| 31 | | ); |
| 32 | | |
| 33 | | include('./localVar.inc'); |
| 34 | | include(LIB_PATH.'util/Debug.inc'); |
| 35 | | include(LIB_PATH.'system/Request.inc'); |
| 36 | | include_once(LIB_PATH.'system/UserRights.inc'); |
| 37 | | include(LIB_PATH.'system/CookieSysReg.inc'); |
| 38 | | include(LIB_PATH.'system/Application.inc'); |
| 39 | | require_once(LIB_PATH.'system/VarPathService.inc'); |
| 40 | | |
| 41 | | |
| 42 | | ...TUTAJ WPISZ WŁAŚCIWY SKRYPT... |
| 43 | | |
| 44 | | ?> |
| 45 | | }}} |
| | 4 | |
| | 597 | |
| | 598 | |
| | 599 | == Podstawowy kod/nagłówki dla skryptów typu standalone/front controller == |
| | 600 | |
| | 601 | {{{ |
| | 602 | <?php |
| | 603 | // poniższy kod zakłada że skrypt znajduje się w apps/edokumenty/scripts/ |
| | 604 | // aktualym foderem musi być zawsze apps/edokumenty/ |
| | 605 | chdir(dirname(__FILE__).'/../'); |
| | 606 | require_once('./../../framework/lib/util/Translator/Translator.inc'); |
| | 607 | |
| | 608 | include('./config.inc'); |
| | 609 | |
| | 610 | error_reporting(ERROR_REPORTING); |
| | 611 | |
| | 612 | define('SCRIPT_PATH', ''); |
| | 613 | define('ASYNC_SERVICE', false); |
| | 614 | |
| | 615 | include('../../framework/globalVar.inc'); |
| | 616 | include_once(LIB_PATH.'system/SysContext.inc'); |
| | 617 | |
| | 618 | SysContext::$ent_id = null; |
| | 619 | SysContext::$usr_info = array( |
| | 620 | 'usr_id' => 1, |
| | 621 | 'orunid' => array(1), // EXTSYS_SERVICE_ID = -3 |
| | 622 | 'firnam' => 'System', |
| | 623 | 'lasnam' => 'eDokumenty', |
| | 624 | 'usrnam' => 'root', |
| | 625 | 'fullnm' => 'System eDokumenty', |
| | 626 | ); |
| | 627 | |
| | 628 | include('./localVar.inc'); |
| | 629 | include(LIB_PATH.'util/Debug.inc'); |
| | 630 | include(LIB_PATH.'system/Request.inc'); |
| | 631 | include_once(LIB_PATH.'system/UserRights.inc'); |
| | 632 | include(LIB_PATH.'system/CookieSysReg.inc'); |
| | 633 | include(LIB_PATH.'system/Application.inc'); |
| | 634 | require_once(LIB_PATH.'system/VarPathService.inc'); |
| | 635 | |
| | 636 | |
| | 637 | ...TUTAJ WPISZ WŁAŚCIWY SKRYPT... |
| | 638 | |
| | 639 | ?> |
| | 640 | }}} |