. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * */ /* Windows supports both / and \ as path separators, so use the Unix separator * for maximum compatibility. */ define('PATH_SEP', '/'); define('PATH_HOME', WORKFLOW_PATH ); define('PATH_TRUNK', PROCESSMAKER_PATH ); define('PATH_OUTTRUNK', realpath(PROCESSMAKER_PATH.'/..') ); /* Most definitions (including the G class) is done in paths.php * This mostly simulates a sysGeneric.php call. */ if (file_exists(PATH_HOME . 'engine/config/paths_installed.php')) require_once(PATH_HOME . 'engine/config/paths_installed.php'); require_once ( PATH_HOME . 'engine/config/paths.php' ); require_once( PATH_THIRDPARTY . 'pake/pakeFunction.php'); require_once( PATH_THIRDPARTY . 'pake/pakeGetopt.class.php'); require_once( PATH_CORE . 'config/environments.php'); // register tasks $dir = PATH_HOME . 'engine/bin/commands'; $tasks = pakeFinder::type('file')->name( 'cmd*.php' )->in($dir); foreach ($tasks as $task) { include_once($task); } // run task pakeApp::get_instance()->run(null, null, false); exit(0); ?>