Skip to content

Commit

Permalink
Removed <xxxxx_id> from PMX files
Browse files Browse the repository at this point in the history
Improved session management
Set version to 3.3.0-community-RE-1.10
  • Loading branch information
tomolimo committed May 22, 2023
1 parent de40ced commit 59b74f5
Show file tree
Hide file tree
Showing 10 changed files with 1,770 additions and 17 deletions.
1 change: 0 additions & 1 deletion bootstrap/classaliasmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@
'XmlForm_Field_TextPm' => XmlFormFieldTextPm::class,
'XmlForm_Field_Title' => XmlFormFieldTitle::class,
'XmlForm_Field_ToolBar' => XmlFormFieldToolBar::class,
'XmlForm_Field_ToolBar' => XmlFormFieldToolBar::class,
'XmlForm_Field_toolButton' => XmlFormFieldToolButton::class,
'XmlForm_Field_ToolButton' => XmlFormFieldToolButton::class,
'XmlForm_Field_WYSIWYGEditor' => XmlFormFieldWYSIWYGEditor::class,
Expand Down
12 changes: 9 additions & 3 deletions workflow/engine/classes/Processes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2778,7 +2778,9 @@ public function getDynaformRows($sProUid)
$oDataset->next();
while ($aRow = $oDataset->getRow()) {
$oDynaform = new Dynaform();
$aDynaform[] = $oDynaform->Load($aRow['DYN_UID']);
$temp = $oDynaform->Load($aRow['DYN_UID']);
unset($temp['DYN_ID']);
$aDynaform[] = $temp;
$oDataset->next();
}
return $aDynaform;
Expand Down Expand Up @@ -2809,7 +2811,9 @@ public function getObjectPermissionRows($sProUid, &$oData)
$oPermissions[] = $o->Load($aRow['OP_UID']);

$oGroupwf = new Groupwf();
$oData->groupwfs[] = $oGroupwf->Load($aRow['USR_UID']);
$temp = $oGroupwf->Load($aRow['USR_UID']);
unset($temp['GRP_ID']);
$oData->groupwfs[] = $temp;
$oDataset->next();
}

Expand Down Expand Up @@ -4333,7 +4337,9 @@ public function groupwfsMerge(array $arrayGroupwfsData, array $arrayData, $group
$record = $value;

if (isset($record[$groupUidFieldNameInArrayData]) && !in_array($record[$groupUidFieldNameInArrayData], $arrayUid)) {
$arrayGroupwfsData[] = $groupwf->Load($record[$groupUidFieldNameInArrayData]);
$temp = $groupwf->Load($record[$groupUidFieldNameInArrayData]);
unset($temp['GRP_ID']);
$arrayGroupwfsData[] = $temp;
}
}

Expand Down
4 changes: 2 additions & 2 deletions workflow/engine/methods/login/version-pmos.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
define("PM_VERSION", "3.3.0-community-RE-1.8");
define("PM_BUILD_VERSION", "3.3.0-community-RE-1.8");
define("PM_VERSION", "3.3.0-community-RE-1.10");
define("PM_BUILD_VERSION", "3.3.0-community-RE-1.10");
158 changes: 158 additions & 0 deletions workflow/engine/methods/setup/webServices.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<?php
/**
* control.php
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email [email protected].
*/

if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_FACTORY' ) != 1) {
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
//G::header('location: ../login/login');
die();
}

$G_MAIN_MENU = 'processmaker';
//$G_SUB_MENU = 'setup';
$G_ID_MENU_SELECTED = 'SETUP';
//$G_ID_SUB_MENU_SELECTED = 'WEBSERVICES';


if (! extension_loaded( 'soap' )) {
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/wsMessage' );
G::RenderPage( "publish" );
} else {
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent( 'view', 'setup/webServicesTree' );
$G_PUBLISH->AddContent( 'smarty', 'groups/groups_usersList', '', '', array () );

G::RenderPage( "publish-treeview", 'blank' );
}

$link_Edit = G::encryptlink( 'webServicesSetup' );
$link_List = G::encryptlink( 'webServicesList' );

?>
<script>
document.body.style.backgroundColor="#fff";
var oAux = document.getElementById("publisherContent[0]");
oAux.id = "publisherContent[666]";
var currentGroup=false;

function webServicesSetup(){
popupWindow('' , '<?php echo $link_Edit ?>' , 500 , 225 );
}

function showFormWS( uid, element ){

currentGroup = uid;
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../setup/webServicesAjax',
async : false,
method: 'POST',
args : 'action=showForm&wsID=' + uid
});
oRPC.make();
document.getElementById('spanUsersList').innerHTML = oRPC.xmlhttp.responseText;
if ((uid == 'NewCase') || (uid == 'NewCaseImpersonate')) {
var scs=oRPC.xmlhttp.responseText.extractScript();scs.evalScript();
}
}
function execWebService( uid) {
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../setup/webServicesAjax',
async : true,
method: 'POST',
args : 'action=execWebService&wsID=' + uid
});

oRPC.callback = function(rpc) {

var scs = rpc.xmlhttp.responseText.extractScript();
document.getElementById('spanUsersList').innerHTML = rpc.xmlhttp.responseText;
scs.evalScript();

}.extend(this);

oRPC.make();

}

submitThisForm = function(oForm) {
var oAux;
var bContinue = true;
if(bContinue) {
result = ajax_post(oForm.action, oForm, 'POST', function(response){
var scs = response.extractScript();
document.getElementById('spanUsersList').innerHTML = response;
scs.evalScript();
});
refreshTree();
}
};




function callbackWebService( ) {
/*
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../setup/webServicesAjax',
async : false,
method: 'POST',
args : 'action=execWebService&wsID=' + uid
});
oRPC.make();
document.getElementById('spanUsersList').innerHTML = oRPC.xmlhttp.responseText;
*/
document.getElementById('spanUsersList').innerHTML = 'hola';
}
function saveGroup( form ) {
ajax_post( form.action, form, 'POST' );
currentPopupWindow.remove();
refreshTree();
}

function refreshTree(){
tree.refresh( document.getElementById("publisherContent[666]") , '<?php echo $link_List ?>');
}

function showDetails(){
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../setup/webServicesAjax',
async : false,
method: 'POST',
args : 'action=showDetails'
});
oRPC.make();
document.getElementById('spanUsersList').innerHTML = oRPC.xmlhttp.responseText;
}
showDetails();

function showUploadFilesForm(){
oIFrame = window.document.createElement('iframe');
oIFrame.style.border = '0';
oIFrame.style.width = '700px';
oIFrame.style.height = '400px';
oIFrame.src = 'webServicesAjax?action=showUploadFilesForm&';
document.getElementById('spanUsersList').innerHTML = '';
document.getElementById('spanUsersList').appendChild(oIFrame);
}
</script>
Loading

0 comments on commit 59b74f5

Please sign in to comment.