HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once
This commit is contained in:
committed by
davidcallizaya
parent
d72b7aa561
commit
60efcf7ac7
@@ -737,7 +737,6 @@ function sortContent()
|
||||
function openPMFolder()
|
||||
{
|
||||
$WIDTH_PANEL = 350;
|
||||
G::LoadClass ('tree');
|
||||
$folderContent = $oPMFolder->getFolderList ($_POST ['folderID'] != '0' ?
|
||||
$_POST ['folderID'] == 'NA' ? "" : $_POST ['folderID'] : $rootFolder);
|
||||
//krumo($folderContent);
|
||||
@@ -826,7 +825,6 @@ function getPMFolderContent()
|
||||
$_DBArray ['PM_FOLDER_DOC'] = $folderContent;
|
||||
$_SESSION ['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass ('ArrayPeer');
|
||||
$c = new Criteria ('dbarray');
|
||||
$c->setDBArrayTable ('PM_FOLDER_DOC');
|
||||
$c->addAscendingOrderByColumn ('id');
|
||||
@@ -1121,25 +1119,6 @@ function uploadDocument()
|
||||
$finalResponse=str_replace('"'.$key.'"',$originalFunction,$finalResponse);
|
||||
}
|
||||
echo ($finalResponse);
|
||||
|
||||
/*
|
||||
//krumo($_POST);
|
||||
G::LoadClass ('case');
|
||||
$oCase = new Cases ();
|
||||
|
||||
$G_PUBLISH = new Publisher ();
|
||||
$Fields ['DOC_UID'] = $_POST ['docID'];
|
||||
$Fields ['APP_DOC_UID'] = $_POST ['appDocId'];
|
||||
$Fields ['actionType'] = $_POST ['actionType'];
|
||||
$Fields ['docVersion'] = $_POST ['docVersion'];
|
||||
|
||||
$Fields ['appId'] = $_POST ['appId'];
|
||||
$Fields ['docType'] = $_POST ['docType'];
|
||||
$G_PUBLISH->AddContent ('xmlform', 'xmlform', 'cases/cases_AttachInputDocumentGeneral', '', $Fields,
|
||||
'appFolderSaveDocument?UID=' . $_POST ['docID'] . '&appId=' . $_POST ['appId'] . '&docType=' .
|
||||
$_POST ['docType']);
|
||||
G::RenderPage ('publish', 'raw');
|
||||
*/
|
||||
}
|
||||
function copyAction()
|
||||
{
|
||||
@@ -1344,7 +1323,6 @@ function documentVersionHistory()
|
||||
$_DBArray ['PM_FOLDER_DOC_HISTORY'] = $folderContent;
|
||||
$_SESSION ['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass ('ArrayPeer');
|
||||
$c = new Criteria ('dbarray');
|
||||
$c->setDBArrayTable ('PM_FOLDER_DOC_HISTORY');
|
||||
$c->addAscendingOrderByColumn ('id');
|
||||
@@ -1697,19 +1675,6 @@ function uploadExternalDocument()
|
||||
}
|
||||
}
|
||||
print_r(G::json_encode($response));
|
||||
/*
|
||||
G::LoadClass ('case');
|
||||
$oCase = new Cases ();
|
||||
|
||||
$G_PUBLISH = new Publisher ();
|
||||
$Fields ['DOC_UID'] = "-1";
|
||||
|
||||
$Fields ['appId'] = "00000000000000000000000000000000";
|
||||
|
||||
$G_PUBLISH->AddContent ('xmlform', 'xmlform', 'cases/cases_AttachInputDocumentGeneral', '', $Fields,
|
||||
'appFolderSaveDocument?UID=-1&appId=' . $Fields ['appId'] . "&folderId=" . $_POST ['folderID']);
|
||||
G::RenderPage ('publish', 'raw');
|
||||
*/
|
||||
}
|
||||
|
||||
function newFolder()
|
||||
|
||||
@@ -72,7 +72,6 @@ try {
|
||||
global $_DBArray;
|
||||
$_DBArray['users'] = $aUsers;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$oCriteria = new Criteria( 'dbarray' );
|
||||
$oCriteria->setDBArrayTable( 'users' );
|
||||
$aData = Array ('Checkbox' => '0','FullName' => '0'
|
||||
@@ -95,9 +94,9 @@ try {
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
break;
|
||||
case 'authSourcesList':
|
||||
require_once PATH_RBAC . 'model/AuthenticationSource.php';
|
||||
|
||||
global $RBAC;
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$co = new Configurations();
|
||||
$config = $co->getConfiguration( 'authSourcesList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$limit_size = isset( $config['pageSize'] ) ? $config['pageSize'] : 20;
|
||||
|
||||
@@ -87,8 +87,6 @@ if ($fields['AUTH_SOURCE_PROVIDER'] == 'ldap') {
|
||||
$pluginEnabled = 1;
|
||||
|
||||
if ($pluginEnabled == 1) {
|
||||
//The attributes the users
|
||||
G::LoadClass("pmFunctions");
|
||||
|
||||
$data = executeQuery("DESCRIBE USERS");
|
||||
$fieldSet = array("USR_UID", "USR_USERNAME", "USR_PASSWORD", "USR_CREATE_DATE", "USR_UPDATE_DATE", "USR_COUNTRY", "USR_CITY", "USR_LOCATION", "DEP_UID", "USR_RESUME", "USR_ROLE", "USR_REPORTS_TO", "USR_REPLACED_BY", "USR_UX");
|
||||
|
||||
@@ -29,7 +29,6 @@ if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||
die();
|
||||
}
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration( 'authSourcesList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$Config['pageSize'] = isset( $configPage['pageSize'] ) ? $configPage['pageSize'] : 20;
|
||||
@@ -47,8 +46,8 @@ $oHeadPublisher->addExtJsScript( 'authSources/authSourcesList', false ); //addin
|
||||
if ($licensedFeatures->verifyfeature('sywN09PSzh1MVdOajZBdnhMbFhCSnpNT1lLTEFwVklmOTE=')) {
|
||||
$oHeadPublisher->addExtJsScript( 'authSources/authSourcesListSyn', false ); //adding a javascript file .js
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$oHeadPublisher->addContent( 'authSources/authSourcesList' ); //adding a html file .html.
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$oHeadPublisher->addContent( 'authSources/authSourcesList' ); //adding a html file .html.
|
||||
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
||||
$oHeadPublisher->assign( 'CONFIG', $Config );
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
@@ -41,7 +41,6 @@ if (file_exists( PATH_XMLFORM . 'ldapAdvanced/' . $fields['AUTH_SOURCE_PROVIDER'
|
||||
$pluginEnabled = 1;
|
||||
if ($pluginEnabled == 1) {
|
||||
//The attributes the users
|
||||
G::LoadClass("pmFunctions");
|
||||
|
||||
$data = executeQuery("DESCRIBE USERS");
|
||||
$fieldSet = array("USR_UID", "USR_USERNAME", "USR_PASSWORD", "USR_CREATE_DATE", "USR_UPDATE_DATE", "USR_COUNTRY", "USR_CITY", "USR_LOCATION", "DEP_UID", "USR_RESUME", "USR_ROLE", "USR_REPORTS_TO", "USR_REPLACED_BY", "USR_UX");
|
||||
|
||||
@@ -47,7 +47,7 @@ if (file_exists( PATH_XMLFORM . 'ldapAdvanced/' . $fields['AUTH_SOURCE_PROVIDER'
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => G::LoadTranslation( 'ID_AUTH_SOURCE_FEATURE_MISSING' ) ) );
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
} else {
|
||||
G::LoadClass('configuration');
|
||||
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration('additionalTablesList', 'pageSize','',$_SESSION['USER_LOGGED']);
|
||||
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
G::LoadClass("ldapAdvanced");
|
||||
|
||||
$function = $_REQUEST['functionAccion'];
|
||||
|
||||
@@ -298,7 +297,6 @@ switch ($function) {
|
||||
$aData['USR_UID'] = $sUserUID;
|
||||
$aData['USR_ROLE'] = 'PROCESSMAKER_OPERATOR';
|
||||
|
||||
G::LoadClass("calendar");
|
||||
$calendarObj = new Calendar();
|
||||
$calendarObj->assignCalendarTo($sUserUID, '00000000000000000000000000000001', 'USER');
|
||||
|
||||
|
||||
@@ -82,9 +82,6 @@ class Ajax
|
||||
|
||||
public function getCaseMenu($params)
|
||||
{
|
||||
|
||||
G::LoadClass("configuration");
|
||||
G::LoadClass("case");
|
||||
global $G_TMP_MENU;
|
||||
global $sStatus;
|
||||
$sStatus = $params['app_status'];
|
||||
@@ -123,7 +120,7 @@ class Ajax
|
||||
print G::json_encode( $response );
|
||||
die();
|
||||
}
|
||||
G::LoadClass('applications');
|
||||
|
||||
$applications = new Applications();
|
||||
|
||||
$proUid = isset($_SESSION['PROCESS']) ? $_SESSION['PROCESS'] : '';
|
||||
@@ -268,8 +265,6 @@ class Ajax
|
||||
global $G_TABLE;
|
||||
global $RBAC;
|
||||
|
||||
G::LoadClass('processMap');
|
||||
|
||||
$oTemplatePower = new TemplatePower(PATH_TPL . 'processes/processes_Map.html');
|
||||
$oTemplatePower->prepare();
|
||||
$G_PUBLISH = new Publisher();
|
||||
@@ -381,7 +376,6 @@ class Ajax
|
||||
$processData['PRO_AUTHOR'] = '(USER DELETED)';
|
||||
}
|
||||
|
||||
G::LoadClass('configuration');
|
||||
$conf = new Configurations();
|
||||
$conf->getFormats();
|
||||
$processData['PRO_CREATE_DATE'] = $conf->getSystemDate($processData['PRO_CREATE_DATE']);
|
||||
@@ -397,7 +391,7 @@ class Ajax
|
||||
print G::json_encode( $response );
|
||||
die();
|
||||
}
|
||||
G::LoadClass('tasks');
|
||||
|
||||
$task = new Task();
|
||||
if ($_SESSION['TASK'] == '-1') {
|
||||
$_SESSION['TASK'] = $_SESSION['CURRENT_TASK'];
|
||||
@@ -412,7 +406,6 @@ class Ajax
|
||||
public function caseHistory()
|
||||
{
|
||||
global $G_PUBLISH;
|
||||
G::loadClass('configuration');
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$conf = new Configurations();
|
||||
@@ -425,7 +418,6 @@ class Ajax
|
||||
public function messageHistory()
|
||||
{
|
||||
global $G_PUBLISH;
|
||||
G::loadClass('configuration');
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$conf = new Configurations();
|
||||
@@ -438,7 +430,6 @@ class Ajax
|
||||
public function dynaformHistory()
|
||||
{
|
||||
global $G_PUBLISH;
|
||||
G::loadClass('configuration');
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$conf = new Configurations();
|
||||
@@ -451,7 +442,7 @@ class Ajax
|
||||
public function changeLogHistory()
|
||||
{
|
||||
global $G_PUBLISH;
|
||||
G::loadClass('configuration');
|
||||
|
||||
$idHistory = sprintf(
|
||||
'%s_%s_%s',
|
||||
$_SESSION['PROCESS'],
|
||||
@@ -477,7 +468,6 @@ class Ajax
|
||||
die();
|
||||
}
|
||||
global $G_PUBLISH;
|
||||
G::loadClass('configuration');
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$conf = new Configurations();
|
||||
@@ -491,7 +481,6 @@ class Ajax
|
||||
public function uploadedDocumentsSummary()
|
||||
{
|
||||
global $G_PUBLISH;
|
||||
G::loadClass('configuration');
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$conf = new Configurations();
|
||||
@@ -505,7 +494,6 @@ class Ajax
|
||||
public function generatedDocuments()
|
||||
{
|
||||
global $G_PUBLISH;
|
||||
G::loadClass('configuration');
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$conf = new Configurations();
|
||||
@@ -519,7 +507,6 @@ class Ajax
|
||||
public function generatedDocumentsSummary()
|
||||
{
|
||||
global $G_PUBLISH;
|
||||
G::loadClass('configuration');
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$conf = new Configurations();
|
||||
@@ -985,7 +972,7 @@ class Ajax
|
||||
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["NEXT_STEP_LABEL"] = "";
|
||||
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["NEXT_STEP"] = "#";
|
||||
$Fields["APP_DATA"]["__DYNAFORM_OPTIONS"]["NEXT_ACTION"] = "return false;";
|
||||
G::LoadClass('pmDynaform');
|
||||
|
||||
$FieldsPmDynaform = $Fields;
|
||||
$FieldsPmDynaform["PRO_UID"] = $_SESSION['PROCESS'];
|
||||
$FieldsPmDynaform["CURRENT_DYNAFORM"] = $_REQUEST['DYN_UID'];
|
||||
@@ -1046,7 +1033,6 @@ if (!($ajax instanceof Ajax)) {
|
||||
$ajax = new Ajax();
|
||||
}
|
||||
|
||||
G::LoadClass('case');
|
||||
|
||||
$action = $_REQUEST['action'];
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<?php
|
||||
G::LoadClass("pmFunctions");
|
||||
G::LoadClass("reportTables");
|
||||
|
||||
$sTasUid = $_REQUEST['tas_uid'];
|
||||
$sDynUid = $_REQUEST['dyn_uid'];
|
||||
@@ -102,8 +100,6 @@ if ($sStatus == "1" && $sDynUid != "") {
|
||||
|
||||
$_POST['form']['FIELDS'] = array();
|
||||
|
||||
G::LoadClass("reportTables");
|
||||
|
||||
$oReportTable = new ReportTable();
|
||||
//if (!isset($_POST['form']['REP_TAB_CONNECTION'])) {
|
||||
// $_POST['form']['REP_TAB_CONNECTION'] = 'report';
|
||||
@@ -130,7 +126,6 @@ if ($sStatus == "1" && $sDynUid != "") {
|
||||
$aFields = array();
|
||||
|
||||
if ($isBPMN) {
|
||||
G::LoadClass("pmDynaform");
|
||||
|
||||
$pmDyna = new pmDynaform(array());
|
||||
$pmDyna->fields["CURRENT_DYNAFORM"] = $sDynUid;
|
||||
|
||||
@@ -26,9 +26,6 @@ $actionAjax = isset( $_REQUEST['actionAjax'] ) ? $_REQUEST['actionAjax'] : null;
|
||||
|
||||
if ($actionAjax == 'historyGridList_JXP') {
|
||||
|
||||
G::LoadClass('case');
|
||||
G::LoadClass("BasePeer");
|
||||
|
||||
global $G_PUBLISH;
|
||||
$criteria = Cases::getTransferHistoryCriteria($_SESSION['APPLICATION']);
|
||||
|
||||
|
||||
@@ -43,9 +43,6 @@ if ($actionAjax == 'messageHistoryGridList_JXP') {
|
||||
$_REQUEST['limit'] = 20;
|
||||
}
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( "BasePeer" );
|
||||
|
||||
$dir = isset( $_POST['dir'] ) ? $_POST['dir'] : 'ASC';
|
||||
$sort = isset( $_POST['sort'] ) ? $_POST['sort'] : '';
|
||||
|
||||
@@ -160,7 +157,6 @@ if ($actionAjax == 'showHistoryMessage') {
|
||||
</script>
|
||||
<?php
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
|
||||
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
||||
@@ -192,14 +188,10 @@ if ($actionAjax == 'sendMailMessage_JXP') {
|
||||
$_POST['APP_UID'] = $_REQUEST['APP_UID'];
|
||||
$_POST['APP_MSG_UID'] = $_REQUEST['APP_MSG_UID'];
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'spool' );
|
||||
|
||||
$oCase = new Cases();
|
||||
$data = $oCase->getHistoryMessagesTrackerView( $_POST['APP_UID'], $_POST['APP_MSG_UID'] );
|
||||
|
||||
G::LoadClass('system');
|
||||
|
||||
$aSetup = System::getEmailConfiguration();
|
||||
|
||||
$oSpool = new spoolRun();
|
||||
|
||||
@@ -7,10 +7,6 @@ $oCriteria = new Criteria("workflow");
|
||||
$oCriteria->add(CaseConsolidatedCorePeer::CON_STATUS, 'ACTIVE');
|
||||
$activeNumRows = CaseConsolidatedCorePeer::doCount($oCriteria);
|
||||
|
||||
G::LoadClass("BasePeer");
|
||||
G::LoadClass("configuration");
|
||||
G::loadClass("pmFunctions");
|
||||
|
||||
$headPublisher = &headPublisher::getSingleton();
|
||||
$usrUid = $_SESSION["USER_LOGGED"];
|
||||
$conf = new Configurations();
|
||||
|
||||
@@ -77,7 +77,7 @@ function casesShowOuputDocumentExist ($url)
|
||||
if ($actionAjax == 'casesGenerateDocumentPage') {
|
||||
global $G_PUBLISH;
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
G::loadClass( 'configuration' );
|
||||
|
||||
$conf = new Configurations();
|
||||
$oHeadPublisher->addExtJsScript( 'cases/casesGenerateDocumentPage', true ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'cases/casesGenerateDocumentPage' ); //adding a html file .html.
|
||||
@@ -86,8 +86,6 @@ if ($actionAjax == 'casesGenerateDocumentPage') {
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
}
|
||||
if ($actionAjax == 'generateDocumentGrid_Ajax') {
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( "BasePeer" );
|
||||
|
||||
global $G_PUBLISH;
|
||||
$oCase = new Cases();
|
||||
@@ -119,7 +117,7 @@ if ($actionAjax == 'generateDocumentGrid_Ajax') {
|
||||
}
|
||||
|
||||
//!dateFormat
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$conf = new Configurations();
|
||||
try {
|
||||
$generalConfCasesList = $conf->getConfiguration( 'ENVIRONMENT_SETTINGS', '' );
|
||||
|
||||
@@ -33,7 +33,7 @@ $actionAjax = isset( $_REQUEST['actionAjax'] ) ? $_REQUEST['actionAjax'] : null;
|
||||
if ($actionAjax == "historyDynaformPage") {
|
||||
global $G_PUBLISH;
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
G::loadClass( 'configuration' );
|
||||
|
||||
$conf = new Configurations();
|
||||
$oHeadPublisher->addExtJsScript( 'cases/caseHistoryDynaformPage', true ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'cases/caseHistoryDynaformPage' ); //adding a html file .html.
|
||||
@@ -41,8 +41,6 @@ if ($actionAjax == "historyDynaformPage") {
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
}
|
||||
if ($actionAjax == 'historyDynaformGrid_Ajax') {
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( "BasePeer" );
|
||||
|
||||
global $G_PUBLISH;
|
||||
$oCase = new Cases();
|
||||
@@ -104,7 +102,6 @@ if ($actionAjax == 'showHistoryMessage') {
|
||||
</script>
|
||||
<?php
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
|
||||
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
||||
@@ -389,7 +386,7 @@ if ($actionAjax == 'dynaformChangeLogViewHistory') {
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = '';
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = '#';
|
||||
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
|
||||
G::LoadClass('pmDynaform');
|
||||
|
||||
$FieldsPmDynaform = $Fields;
|
||||
$FieldsPmDynaform["PRO_UID"] = $_SESSION['PROCESS'];
|
||||
$FieldsPmDynaform["CURRENT_DYNAFORM"] = $_GET['DYN_UID'];
|
||||
@@ -454,8 +451,6 @@ if ($actionAjax == 'historyDynaformGridPreview') {
|
||||
//!dataIndex
|
||||
$_POST["DYN_UID"] = $_REQUEST["DYN_UID"];
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$oCase = new Cases();
|
||||
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
||||
@@ -481,7 +476,7 @@ if ($actionAjax == 'historyDynaformGridPreview') {
|
||||
|
||||
$_SESSION['CURRENT_DYN_UID'] = $_POST['DYN_UID'];
|
||||
$_SESSION['DYN_UID_PRINT'] = $_POST['DYN_UID'];
|
||||
G::LoadClass('pmDynaform');
|
||||
|
||||
$FieldsPmDynaform = $Fields;
|
||||
$FieldsPmDynaform["CURRENT_DYNAFORM"] = $_GET['DYN_UID'];
|
||||
$a = new pmDynaform(\ProcessMaker\Util\DateTime::convertUtcToTimeZone($FieldsPmDynaform));
|
||||
|
||||
@@ -55,9 +55,6 @@ switch ($action) {
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
G::LoadClass("BasePeer");
|
||||
G::LoadClass("configuration");
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
// oHeadPublisher->setExtSkin( 'xtheme-blue');
|
||||
//get the configuration for this action
|
||||
@@ -123,7 +120,6 @@ if ($action == "todo" || $action == "draft" || $action == "sent" || $action == "
|
||||
$action == "unassigned" || $action == "search") {
|
||||
$solrConfigured = ($solrConf = System::solrEnv()) !== false ? 1 : 0;
|
||||
if ($solrConfigured == 1) {
|
||||
G::LoadClass('AppSolr');
|
||||
$applicationSolrIndex = new AppSolr(
|
||||
$solrConf['solr_enabled'],
|
||||
$solrConf['solr_host'],
|
||||
@@ -189,7 +185,6 @@ $reassignCase = ($RBAC->userCanAccess( 'PM_REASSIGNCASE' ) == 1) ? 'true' : '
|
||||
$reassignCaseSup = ($RBAC->userCanAccess( 'PM_REASSIGNCASE_SUPERVISOR' ) == 1) ? 'true':'false';
|
||||
$oHeadPublisher->assign( 'varReassignCase', $reassignCase );
|
||||
$oHeadPublisher->assign( 'varReassignCaseSupervisor', $reassignCaseSup );
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$oHeadPublisher->addExtJsScript( 'app/main', true );
|
||||
$oHeadPublisher->addExtJsScript( 'cases/casesList', false ); //adding a javascript file .js
|
||||
|
||||
@@ -6,7 +6,7 @@ $pathDerivateGmail = 'derivatedGmail';
|
||||
$statusPMGmail = false;
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||
G::LoadClass( "pmGoogleApi" );
|
||||
|
||||
$pmGoogle = new PMGoogleApi();
|
||||
$statusPMGmail = $pmGoogle->getServiceGmailStatus();
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$actionAjax = isset($_REQUEST['actionAjax']) ? $_REQUEST['actionAjax'] : null;
|
||||
|
||||
@@ -303,7 +302,6 @@ if ($actionAjax == 'showHistoryMessage') {
|
||||
</script>
|
||||
<?php
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
|
||||
$_POST["APP_UID"] = $_REQUEST["APP_UID"];
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
$action = isset( $_GET['action'] ) ? G::sanitizeInput($_GET['action']) : 'default';
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'configuration' );
|
||||
$userId = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : '00000000000000000000000000000000';
|
||||
switch ($action) {
|
||||
case 'getAllCounters':
|
||||
|
||||
@@ -32,8 +32,6 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
||||
//$oForm->validatePost ();
|
||||
|
||||
/* @author Alvaro Campos Sanchez */
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
if (!is_array($_POST['form'])) {
|
||||
$_POST['form'] = array();
|
||||
|
||||
@@ -28,7 +28,6 @@ $_POST['action'] = get_ajax_value( 'action' );
|
||||
|
||||
switch ($_POST['action']) {
|
||||
case 'updatePageSize':
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$arr['pageSize'] = $_REQUEST['size'];
|
||||
$arr['dateSave'] = date( 'Y-m-d H:i:s' );
|
||||
|
||||
@@ -14,14 +14,12 @@ switch ($page) {
|
||||
case "startCase":
|
||||
$oHeadPublisher->addExtJsScript( 'cases/casesStartCase', true ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'cases/casesStartCase' ); //adding a html file .html.
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
||||
$oHeadPublisher->assign('isIE', Bootstrap::isIE());
|
||||
break;
|
||||
case "documents":
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration( 'documentsModule', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$configEnv = $c->getConfiguration( 'ENVIRONMENT_SETTINGS', '' );
|
||||
|
||||
@@ -32,9 +32,6 @@ $functionName( $functionParams );
|
||||
|
||||
function getProcessList ()
|
||||
{
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'process' );
|
||||
G::LoadClass( 'calendar' );
|
||||
$calendar = new Calendar();
|
||||
$oProcess = new Process();
|
||||
$oCase = new Cases();
|
||||
@@ -179,8 +176,6 @@ function lookinginforContentProcess ($sproUid)
|
||||
|
||||
function startCase ()
|
||||
{
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$_POST = $filter->xssFilterHard($_POST);
|
||||
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
||||
@@ -239,9 +234,6 @@ function startCase ()
|
||||
|
||||
function getSimpleDashboardData ()
|
||||
{
|
||||
G::LoadClass( "BasePeer" );
|
||||
require_once ("classes/model/AppCacheView.php");
|
||||
require_once 'classes/model/Process.php';
|
||||
$sUIDUserLogged = $_SESSION['USER_LOGGED'];
|
||||
|
||||
$Criteria = new Criteria( 'workflow' );
|
||||
|
||||
@@ -41,7 +41,6 @@ class ExtJsTreeNode extends TreeNode
|
||||
}
|
||||
}
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$o = new Cases();
|
||||
$PRO_UID = $_SESSION['PROCESS'];
|
||||
|
||||
|
||||
@@ -35,7 +35,6 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
|
||||
//if($RBAC->userCanAccess('PM_ALLCASES') < 0) {
|
||||
@@ -91,7 +90,7 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
break;
|
||||
case 'showProcessMap':
|
||||
G::LoadClass( 'processMap' );
|
||||
|
||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'processes/processes_Map.html' );
|
||||
$oTemplatePower->prepare();
|
||||
$G_PUBLISH = new Publisher();
|
||||
@@ -179,7 +178,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
break;
|
||||
case 'showTransferHistory':
|
||||
G::LoadClass( "case" );
|
||||
$c = Cases::getTransferHistoryCriteria( $_SESSION['APPLICATION'] );
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/cases_TransferHistory', $c, array () );
|
||||
@@ -254,7 +252,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
// switch verify $_POST['TAS_ASSIGN_TYPE']
|
||||
case 'BALANCED':
|
||||
$USR_UID = $filter->xssFilterHard($_POST['USR_UID']);
|
||||
G::LoadClass( 'user' );
|
||||
$oUser = new User( new DBConnection() );
|
||||
$oUser->load( $USR_UID );
|
||||
$oUser->Fields['USR_FIRSTNAME'] = $filter->xssFilterHard($oUser->Fields['USR_FIRSTNAME']);
|
||||
@@ -312,7 +309,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
case 'EVALUATE':
|
||||
$TAS_ASSIGN_VARIABLE = $filter->xssFilterHard($_POST['TAS_ASSIGN_VARIABLE']);
|
||||
$APPLICATION = $filter->xssFilterHard($_SESSION['APPLICATION']);
|
||||
G::LoadClass( 'application' );
|
||||
$oApplication = new Application( new DBConnection() );
|
||||
$oApplication->load( $APPLICATION );
|
||||
$sUser = '';
|
||||
@@ -322,7 +318,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
}
|
||||
}
|
||||
if ($sUser != '') {
|
||||
G::LoadClass( 'user' );
|
||||
$oUser = new User( new DBConnection() );
|
||||
$oUser->load( $sUser );
|
||||
echo $oUser->Fields['USR_FIRSTNAME'] . ' ' . $oUser->Fields['USR_LASTNAME'] . '<input type="hidden" name="form[TASKS][1][USR_UID]" id="form[TASKS][1][USR_UID]" value="' . $sUser . '">';
|
||||
@@ -420,8 +415,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
$oCase->removeCase( $sApplicationUID );
|
||||
break;
|
||||
case 'view_reassignCase':
|
||||
G::LoadClass( 'groups' );
|
||||
G::LoadClass( 'tasks' );
|
||||
|
||||
$oTasks = new Tasks();
|
||||
$aAux = $oTasks->getGroupsOfTask( $_SESSION['TASK'], 1 );
|
||||
@@ -547,8 +540,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
break;
|
||||
case 'uploadDocumentGrid_Ajax':
|
||||
G::LoadClass('case');
|
||||
G::LoadClass("BasePeer");
|
||||
global $G_PUBLISH;
|
||||
|
||||
$arrayToTranslation = array(
|
||||
@@ -600,9 +591,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
break;
|
||||
case 'generateDocumentGrid_Ajax':
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( "BasePeer" );
|
||||
G::LoadClass( 'configuration' );
|
||||
global $G_PUBLISH;
|
||||
|
||||
$oCase = new Cases();
|
||||
@@ -729,8 +717,7 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
break;
|
||||
case 'adhocAssignmentUsers':
|
||||
G::LoadClass( 'groups' );
|
||||
G::LoadClass( 'tasks' );
|
||||
|
||||
$oTasks = new Tasks();
|
||||
$aAux = $oTasks->getGroupsOfTask( $_SESSION['TASK'], 2 );
|
||||
$aAdhocUsers = array ();
|
||||
@@ -793,15 +780,11 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
/* @Author Erik Amaru Ortiz <erik@colosa.com> */
|
||||
case 'resendMessage':
|
||||
//require_once 'classes/model/Configuration.php';
|
||||
G::LoadClass( 'spool' );
|
||||
|
||||
$oCase = new Cases();
|
||||
$data = $oCase->getHistoryMessagesTrackerView( $_POST['APP_UID'], $_POST['APP_MSG_UID'] );
|
||||
//print_r($data);
|
||||
|
||||
|
||||
G::LoadClass("system");
|
||||
|
||||
$aSetup = System::getEmailConfiguration();
|
||||
|
||||
$passwd = $aSetup['MESS_PASSWORD'];
|
||||
@@ -849,10 +832,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
$APP_UIDS = explode( ',', $_POST['APP_UIDS'] );
|
||||
$sReassignFromUser = $_POST['FROM_USR_ID'];
|
||||
|
||||
G::LoadClass( 'tasks' );
|
||||
G::LoadClass( 'groups' );
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oTasks = new Tasks();
|
||||
$oGroups = new Groups();
|
||||
$oUser = new Users();
|
||||
@@ -900,7 +879,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
|
||||
global $_DBArray;
|
||||
$_DBArray['reassign_byuser'] = $aCasesList;
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$oCriteria = new Criteria( 'dbarray' );
|
||||
$oCriteria->setDBArrayTable( 'reassign_byuser' );
|
||||
$G_PUBLISH = new Publisher();
|
||||
@@ -909,7 +887,6 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
||||
break;
|
||||
/* @Author Erik Amaru Ortiz <erik@colosa.com> */
|
||||
case 'reassignByUser':
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oCases = new Cases();
|
||||
$aCases = Array ();
|
||||
|
||||
@@ -49,7 +49,6 @@ if (isset( $_POST['form']['BTN_CANCEL'] )) {
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oCase = new Cases();
|
||||
$sAppUid = $_SESSION['APPLICATION'];
|
||||
@@ -73,7 +72,6 @@ if ($aDelegation['USR_UID'] == "") {
|
||||
}
|
||||
|
||||
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||
G::LoadClass("AppDocumentDrive");
|
||||
$drive = new AppDocumentDrive();
|
||||
if ($drive->getStatusDrive()) {
|
||||
//add users email next task
|
||||
|
||||
@@ -35,9 +35,6 @@ switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oCase = new Cases();
|
||||
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'], $_SESSION['INDEX'] );
|
||||
|
||||
|
||||
@@ -35,9 +35,6 @@ switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* Process the info */
|
||||
try {
|
||||
$oCase = new Cases();
|
||||
|
||||
@@ -35,10 +35,6 @@ switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
require_once ("classes/model/AppDocumentPeer.php");
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
|
||||
/* Process the info */
|
||||
|
||||
@@ -35,10 +35,6 @@ switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
require_once ("classes/model/AppDocumentPeer.php");
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
|
||||
/* Process the info */
|
||||
|
||||
@@ -194,7 +194,6 @@ try {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton ();
|
||||
if ($licensedFeatures->verifyfeature ( '7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09' )) {
|
||||
G::LoadClass ( "pmGoogleApi" );
|
||||
$pmGoogle = new PMGoogleApi ();
|
||||
if ($pmGoogle->getServiceGmailStatus ()) {
|
||||
$flagGmail = true;
|
||||
@@ -249,7 +248,7 @@ try {
|
||||
// Set users drive - start
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||
G::LoadClass("AppDocumentDrive");
|
||||
|
||||
$drive = new AppDocumentDrive();
|
||||
if ($drive->getStatusDrive()) {
|
||||
//add users email next task
|
||||
|
||||
@@ -55,9 +55,6 @@ switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
|
||||
/* Menues */
|
||||
|
||||
@@ -30,8 +30,7 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_CASES" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
//go to the next step
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oCase = new Cases();
|
||||
$aNextStep = $oCase->getNextStep( $_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['STEP_POSITION'] );
|
||||
$_SESSION['STEP_POSITION'] = $aNextStep['POSITION'];
|
||||
|
||||
@@ -41,10 +41,6 @@ if ($RBAC->userCanAccess( 'PM_CASES' ) != 1) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
require_once 'classes/model/AppDelay.php';
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oCase = new Cases();
|
||||
|
||||
//cleaning the case session data
|
||||
|
||||
@@ -38,8 +38,6 @@ if ($RBAC->userCanAccess( 'PM_SUPERVISOR' ) != 1) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
if (isset( $_SESSION['APPLICATION'] )) {
|
||||
|
||||
@@ -40,7 +40,6 @@ try {
|
||||
$oDynaform = new Dynaform();
|
||||
$aDyn = $oDynaform->load( $currentDynUid );
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
|
||||
if (isset( $_SESSION['APPLICATION'] )) {
|
||||
|
||||
@@ -49,9 +49,9 @@ try {
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$oDataset->next();
|
||||
$c = 0;
|
||||
G::LoadClass( 'tasks' );
|
||||
|
||||
$oTasks = new Tasks();
|
||||
G::LoadClass( 'groups' );
|
||||
|
||||
$oGroups = new Groups();
|
||||
require_once 'classes/model/Users.php';
|
||||
$oUser = new Users();
|
||||
|
||||
@@ -63,7 +63,7 @@ try {
|
||||
$oDataset = UsersPeer::doSelectRS( $oCriteria );
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
///////////////////////
|
||||
G::loadClass( 'configuration' );
|
||||
|
||||
$oConf = new Configurations();
|
||||
$oConf->loadConfig( $obj, 'ENVIRONMENT_SETTINGS', '' );
|
||||
|
||||
@@ -88,8 +88,6 @@ try {
|
||||
|
||||
if ($_GET['REASSIGN_USER'] != '') {
|
||||
|
||||
G::LoadClass( 'tasks' );
|
||||
G::LoadClass( 'groups' );
|
||||
$oTasks = new Tasks();
|
||||
$oGroups = new Groups();
|
||||
$oUser = new Users();
|
||||
@@ -129,7 +127,7 @@ try {
|
||||
global $_DBArray;
|
||||
$_DBArray['reassign_byuser'] = $aCasesList;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
|
||||
$oCriteria = new Criteria( 'dbarray' );
|
||||
$oCriteria->setDBArrayTable( 'reassign_byuser' );
|
||||
|
||||
|
||||
@@ -35,8 +35,7 @@ try {
|
||||
die();
|
||||
break;
|
||||
}
|
||||
//print_r($_POST); die;
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oCase = new Cases();
|
||||
|
||||
if ($_POST['USERS'] != '') {
|
||||
@@ -44,7 +43,6 @@ try {
|
||||
|
||||
}
|
||||
|
||||
require_once 'classes/model/Users.php';
|
||||
$oUser = new Users();
|
||||
$aUser = $oUser->load( $_POST['USERS'] );
|
||||
|
||||
@@ -52,7 +50,6 @@ try {
|
||||
|
||||
$Fields['USERS'] = $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' (' . $aUser['USR_USERNAME'] . ')';
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oCases = new Cases();
|
||||
$aCases = $oCases->loadCase( $_POST['APP_UID'], $_POST['DEL_INDEX'] );
|
||||
|
||||
|
||||
@@ -35,9 +35,6 @@ switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
|
||||
/* Menues */
|
||||
|
||||
@@ -35,9 +35,6 @@ switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
|
||||
/* unset any variable, because we are starting a new case */
|
||||
|
||||
@@ -132,9 +132,6 @@ try {
|
||||
$oForm = new Form( $_SESSION["PROCESS"] . "/" . $_GET["UID"], PATH_DYNAFORM );
|
||||
$oForm->validatePost();
|
||||
|
||||
//Includes
|
||||
G::LoadClass( "case" );
|
||||
|
||||
//Load the variables
|
||||
$oCase = new Cases();
|
||||
$oCase->thisIsTheCurrentUser( $_SESSION["APPLICATION"], $_SESSION["INDEX"], $_SESSION["USER_LOGGED"], "REDIRECT", "casesListExtJs" );
|
||||
@@ -144,7 +141,6 @@ try {
|
||||
$dataFields = $Fields["APP_DATA"];
|
||||
$dataFields["CURRENT_DYNAFORM"] = $_GET['UID'];
|
||||
|
||||
G::LoadClass('pmDynaform');
|
||||
$oPmDynaform = new pmDynaform($dataFields);
|
||||
$pmdynaform = $oPmDynaform->validatePost($pmdynaform);
|
||||
|
||||
|
||||
@@ -39,9 +39,6 @@ if ($flagDynaFormNewVersion) {
|
||||
$oForm = new Form( $_SESSION['PROCESS'] . '/' . $_GET['UID'], PATH_DYNAFORM );
|
||||
$oForm->validatePost();
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
//load the variables
|
||||
$oCase = new Cases();
|
||||
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'] );
|
||||
|
||||
@@ -59,8 +59,6 @@ if ((isset( $_FILES['form'] )) && ($_FILES['form']['error']['APP_DOC_FILENAME']
|
||||
die();
|
||||
}
|
||||
|
||||
G::LoadClass("case");
|
||||
|
||||
$inputDocumentUid = $_GET["UID"]; //$_POST["form"]["DOC_UID"]
|
||||
$appDocUid = (isset($_POST["form"]["APP_DOC_UID"]))? $_POST["form"]["APP_DOC_UID"] : "";
|
||||
$docVersion = (isset($_POST["form"]["docVersion"]))? intval($_POST["form"]["docVersion"]) : "";
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
<?php
|
||||
//$oUserId = '2963666854afbb1cea372c4011254883';
|
||||
|
||||
$oUserId = $_POST['USR_UID'];
|
||||
$process = isset( $_POST['PRO_UID'] ) ? $_POST['PRO_UID'] : $_SESSION['PROCESS'];
|
||||
//echo '<select style="width: 300px;" readOnly name="form[PRO_UID]" id="form[PRO_UID]" class="module_app_input___gray" required="1" onChange="loadTasksDropdown(this.value,\''.$oUserId.'\');">';
|
||||
require_once ("classes/model/TaskPeer.php");
|
||||
require_once ("classes/model/ProcessPeer.php");
|
||||
require_once ("classes/model/TaskUserPeer.php");
|
||||
G::LoadClass( 'Content' );
|
||||
|
||||
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
$oCriteria->addSelectColumn( ProcessPeer::PRO_UID );
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<select style="width: 300px;" name="form[TAS_UID]" id="form[TAS_UID]"
|
||||
class="module_app_input___gray" required="1">
|
||||
<?php
|
||||
//$oUserId = '2963666854afbb1cea372c4011254883';
|
||||
//$oProcessId = '9977730834afd2a0deecaf3040551794';
|
||||
|
||||
$oUserId = $_POST['USR_UID'];
|
||||
$oProcessId = $_POST['PRO_UID'];
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oCase = new Cases();
|
||||
$startTasks = $oCase->getStartCases( $oUserId );
|
||||
foreach ($startTasks as $task) {
|
||||
|
||||
@@ -61,7 +61,6 @@ if ($result->status_code == 0) {
|
||||
$user_id = $resultSet->getRow();
|
||||
$result->message = $user_id[0];
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$caseInstance = new Cases();
|
||||
if (! $caseInstance->canStartCase( $result->message, $_REQUEST['PRO_UID'] )) {
|
||||
$result->status_code = - 1000;
|
||||
|
||||
@@ -38,16 +38,7 @@ switch ($RBAC->userCanAccess('PM_FACTORY'))
|
||||
}
|
||||
|
||||
*/
|
||||
/*
|
||||
G::LoadClass('cases_Scheduler');
|
||||
$oCases_Scheduler= new Cases_Scheduler();
|
||||
$oCases_Scheduler->changeStatus ( $_GET['SCH_UID'] );
|
||||
G::header('location: ' . $_SERVER['HTTP_REFERER']);
|
||||
*/
|
||||
|
||||
require_once 'classes/model/CaseScheduler.php';
|
||||
|
||||
// G::LoadClass('CaseScheduler');
|
||||
$oCaseScheduler = new CaseScheduler();
|
||||
$oCaseScheduler->changeStatus( $_GET['SCH_UID'] );
|
||||
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
||||
|
||||
@@ -48,8 +48,6 @@ try {
|
||||
// $G_ID_MENU_SELECTED = 'CASES';
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* Prepare page before to show */
|
||||
|
||||
$oCaseScheduler = new CaseScheduler();
|
||||
|
||||
@@ -76,7 +76,6 @@ for ($j = 0; $j < count( $aRows ); $j ++) {
|
||||
global $_DBArray;
|
||||
$_DBArray['cases_scheduler'] = $aRows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$oCriteria = new Criteria( 'dbarray' );
|
||||
$oCriteria->setDBArrayTable( 'cases_scheduler' );
|
||||
//krumo ($oCriteria);
|
||||
|
||||
@@ -29,7 +29,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_LOGIN" )) != 1) {
|
||||
$RBAC->requirePermissions( 'PM_SETUP' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
$configPage = $c->getConfiguration( 'casesSchedulerLogList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$Config['pageSize'] = isset( $configPage['pageSize'] ) ? $configPage['pageSize'] : 20;
|
||||
|
||||
@@ -65,7 +65,6 @@ try {
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$aFields['PHP_START_DATE'] = date( 'Y-m-d' );
|
||||
$aFields['PRO_UID'] = isset( $_GET['PRO_UID'] ) ? $_GET['PRO_UID'] : $_SESSION['PROCESS'];
|
||||
$aFields['PHP_CURRENT_DATE'] = $aFields['PHP_START_DATE'];
|
||||
|
||||
@@ -125,7 +125,7 @@ if (! $sw_file_exists) {
|
||||
$downloadStatus = false;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||
G::LoadClass( "AppDocumentDrive" );
|
||||
|
||||
$drive = new AppDocumentDrive();
|
||||
if ($drive->getStatusDrive()) {
|
||||
$fieldDrive = $oAppDocument->getAppDocDriveDownload();
|
||||
|
||||
@@ -136,7 +136,7 @@ if (!$sw_file_exists) {
|
||||
$downloadStatus = false;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||
G::LoadClass( "AppDocumentDrive" );
|
||||
|
||||
$drive = new AppDocumentDrive();
|
||||
if ($drive->getStatusDrive()) {
|
||||
$fieldDrive = $oAppDocument->getAppDocDriveDownload();
|
||||
|
||||
@@ -121,10 +121,6 @@ if (! isset( $_DBArray )) {
|
||||
$_DBArray = array ();
|
||||
}
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'derivation' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
if (isset( $_GET['POSITION'] )) {
|
||||
$_SESSION['STEP_POSITION'] = (int) $_GET['POSITION'];
|
||||
@@ -329,12 +325,10 @@ try {
|
||||
* Added By erik 16-05-08
|
||||
* Description: this was added for the additional database connections
|
||||
*/
|
||||
G::LoadClass( 'dbConnections' );
|
||||
$oDbConnections = new dbConnections( $_SESSION['PROCESS'] );
|
||||
$oDbConnections->loadAdditionalConnections();
|
||||
$_SESSION['CURRENT_DYN_UID'] = $_GET['UID'];
|
||||
|
||||
G::LoadClass('pmDynaform');
|
||||
$FieldsPmDynaform = $Fields;
|
||||
$FieldsPmDynaform["PM_RUN_OUTSIDE_MAIN_APP"] = (!isset($_SESSION["PM_RUN_OUTSIDE_MAIN_APP"])) ? "true" : "false";
|
||||
$FieldsPmDynaform["STEP_MODE"] = $oStep->getStepMode();
|
||||
@@ -575,7 +569,6 @@ try {
|
||||
$xmlData .= "</dynaform>\n";
|
||||
$iSize = file_put_contents( $javaOutput . 'addressBook.xml', $xmlData );
|
||||
|
||||
G::LoadClass( 'javaBridgePM' );
|
||||
$JBPM = new JavaBridgePM();
|
||||
$JBPM->checkJavaExtension();
|
||||
|
||||
@@ -610,7 +603,6 @@ try {
|
||||
$xmlData .= "</dynaform>\n";
|
||||
//$iSize = file_put_contents ( $javaOutput . 'addressBook.xml' , $xmlData );
|
||||
|
||||
G::LoadClass( 'javaBridgePM' );
|
||||
$JBPM = new JavaBridgePM();
|
||||
$JBPM->checkJavaExtension();
|
||||
|
||||
@@ -1032,7 +1024,7 @@ try {
|
||||
$aFields['TASK'][$sKey]['NEXT_TASK']['TAS_TYPE_DAY'] = $sAux;
|
||||
|
||||
//Check for
|
||||
G::LoadClass( 'calendar' );
|
||||
|
||||
$calendar = new Calendar();
|
||||
$calendarObj = $calendar->getCalendarList( true, true );
|
||||
$availableCalendar = $calendarObj['array'];
|
||||
@@ -1153,7 +1145,7 @@ try {
|
||||
* Added By erik date: 16-05-08
|
||||
* Description: this was added for the additional database connections
|
||||
*/
|
||||
G::LoadClass( 'dbConnections' );
|
||||
|
||||
$oDbConnections = new dbConnections( $_SESSION['PROCESS'] );
|
||||
$oDbConnections->loadAdditionalConnections();
|
||||
$stepFilename = "$sNamespace/$sStepName";
|
||||
|
||||
@@ -55,9 +55,6 @@ if ((int) $_SESSION['INDEX'] < 1) {
|
||||
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
||||
die();
|
||||
}
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'derivation' );
|
||||
|
||||
/* Menues */
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
@@ -142,14 +139,13 @@ if (! isset( $_GET['ex'] )) {
|
||||
$_GET['ex'] = $_GET['position'];
|
||||
}
|
||||
|
||||
G::LoadClass( 'dbConnections' );
|
||||
$oDbConnections = new dbConnections( $_SESSION['PROCESS'] );
|
||||
$oDbConnections->loadAdditionalConnections();
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
if ($_GET['DYN_UID'] != '') {
|
||||
$_SESSION['CURRENT_DYN_UID'] = $_GET['DYN_UID'];
|
||||
G::LoadClass('pmDynaform');
|
||||
|
||||
$FieldsPmDynaform = $Fields;
|
||||
$FieldsPmDynaform["PRO_UID"] = $_SESSION['PROCESS'];
|
||||
$FieldsPmDynaform["CURRENT_DYNAFORM"] = $_GET['DYN_UID'];
|
||||
|
||||
@@ -45,9 +45,6 @@ if ((int) $_SESSION['INDEX'] < 1) {
|
||||
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
||||
die();
|
||||
}
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'derivation' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
//$_SESSION['STEP_POSITION'] = (int)$_GET['POSITION'];
|
||||
@@ -99,7 +96,6 @@ if (! isset( $_GET['ex'] ) || empty($_GET['ex'])) {
|
||||
}
|
||||
|
||||
if (! isset( $_GET['INP_DOC_UID'] )) {
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/cases_InputdocsListToRevise', $oCase->getInputDocumentsCriteriaToRevise( $_SESSION['APPLICATION'] ), '' );
|
||||
} else {
|
||||
|
||||
@@ -39,8 +39,6 @@ switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
||||
break;
|
||||
}
|
||||
$_SESSION = $filter->xssFilterHard($_SESSION,"url");
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* Menues */
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
|
||||
@@ -23,9 +23,6 @@
|
||||
*/
|
||||
|
||||
try {
|
||||
//save info
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'tasks' );
|
||||
|
||||
$oAppDocument = new AppDocument();
|
||||
$aFields = array (
|
||||
|
||||
@@ -41,9 +41,6 @@ if ((int) $_SESSION['INDEX'] < 1) {
|
||||
G::header( 'location: ' . $_SERVER['HTTP_REFERER'] );
|
||||
die();
|
||||
}
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'derivation' );
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
//$_SESSION['STEP_POSITION'] = (int)$_GET['POSITION'];
|
||||
|
||||
@@ -39,8 +39,6 @@ switch ($RBAC->userCanAccess( 'PM_SUPERVISOR' )) {
|
||||
break;
|
||||
}
|
||||
$_SESSION = $filter->xssFilterHard($_SESSION,"url");
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
/* Menues */
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
|
||||
@@ -36,7 +36,6 @@ try {
|
||||
die();
|
||||
break;
|
||||
}
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
$aCases = array ();
|
||||
$aUsers = array ();
|
||||
@@ -49,7 +48,6 @@ try {
|
||||
}
|
||||
}
|
||||
}
|
||||
G::LoadClass( 'case' );
|
||||
$oCase = new Cases();
|
||||
require_once 'classes/model/Users.php';
|
||||
$oUser = new Users();
|
||||
|
||||
@@ -50,7 +50,6 @@ while ($aRow = $oDataset->getRow()) {
|
||||
$oDataset->next();
|
||||
}
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$oCases = new Cases();
|
||||
|
||||
if (isset( $_POST['form'] )) {
|
||||
|
||||
@@ -22,10 +22,6 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
require_once 'classes/model/LogCasesSchedulerPeer.php';
|
||||
require_once 'classes/model/LogCasesScheduler.php';
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$co = new Configurations();
|
||||
$config = $co->getConfiguration( 'casesSchedulerLogList', 'pageSize', '', $_SESSION['USER_LOGGED'] );
|
||||
$limit_size = isset( $config['pageSize'] ) ? $config['pageSize'] : 20;
|
||||
|
||||
@@ -68,7 +68,7 @@ switch ($request) {
|
||||
echo G::json_encode($response);
|
||||
break;
|
||||
default:
|
||||
G::LoadClass('case');
|
||||
|
||||
$oApp = new Cases();
|
||||
$aFields = $oApp->loadCase($_SESSION['APPLICATION']);
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.la
|
||||
$oLabels = new labelsGmail();
|
||||
$oLabels->addRelabelingToQueue($caseId, $actualIndex, $actualLastIndex, false);
|
||||
|
||||
G::LoadClass( "pmGoogleApi" );
|
||||
$pmGoogle = new PMGoogleApi();
|
||||
if(array_key_exists('gmail', $_SESSION) && $_SESSION['gmail'] == 1 && $pmGoogle->getServiceGmailStatus() ){
|
||||
$_SESSION['gmail'] = 0;
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
G::LoadClass( "configuration" );
|
||||
|
||||
$conf = new Configurations();
|
||||
|
||||
$oHeadPublisher = &headPublisher::getSingleton();
|
||||
|
||||
@@ -64,9 +64,6 @@ if (!isset($_GET['DEL_INDEX'])) {
|
||||
|
||||
$tasUid = (isset($_GET['TAS_UID'])) ? $tasUid = htmlspecialchars($_GET['TAS_UID']) : '';
|
||||
|
||||
require_once ("classes/model/Step.php");
|
||||
G::LoadClass( "configuration" );
|
||||
G::LoadClass( "case" );
|
||||
$oCase = new Cases();
|
||||
$conf = new Configurations();
|
||||
|
||||
@@ -77,7 +74,6 @@ $urlToRedirectAfterPause = 'casesListExtJs';
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||
G::LoadClass( "pmGoogleApi" );
|
||||
$pmGoogle = new PMGoogleApi();
|
||||
if (array_key_exists('gmail', $_SESSION) && $_SESSION['gmail'] == 1 && $pmGoogle->getServiceGmailStatus()) {
|
||||
$_SESSION['gmail'] = 0;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
$DYN_UID = $_GET["dyn_uid"];
|
||||
$_SESSION['PROCESS'] = $_GET["prj_uid"];
|
||||
G::LoadClass('pmDynaform');
|
||||
$a = new pmDynaform(array("CURRENT_DYNAFORM" => $DYN_UID));
|
||||
$a->lang = null;
|
||||
$a->printPmDynaform();
|
||||
|
||||
@@ -14,10 +14,6 @@ $G_FORM = new xmlform();
|
||||
$G_FORM->home = PATH_DYNAFORM;
|
||||
$G_FORM->parseFile($filename, SYS_LANG, true);
|
||||
|
||||
G::LoadClass("case");
|
||||
G::LoadClass("pmFunctions");
|
||||
G::LoadSystem('inputfilter');
|
||||
|
||||
//Load the variables
|
||||
$oCase = new Cases();
|
||||
$sqlQuery = null;
|
||||
|
||||
@@ -91,7 +91,6 @@ try {
|
||||
$filters['limit'] = (int)$filters['limit'];
|
||||
$filters['limit'] = abs($filters['limit']);
|
||||
if ($filters['limit'] == 0) {
|
||||
G::LoadClass("configuration");
|
||||
$conf = new Configurations();
|
||||
$generalConfCasesList = $conf->getConfiguration('ENVIRONMENT_SETTINGS', '');
|
||||
if (isset($generalConfCasesList['casesListRowNumber'])) {
|
||||
|
||||
@@ -675,11 +675,6 @@ function fieldSave()
|
||||
echo G::json_encode($result);
|
||||
}
|
||||
|
||||
require_once ("classes" . PATH_SEP . "model" . PATH_SEP . "Fields.php");
|
||||
|
||||
G::LoadClass("BasePeer");
|
||||
G::LoadClass("configuration");
|
||||
|
||||
$callback = (isset($_POST["callback"]))? $_POST["callback"] : "stcCallback1001";
|
||||
$dir = (isset($_POST["dir"]))? $_POST["dir"] : "DESC";
|
||||
$sort = (isset($_POST["sort"]))? $_POST["sort"] : "";
|
||||
|
||||
@@ -20,9 +20,6 @@ if ( isset($_GET['t'] ) ) {
|
||||
}
|
||||
|
||||
try {
|
||||
G::LoadClass("BasePeer" );
|
||||
require_once ( "classes/model/AdditionalTables.php" );
|
||||
require_once ( "classes/model/Fields.php" );
|
||||
|
||||
$sUIDUserLogged = $_SESSION['USER_LOGGED'];
|
||||
$oCriteria = new Criteria('workflow');
|
||||
|
||||
@@ -15,9 +15,6 @@ $option = '';
|
||||
if (isset( $_GET['t'] ))
|
||||
$option = $_GET['t'];
|
||||
try {
|
||||
G::LoadClass( "BasePeer" );
|
||||
require_once ("classes/model/Process.php");
|
||||
require_once ("classes/model/AppCacheView.php");
|
||||
|
||||
$sUIDUserLogged = $_SESSION['USER_LOGGED'];
|
||||
|
||||
|
||||
@@ -31,10 +31,9 @@ foreach ($items as $item) {
|
||||
|
||||
$casesReassignedCount = 0;
|
||||
$serverResponse = array ();
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
$oCases = new Cases();
|
||||
require_once ('classes/model/Task.php');
|
||||
require_once ('classes/model/AppCacheView.php');
|
||||
|
||||
$oAppCacheView = new AppCacheView();
|
||||
$oAppDel = new AppDelegation();
|
||||
$oCasesReassignList = $oAppCacheView->getToReassignListCriteria(null);
|
||||
|
||||
@@ -32,9 +32,6 @@ try {
|
||||
$oForm = new Form( $_SESSION["PROCESS"] . "/" . $_GET["UID"], PATH_DYNAFORM );
|
||||
$oForm->validatePost();
|
||||
|
||||
//Includes
|
||||
G::LoadClass( "case" );
|
||||
|
||||
//Load the variables
|
||||
$oCase = new Cases();
|
||||
$oCase->thisIsTheCurrentUser( $_SESSION["APPLICATION"], $_SESSION["INDEX"], $_SESSION["USER_LOGGED"], "REDIRECT", "casesListExtJs" );
|
||||
|
||||
@@ -41,7 +41,6 @@ try {
|
||||
throw new Exception( G::LoadTranslation( 'ID_REQUIRED_FIELDS_ERROR' ) . ' (APP_UID, DEL_INDEX, DYN_UID)' );
|
||||
}
|
||||
|
||||
G::LoadClass( 'case' );
|
||||
$case = new Cases();
|
||||
$viewSummaryForm = 0;
|
||||
$applicationFields = $case->loadCase( $_REQUEST['APP_UID'], $_REQUEST['DEL_INDEX'] );
|
||||
@@ -69,14 +68,12 @@ try {
|
||||
$result = DynaformPeer::doSelectRS($criteria);
|
||||
$result->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
if ($result->next()) {
|
||||
G::LoadClass('pmDynaform');
|
||||
$FieldsPmDynaform = $applicationFields;
|
||||
$FieldsPmDynaform["CURRENT_DYNAFORM"] = $_REQUEST['DYN_UID'];
|
||||
$a = new pmDynaform(\ProcessMaker\Util\DateTime::convertUtcToTimeZone($FieldsPmDynaform));
|
||||
$a->printView();
|
||||
}
|
||||
if (file_exists( PATH_DYNAFORM . $applicationFields['PRO_UID'] . PATH_SEP . $_REQUEST['DYN_UID'] . '.xml' )) {
|
||||
G::LoadClass( 'dbConnections' );
|
||||
$_SESSION['PROCESS'] = $applicationFields['PRO_UID'];
|
||||
$dbConnections = new dbConnections( $_SESSION['PROCESS'] );
|
||||
$dbConnections->loadAdditionalConnections();
|
||||
|
||||
@@ -108,7 +108,6 @@ $html .= '<tr>';
|
||||
|
||||
$html .= '<td colspan="3">';
|
||||
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
$aFields = getDynaformsVars( $_REQUEST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 );
|
||||
|
||||
$displayOption = '';
|
||||
|
||||
@@ -34,8 +34,6 @@
|
||||
* @param $_POST variables
|
||||
*/
|
||||
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$_POST = $filter->xssFilterHard($_POST);
|
||||
|
||||
@@ -75,13 +73,11 @@ $cssTabs = "<div id=\"" . strtolower( $_POST['type'] ) . "\">
|
||||
";
|
||||
|
||||
echo $cssTabs;
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
|
||||
global $_DBArray;
|
||||
$_DBArray['dynavars'] = $aRows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$oCriteria = new Criteria( 'dbarray' );
|
||||
$oCriteria->setDBArrayTable( 'dynavars' );
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ $G_ID_SUB_MENU_SELECTED = 'DB_CONNECTIONS';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'processMap' );
|
||||
$oProcess = new processMap();
|
||||
$oCriteria = $oProcess->getConditionProcessList();
|
||||
if (ProcessPeer::doCount( $oCriteria ) > 0) {
|
||||
|
||||
@@ -45,13 +45,9 @@ if (isset( $_POST['PROCESS'] )) {
|
||||
}
|
||||
|
||||
#Global Definitions
|
||||
require_once 'classes/model/DbSource.php';
|
||||
require_once 'classes/model/Content.php';
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
G::LoadClass( 'processMap' );
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
G::LoadClass( 'dbConnections' );
|
||||
|
||||
global $_DBArray;
|
||||
|
||||
switch ($action) {
|
||||
@@ -210,8 +206,6 @@ switch ($action) {
|
||||
case 'testConnection':
|
||||
sleep( 0 );
|
||||
|
||||
G::LoadClass("net");
|
||||
|
||||
define("SUCCESSFULL", "SUCCESSFULL");
|
||||
define("FAILED", "FAILED");
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
if (isset( $_SESSION['PROCESS'] )) {
|
||||
$pro = include (PATH_CORE . "config/databases.php");
|
||||
G::LoadClass( 'dbConnections' );
|
||||
|
||||
$oDbConnections = new dbConnections( $_SESSION['PROCESS'] );
|
||||
foreach ($oDbConnections->connections as $db) {
|
||||
|
||||
@@ -59,8 +59,6 @@ $oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript( 'departments/departmentUsers', false ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'departments/departmentUsers' ); //adding a html file .html.
|
||||
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
|
||||
$arrayConfigPage = $c->getConfiguration('departmentUsersList', 'pageSize', null, $_SESSION['USER_LOGGED']);
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
|
||||
$access = $RBAC->requirePermissions( 'PM_USERS' );
|
||||
|
||||
@@ -26,8 +26,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
G::LoadClass( 'departos' );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
|
||||
@@ -40,15 +38,6 @@ $aUser[] = Array ('USR_UID' => 'char','USR_FIRSTNAME' => 'char','USR_LASTNAME' =
|
||||
$aUserManagers = $oDpto->getUsersManagers();
|
||||
$aUser_Manager = array_merge( $aUser, $aUserManagers );
|
||||
//print_r($aUser_Manager);
|
||||
/*
|
||||
global $_DBArray;
|
||||
$_DBArray['aManager'] = $aUser_Manager;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
G::LoadClass('ArrayPeer');
|
||||
$oCriteria = new Criteria('dbarray');
|
||||
$oCriteria->setDBArrayTable('aManager');
|
||||
|
||||
*/
|
||||
|
||||
$aFields = array ();
|
||||
$aFields['DEP_UID'] = $_GET['SUID'];
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
*/
|
||||
function LookForChildren ($parent, $level, $aDepUsers)
|
||||
{
|
||||
G::LoadClass( 'configuration' );
|
||||
$conf = new Configurations();
|
||||
$oDept = new Department();
|
||||
$allDepartments = $oDept->getDepartments( $parent );
|
||||
@@ -133,7 +132,7 @@ switch ($_POST['action']) {
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
G::LoadClass( 'departments' );
|
||||
|
||||
$oDept = new Department();
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
@@ -182,7 +181,7 @@ switch ($_POST['action']) {
|
||||
echo '{success: true}';
|
||||
break;
|
||||
case 'usersByDepartment':
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$sDepUid = $_REQUEST['DEP_UID'];
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
$oCriteria->addSelectColumn( UsersPeer::USR_UID );
|
||||
|
||||
@@ -25,9 +25,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
//G::LoadClass('groups');
|
||||
G::LoadClass( 'departos' );
|
||||
|
||||
//$group = new Groupwf();
|
||||
$oDpto = new Department();
|
||||
|
||||
|
||||
@@ -46,8 +46,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
G::LoadClass( 'departments' );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
|
||||
|
||||
@@ -28,9 +28,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_USERS" )) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
//G::LoadClass('groups');
|
||||
G::LoadClass( 'departments' );
|
||||
|
||||
$G_MAIN_MENU = 'wf.login';
|
||||
$G_MENU_SELECTED = '';
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
* @Author Erik Amaru Ortiz <erik@colosa.com>
|
||||
* @Date Aug 26th, 2009
|
||||
*/
|
||||
require_once "classes/model/FieldCondition.php";
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
|
||||
@@ -84,7 +84,6 @@ try {
|
||||
global $_DBArray;
|
||||
$_DBArray['DYNAFIELDS'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$oCriteria = new Criteria( 'dbarray' );
|
||||
$oCriteria->setDBArrayTable( 'DYNAFIELDS' );
|
||||
|
||||
|
||||
@@ -26,9 +26,6 @@
|
||||
|
||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||
|
||||
|
||||
G::LoadClass( 'dynaFormField' );
|
||||
|
||||
// if (!(isset($_GET['A']) && $_GET['A']!=='')) return;
|
||||
|
||||
|
||||
|
||||
@@ -27,8 +27,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||
|
||||
|
||||
G::LoadClass( 'xmlDb' );
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'processes';
|
||||
$G_ID_MENU_SELECTED = 'PROCESSES';
|
||||
|
||||
@@ -36,199 +36,4 @@ if (! isset( $_DBArray )) {
|
||||
$_DBArray = array ();
|
||||
}
|
||||
|
||||
G::LoadClass( 'dynaformEditor' );
|
||||
$oDynaformEditorAjax = new dynaformEditorAjax( $_POST );
|
||||
|
||||
//if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Response;
|
||||
//
|
||||
// //G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||
//
|
||||
// G::LoadInclude('ajax');
|
||||
// G::LoadClass('toolBar');
|
||||
// G::LoadClass('dynaFormField');
|
||||
// G::LoadClass('dynaform');
|
||||
//
|
||||
// if (!((isset($_POST['A']) && $_POST['A']!=='')||(isset($_GET['A']) && $_GET['A']!==''))) return;
|
||||
//
|
||||
// $file = G::decrypt( get_ajax_value('A') , URL_KEY );
|
||||
//
|
||||
// $function=get_ajax_value('function');
|
||||
//
|
||||
// switch ( $function ) {
|
||||
// case 'saveDyna':
|
||||
// /*Save register*/
|
||||
// $DYN_UID=get_ajax_value('DYN_UID');
|
||||
// if (isset($_SESSION['CURRENT_DYNAFORM'])
|
||||
// && $_SESSION['CURRENT_DYNAFORM']['DYN_UID']===$DYN_UID) {
|
||||
// $dbc = new DBConnection();
|
||||
// $ses = new DBSession($dbc);
|
||||
// $dynaform = new dynaform( $dbc );
|
||||
// $Fields=$_SESSION['CURRENT_DYNAFORM'];
|
||||
// //$dynaform->Fields=$Fields;
|
||||
// $dynaform->Save( $Fields );
|
||||
// unset($dynaform->Fields);
|
||||
// $dynaform->Fields['DYN_UID']=$DYN_UID;
|
||||
// $dynaform->Load( $_SESSION['CURRENT_DYNAFORM']['DYN_UID'] );
|
||||
// $_SESSION['CURRENT_DYNAFORM']=$dynaform->Fields;
|
||||
// }
|
||||
// break;
|
||||
// /*Save file*/
|
||||
// $copy = implode('',file(PATH_DYNAFORM . $file . '.xml'));
|
||||
// $copyHtml = implode('',file(PATH_DYNAFORM . $file . '.html'));
|
||||
// $file = (strcasecmp(substr($file,-5),'_tmp0')==0)? substr($file,0,strlen($file)-5) : $file;
|
||||
// $fcopy=fopen(PATH_DYNAFORM . $file . '.xml',"w");
|
||||
// fwrite($fcopy, $copy);
|
||||
// fclose($fcopy);
|
||||
// $fcopy=fopen(PATH_DYNAFORM . $file . '.html',"w");
|
||||
// fwrite($fcopy, $copyHtml);
|
||||
// fclose($fcopy);
|
||||
// /*TODO: Delete temporal file*/
|
||||
// break;
|
||||
// case 'closeDyna':
|
||||
// unset($_SESSION['CURRENT_DYNAFORM']);
|
||||
// /*TODO: Delete temporal file*/
|
||||
// break;
|
||||
// case 'isModified':
|
||||
// $DYN_UID=get_ajax_value('DYN_UID');
|
||||
// $modified = false;
|
||||
// if (isset($_SESSION['CURRENT_DYNAFORM'])
|
||||
// && $_SESSION['CURRENT_DYNAFORM']['DYN_UID']===$DYN_UID) {
|
||||
// $dbc = new DBConnection();
|
||||
// $ses = new DBSession($dbc);
|
||||
// $dynaform = new dynaform( $dbc );
|
||||
// $dynaform->Fields['DYN_UID']=$DYN_UID;
|
||||
// $dynaform->Load( $dynaform->Fields['DYN_UID'] );
|
||||
// $modified = $modified || ($_SESSION['CURRENT_DYNAFORM']!==$dynaform->Fields);
|
||||
// }
|
||||
// $copy = implode('',file(PATH_DYNAFORM . $file . '.xml'));
|
||||
// $fileOrigen = (strcasecmp(substr($file,-5),'_tmp0')==0)? substr($file,0,strlen($file)-5) : $file;
|
||||
// $origen = implode('',file(PATH_DYNAFORM . $fileOrigen . '.xml'));
|
||||
// $modified = $modified || ($copy!==$origen);
|
||||
// print($modified?'true':'false');
|
||||
// break;
|
||||
// case 'preview':
|
||||
// $form = new Form( $file , PATH_DYNAFORM, SYS_LANG, true );
|
||||
// print($form->render( $form->template , $script ));
|
||||
// break;
|
||||
// case 'xmlcode':
|
||||
// $openDoc = new Xml_Document();
|
||||
// $openDoc->parseXmlFile(PATH_DYNAFORM . $file . '.xml');
|
||||
// print($openDoc->getXml());
|
||||
// break;
|
||||
// case 'htmlcode':
|
||||
// $form = new Form( $file , PATH_DYNAFORM, SYS_LANG, true );
|
||||
// $G_PUBLISH = new Publisher;
|
||||
// $G_PUBLISH->publisherId='';
|
||||
// /* Navigation Bar */
|
||||
// $form->fields=G::array_merges(
|
||||
// array('__DYNAFORM_OPTIONS' => new XmlForm_Field_XmlMenu(
|
||||
// new Xml_Node(
|
||||
// '__DYNAFORM_OPTIONS',
|
||||
// 'complete',
|
||||
// '',
|
||||
// array('type'=>'xmlmenu','xmlfile'=>'gulliver/dynaforms_Options')
|
||||
// ),SYS_LANG,PATH_XMLFORM,$form) ),
|
||||
// $form->fields);
|
||||
//
|
||||
// /**/
|
||||
// $html=$form->printTemplate( $form->template , $script );
|
||||
// $html=str_replace('{$form_className}','formDefault', $html );
|
||||
// $HtmlEditor = array(
|
||||
// 'URL'=> G::encrypt( $file , URL_KEY ),
|
||||
// 'HTML'=> $html
|
||||
// );
|
||||
// $G_PUBLISH->AddContent('xmlform', 'xmlform', 'dynaforms/dynaforms_HtmlEditor', '', $HtmlEditor , '', '');
|
||||
// G::RenderPage( "publish", 'raw' );
|
||||
// break;
|
||||
// case 'xmlcodeSave':
|
||||
// //BUG::var_dump("Saving xml code ...");
|
||||
// //BUG::var_dump($_POST);
|
||||
// //BUG::var_dump($_GET);
|
||||
// $xmlcode = stripslashes(urldecode(get_ajax_value('xmlcode')));
|
||||
// $fp=fopen(PATH_DYNAFORM . $file . '.xml', 'w');
|
||||
// fwrite($fp, $xmlcode );
|
||||
// fclose($fp);
|
||||
// break;
|
||||
// case 'htmlcodeSave':
|
||||
// $htmlcode = stripslashes(urldecode(get_ajax_value('htmlcode')));
|
||||
// $form = new Form( $file , PATH_DYNAFORM, SYS_LANG, true );
|
||||
// $filename = substr($form->fileName , 0, -3) .
|
||||
// ( $form->type==='xmlform' ? '' : '.' . $form->type ) . 'html';
|
||||
// $fp=fopen($filename, 'w');
|
||||
// fwrite($fp, $htmlcode );
|
||||
// fclose($fp);
|
||||
// break;
|
||||
// case 'resetTemplate':
|
||||
// $form = new Form( $file , PATH_DYNAFORM, SYS_LANG, true );
|
||||
// $filename = substr($form->fileName , 0, -3) .
|
||||
// ( $form->type==='xmlform' ? '' : '.' . $form->type ) . 'html';
|
||||
// $fp=fopen($filename, 'w');
|
||||
// fwrite($fp, $htmlcode );
|
||||
// fclose($fp);
|
||||
// break;
|
||||
// case 'javascripts':
|
||||
// $dbc = new DBConnection();
|
||||
// $ses = new DBSession($dbc);
|
||||
// $dynaform = new dynaform( $dbc );
|
||||
// $dynaform->Fields['DYN_UID']=get_ajax_value('DYN_UID');
|
||||
// $dynaform->Load( $dynaform->Fields['DYN_UID'] );
|
||||
//
|
||||
// $form = new Form( $file , PATH_DYNAFORM, SYS_LANG, true );
|
||||
// $Properties=array(
|
||||
// 'A'=>G::encrypt( $file , URL_KEY ),
|
||||
// 'DYN_UID'=>$dynaform->Fields['DYN_UID'],
|
||||
// 'PRO_UID'=>$dynaform->Fields['PRO_UID'],
|
||||
// 'DYN_TITLE'=>$dynaform->Fields['DYN_TITLE'],
|
||||
// 'DYN_TYPE'=>$dynaform->Fields['DYN_TYPE'],
|
||||
// 'DYN_DESCRIPTION'=>$dynaform->Fields['DYN_DESCRIPTION'],
|
||||
// 'WIDTH'=>$form->width,
|
||||
// 'ENABLETEMPLATE'=>$form->enableTemplate,
|
||||
// 'MODE'=>$form->mode
|
||||
// );
|
||||
//
|
||||
// define('DB_XMLDB_HOST', PATH_DYNAFORM . $file . '.xml' );
|
||||
// define('DB_XMLDB_USER','');
|
||||
// define('DB_XMLDB_PASS','');
|
||||
// define('DB_XMLDB_NAME','');
|
||||
// define('DB_XMLDB_TYPE','myxml');
|
||||
//
|
||||
// $G_PUBLISH = new Publisher;
|
||||
// $G_PUBLISH->publisherId='';
|
||||
// $G_PUBLISH->AddContent('xmlform', 'xmlform', 'dynaforms/dynaforms_JSEditor', '', $Properties , '', '');
|
||||
// G::RenderPage( "publish" , "raw" );
|
||||
// break;
|
||||
// case 'properties':
|
||||
// $dbc = new DBConnection();
|
||||
// $ses = new DBSession($dbc);
|
||||
// $DYN_UID=get_ajax_value('DYN_UID');
|
||||
// if (isset($_SESSION['CURRENT_DYNAFORM'])
|
||||
// && $_SESSION['CURRENT_DYNAFORM']['DYN_UID']===$DYN_UID) {
|
||||
// $dynaform = new dynaform( $dbc );
|
||||
// $dynaform->Fields=$_SESSION['CURRENT_DYNAFORM'];
|
||||
// }else{
|
||||
// $dynaform = new dynaform( $dbc );
|
||||
// $dynaform->Fields['DYN_UID']=$DYN_UID;
|
||||
// $dynaform->Load( $dynaform->Fields['DYN_UID'] );
|
||||
// $_SESSION['CURRENT_DYNAFORM']=$dynaform->Fields;
|
||||
// }
|
||||
//
|
||||
// $form = new Form( $file , PATH_DYNAFORM, SYS_LANG, true );
|
||||
// $Properties=array(
|
||||
// 'A'=>G::encrypt( $file , URL_KEY ),
|
||||
// 'DYN_UID'=>$dynaform->Fields['DYN_UID'],
|
||||
// 'PRO_UID'=>$dynaform->Fields['PRO_UID'],
|
||||
// 'DYN_TITLE'=>$dynaform->Fields['DYN_TITLE'],
|
||||
// 'DYN_TYPE'=>$dynaform->Fields['DYN_TYPE'],
|
||||
// 'DYN_DESCRIPTION'=>$dynaform->Fields['DYN_DESCRIPTION'],
|
||||
// 'WIDTH'=>$form->width,
|
||||
// 'ENABLETEMPLATE'=>$form->enableTemplate,
|
||||
// 'MODE'=>$form->mode
|
||||
// );
|
||||
// $G_PUBLISH = new Publisher;
|
||||
// $G_PUBLISH->publisherId='';
|
||||
// $G_PUBLISH->AddContent('xmlform', 'xmlform', 'dynaforms/dynaforms_Properties', 'visivility:hidden', $Properties , SYS_URI.'dynaforms/dynaforms_SaveProperties');
|
||||
// G::RenderPage( "publish" , "raw" );
|
||||
// break;
|
||||
// }
|
||||
//
|
||||
|
||||
$oDynaformEditorAjax = new dynaformEditorAjax( $_POST );
|
||||
@@ -20,8 +20,6 @@ $aFields['ACTION'] = $_POST['ACTION'];
|
||||
$aFields['DYN_DESCRIPTION'] = $_POST['DYN_DESCRIPTION'];
|
||||
$aFields['VALIDATION_MESSAGE'] = G::LoadTranslation( 'ID_FILL_PRIMARY_KEYS' );
|
||||
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'dynaforms/dynaforms_AssignVariables', '', $aFields, SYS_URI . 'dynaforms/dynaforms_Save' );
|
||||
|
||||
|
||||
@@ -65,8 +65,6 @@ $aFields['ACTION'] = isset( $_GET['ACTION'] ) ? $_GET['ACTION'] : '';
|
||||
//$aFields['READ_ONLY'] = ($_GET['ACTION']=='normal')?0:1;
|
||||
$aFields["LANG"] = SYS_LANG;
|
||||
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'dynaforms/dynaforms_Edit', '', $aFields, SYS_URI . 'dynaforms/dynaforms_Save' );
|
||||
|
||||
|
||||
@@ -34,11 +34,7 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||
* Created on 21/12/2007
|
||||
*
|
||||
*/
|
||||
G::LoadClass( 'dynaformEditor' );
|
||||
G::LoadClass( 'toolBar' );
|
||||
G::LoadClass( 'dynaFormField' );
|
||||
|
||||
//G::LoadClass('configuration');
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'processes';
|
||||
$G_ID_MENU_SELECTED = 'PROCESSES';
|
||||
|
||||
@@ -27,13 +27,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||
|
||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||
|
||||
|
||||
G::LoadClass( 'toolBar' );
|
||||
G::LoadClass( 'dynaFormField' );
|
||||
G::LoadClass( 'process' );
|
||||
G::LoadClass( 'dynaform' );
|
||||
//G::LoadClass('configuration');
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ function pagedTable_BeforeQuery (&$ntable)
|
||||
{
|
||||
$file = G::decrypt( $ntable->xmlForm->values['URL'], URL_KEY );
|
||||
/* Start Block: Defines the virtual XMLDB*/
|
||||
G::LoadClass( 'xmlDb' );
|
||||
|
||||
define( 'DB_XMLDB_HOST', PATH_DYNAFORM . $file . '.xml' );
|
||||
define( 'DB_XMLDB_USER', '' );
|
||||
define( 'DB_XMLDB_PASS', '' );
|
||||
@@ -78,7 +78,7 @@ if (isset( $page ) && $page !== '') {
|
||||
|
||||
$file = G::decrypt( $ntable->xmlForm->values['URL'], URL_KEY );
|
||||
/* Start Block: Defines the virtual XMLDB*/
|
||||
G::LoadClass( 'xmlDb' );
|
||||
|
||||
define( 'DB_XMLDB_HOST', PATH_DYNAFORM . $file . '.xml' );
|
||||
define( 'DB_XMLDB_USER', '' );
|
||||
define( 'DB_XMLDB_PASS', '' );
|
||||
@@ -132,7 +132,7 @@ switch ($function) {
|
||||
return;
|
||||
}
|
||||
$ntable->renderTable( 'content' );
|
||||
G::LoadClass( 'configuration' );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$conf = new Configuration( $dbc, $ntable );
|
||||
$conf->setConfig( $ntable->__Configuration, $ntable, $conf->aConfig );
|
||||
|
||||
@@ -28,10 +28,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||
|
||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||
|
||||
|
||||
G::LoadClass( 'toolBar' );
|
||||
G::LoadClass( 'dynaFormField' );
|
||||
|
||||
if (! (isset( $_POST['A'] ) && $_POST['A'] !== '')) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -26,12 +26,6 @@ if (($RBAC_Response = $RBAC->userCanAccess( "PM_FACTORY" )) != 1) {
|
||||
//G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
|
||||
}
|
||||
|
||||
|
||||
|
||||
G::LoadInclude( 'ajax' );
|
||||
G::LoadClass( 'dynaform' );
|
||||
G::LoadClass( 'xmlDb' );
|
||||
|
||||
$dbc = new DBConnection();
|
||||
$ses = new DBSession( $dbc );
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user