This commit is contained in:
Paula Quispe
2017-08-11 13:29:22 -04:00
parent 7d85e7297c
commit bf3671a594
20 changed files with 52 additions and 214 deletions

View File

@@ -80,7 +80,8 @@
"gulliver/includes/smarty_plugins/function.pmos.php", "gulliver/includes/smarty_plugins/function.pmos.php",
"thirdparty/pear/PEAR.php", "thirdparty/pear/PEAR.php",
"thirdparty/HTMLPurifier/HTMLPurifier.auto.php", "thirdparty/HTMLPurifier/HTMLPurifier.auto.php",
"workflow/engine/classes/class.pmFunctions.php" "workflow/engine/classes/class.pmFunctions.php",
"workflow/engine/src/ProcessMaker/Util/helpers.php"
] ]
}, },
"autoload-dev": { "autoload-dev": {

View File

@@ -355,7 +355,7 @@ class Publisher
/* End Block */ /* End Block */
/* Start Block: PagedTable Right Click */ /* Start Block: PagedTable Right Click */
$pm = new popupMenu( 'gulliver/pagedTable_PopupMenu' ); $pm = new PopupMenu( 'gulliver/pagedTable_PopupMenu' );
$pm->name = $oTable->id; $pm->name = $oTable->id;
$fields = array_keys( $oTable->fields ); $fields = array_keys( $oTable->fields );
foreach ($fields as $f) { foreach ($fields as $f) {
@@ -430,7 +430,7 @@ class Publisher
$_SESSION[$G_FORM->id] = $G_FORM->values; $_SESSION[$G_FORM->id] = $G_FORM->values;
} }
$oTable = new propelTable(); $oTable = new PropelTable();
$oTable->template = $Part['Template']; $oTable->template = $Part['Template'];
$oTable->criteria = $Part['Content']; $oTable->criteria = $Part['Content'];
if (isset( $Part['ajaxServer'] ) && ($Part['ajaxServer'] !== '')) { if (isset( $Part['ajaxServer'] ) && ($Part['ajaxServer'] !== '')) {
@@ -461,7 +461,7 @@ class Publisher
/* End Block */ /* End Block */
/* Start Block: PagedTable Right Click */ /* Start Block: PagedTable Right Click */
$pm = new popupMenu( 'gulliver/pagedTable_PopupMenu' ); $pm = new PopupMenu( 'gulliver/pagedTable_PopupMenu' );
$sc = $pm->renderPopup( $oTable->id, $oTable->fields ); $sc = $pm->renderPopup( $oTable->id, $oTable->fields );
/* End Block */ /* End Block */
//krumo ( $Part ); //krumo ( $Part );

View File

@@ -10,11 +10,6 @@
/** /**
* Implementation to display application data in the PMOS2 grids using Solr * Implementation to display application data in the PMOS2 grids using Solr
* search service * search service
*
* @author Herbert Saal Gutierrez
* @category Colosa
* @copyright Copyright (c) 2005-2011 Colosa Inc. (http://www.colosa.com)
*
*/ */
class AppSolr class AppSolr
{ {

View File

@@ -1,16 +1,10 @@
<?php <?php
/** /**
* Invalid search text for Solr exception * Invalid search text for Solr exception
*
* @author Herbert Saal Gutierrez
*
*/ */
/** /**
* Application APP_DATA could not be unserialized exception * Application APP_DATA could not be unserialized exception
*
* @category Colosa
* @copyright Copyright (c) 2005-2012 Colosa Inc. (http://www.colosa.com)
*/ */
class ApplicationAppDataUnserializeException extends Exception class ApplicationAppDataUnserializeException extends Exception
{ {

View File

@@ -8,11 +8,6 @@
/** /**
* Dynaform file corrupt * Dynaform file corrupt
*
* @author Herbert Saal Gutierrez
*
* @category Colosa
* @copyright Copyright (c) 2005-2012 Colosa Inc. (http://www.colosa.com)
*/ */
class ApplicationWithCorruptDynaformException extends Exception class ApplicationWithCorruptDynaformException extends Exception
{ {

View File

@@ -3,12 +3,7 @@
* class.pmSso.php * class.pmSso.php
* *
*/ */
class PmSsoClass extends PMPlugin {
/**
* class.pmSso.php
*
*/ class pmSsoClass extends PMPlugin {
function __construct() { function __construct() {
} }

View File

@@ -1,41 +1,16 @@
<?php <?php
/** /**
* class.popupMenu.php * PopupMenu - PopupMenu
*
* @package workflow.engine.ProcessMaker
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2011 Colosa Inc.
*
* 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 info@colosa.com.
*
*/
/** /**
* popupMenu - popupMenu * PopupMenu - PopupMenu class
/**
* popupMenu - popupMenu class
* *
* @package workflow.engine.ProcessMaker * @package workflow.engine.ProcessMaker
* @copyright COLOSA * @copyright COLOSA
*/class popupMenu extends form */
class PopupMenu extends form
{ {
var $type = 'popupMenu'; var $type = 'PopupMenu';
var $theme = 'processmaker'; var $theme = 'processmaker';
/** /**

View File

@@ -1,54 +1,6 @@
<?php <?php
/**
* class.processes.php
*
* @package workflow.engine.ProcessMaker
*
* 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 info@colosa.com.
*/
class Processes
/**
* class.processes.php
*
* @package workflow.engine.ProcessMaker
*
* 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 info@colosa.com.
*/class Processes
{ {
/** /**

View File

@@ -1,50 +1,22 @@
<?php <?php
/**
* class.propelTable.php
*
* @package workflow.gulliver.system
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2011 Colosa Inc.
*
* 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 info@colosa.com.
*
*/
use ProcessMaker\Plugins\PluginRegistry; use ProcessMaker\Plugins\PluginRegistry;
/** /**
* Class pagedTable * Class pagedTable
*
* @author David S. Callizaya S. <davidsantos@colosa.com> *
* @access public
* @package workflow.gulliver.system * @package workflow.gulliver.system
* dependencies TemplatePower Form XmlForm * dependencies TemplatePower Form XmlForm
*/ */
/** /**
* Class pagedTable * Class pagedTable
* *
* @author David S. Callizaya S. <davidsantos@colosa.com> *
* @access public * @access public
* @package workflow.gulliver.system * @package workflow.gulliver.system
* dependencies TemplatePower Form XmlForm * dependencies TemplatePower Form XmlForm
*/class propelTable */
class PropelTable
{ {
public $xmlFormFile; public $xmlFormFile;
public $currentPage; public $currentPage;

View File

@@ -1,45 +1,15 @@
<?php <?php
/**
* class.replacementLogo.php
*
* @package workflow.engine.classes
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2011 Colosa Inc.
*
* 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 info@colosa.com.
*/
/** /**
* *
* @package workflow.engine.classes * @package workflow.engine.classes
*/ */
class ReplacementLogo
/**
*
* @package workflow.engine.classes
*/class replacementLogo
{ {
//var $dir=''; //var $dir='';
/** /**
* This function is the constructor of the replacementLogo class * This function is the constructor of the ReplacementLogo class
* param * param
* *
* @return void * @return void

View File

@@ -1,7 +1,7 @@
<?php <?php
/** /**
* class.popupMenu.php * class.PopupMenu.php
* *
* @package workflow.engine.ProcessMaker * @package workflow.engine.ProcessMaker
* *
@@ -27,7 +27,7 @@
*/ */
/** /**
* popupMenu - popupMenu * PopupMenu - PopupMenu
/** /**
* XmlForm_Field_popupOption - XmlForm_Field_popupOption class * XmlForm_Field_popupOption - XmlForm_Field_popupOption class
* *

View File

@@ -790,7 +790,7 @@ class adminProxy extends HttpProxyController
{ {
$uplogo = PATH_TPL . 'setup' . PATH_SEP . 'uplogo.html'; $uplogo = PATH_TPL . 'setup' . PATH_SEP . 'uplogo.html';
$width = "100%"; $width = "100%";
$upload = new replacementLogo(); $upload = new ReplacementLogo();
$aPhotoSelect = $upload->getNameLogo($_SESSION['USER_LOGGED']); $aPhotoSelect = $upload->getNameLogo($_SESSION['USER_LOGGED']);
$sPhotoSelect = trim($aPhotoSelect['DEFAULT_LOGO_NAME']); $sPhotoSelect = trim($aPhotoSelect['DEFAULT_LOGO_NAME']);
$check = ''; $check = '';
@@ -1093,7 +1093,7 @@ class adminProxy extends HttpProxyController
*/ */
public function getNameCurrentLogo() public function getNameCurrentLogo()
{ {
$upload = new replacementLogo(); $upload = new ReplacementLogo();
$aPhotoSelect = $upload->getNameLogo($_SESSION['USER_LOGGED']); $aPhotoSelect = $upload->getNameLogo($_SESSION['USER_LOGGED']);
$sPhotoSelect = trim($aPhotoSelect['DEFAULT_LOGO_NAME']); $sPhotoSelect = trim($aPhotoSelect['DEFAULT_LOGO_NAME']);
return $sPhotoSelect; return $sPhotoSelect;

View File

@@ -465,7 +465,7 @@ class Main extends Controller
if (defined( "SYS_SYS" )) { if (defined( "SYS_SYS" )) {
if (($aFotoSelect = $this->memcache->get( 'aFotoSelect' )) === false) { if (($aFotoSelect = $this->memcache->get( 'aFotoSelect' )) === false) {
$oLogoR = new replacementLogo(); $oLogoR = new ReplacementLogo();
$aFotoSelect = $oLogoR->getNameLogo( (isset( $_SESSION['USER_LOGGED'] )) ? $_SESSION['USER_LOGGED'] : '' ); $aFotoSelect = $oLogoR->getNameLogo( (isset( $_SESSION['USER_LOGGED'] )) ? $_SESSION['USER_LOGGED'] : '' );
$this->memcache->set( 'aFotoSelect', $aFotoSelect, 1 * 3600 ); $this->memcache->set( 'aFotoSelect', $aFotoSelect, 1 * 3600 );
} }

View File

@@ -131,7 +131,7 @@ if (isset ($_SESSION['USER_LOGGED'])) {
$licensedFeatures = & PMLicensedFeatures::getSingleton(); $licensedFeatures = & PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('x4TTzlISnp2K2tnSTJoMC8rTDRMTjlhMCtZeXV0QnNCLzU=')) { if ($licensedFeatures->verifyfeature('x4TTzlISnp2K2tnSTJoMC8rTDRMTjlhMCtZeXV0QnNCLzU=')) {
//Check in SSO class //Check in SSO class
$oSso = new pmSsoClass(); $oSso = new PmSsoClass();
$res = $oSso->ssocVerifyUser(); $res = $oSso->ssocVerifyUser();
if($res){ if($res){
// Start new session // Start new session

View File

@@ -1,4 +1,5 @@
<?php <?php
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
if (isset($_GET['BROWSER_TIME_ZONE_OFFSET'])) { if (isset($_GET['BROWSER_TIME_ZONE_OFFSET'])) {
if (PMLicensedFeatures::getSingleton()->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) { if (PMLicensedFeatures::getSingleton()->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
@@ -54,8 +55,6 @@ if (isset($_GET['BROWSER_TIME_ZONE_OFFSET'])) {
$dataResponses['ABE_RES_MESSAGE'] = ''; $dataResponses['ABE_RES_MESSAGE'] = '';
try { try {
require_once 'classes/model/AbeResponses.php';
$abeAbeResponsesInstance = new AbeResponses(); $abeAbeResponsesInstance = new AbeResponses();
$dataResponses['ABE_RES_UID'] = $abeAbeResponsesInstance->createOrUpdate($dataResponses); $dataResponses['ABE_RES_UID'] = $abeAbeResponsesInstance->createOrUpdate($dataResponses);
} catch (Exception $e) { } catch (Exception $e) {

View File

@@ -1,6 +1,6 @@
<?php <?php
/** /**
* replacementLogo.php * ReplacementLogo.php
* *
* ProcessMaker Open Source Edition * ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2008 Colosa Inc.23 * Copyright (C) 2004 - 2008 Colosa Inc.23
@@ -38,17 +38,6 @@ try { //ini_set('display_errors','1');
function changeNamelogo ($snameLogo) function changeNamelogo ($snameLogo)
{ {
// The ereg_replace function has been DEPRECATED as of PHP 5.3.0.
// $snameLogo = ereg_replace("[áàâãª]","a",$snameLogo);
// $snameLogo = ereg_replace("[Ã<>ÀÃÃ]","A",$snameLogo);
// $snameLogo = ereg_replace("[Ã<>ÌÎ]","I",$snameLogo);
// $snameLogo = ereg_replace("[íìî]","i",$snameLogo);
// $snameLogo = ereg_replace("[éèê]","e",$snameLogo);
// $snameLogo = ereg_replace("[ÉÈÊ]","E",$snameLogo);
// $snameLogo = ereg_replace("[óòôõº]","o",$snameLogo);
// $snameLogo = ereg_replace("[ÓÒÔÕ]","O",$snameLogo);
// $snameLogo = ereg_replace("[úùû]","u",$snameLogo);
// $snameLogo = ereg_replace("[ÚÙÛ]","U",$snameLogo);
$snameLogo = preg_replace( "/[áàâãª]/", "a", $snameLogo ); $snameLogo = preg_replace( "/[áàâãª]/", "a", $snameLogo );
$snameLogo = preg_replace( "/[Ã<>ÀÃÃ]/", "A", $snameLogo ); $snameLogo = preg_replace( "/[Ã<>ÀÃÃ]/", "A", $snameLogo );
$snameLogo = preg_replace( "/[Ã<>ÌÎ]/", "I", $snameLogo ); $snameLogo = preg_replace( "/[Ã<>ÌÎ]/", "I", $snameLogo );

View File

@@ -782,7 +782,7 @@ class SkinEngine
$smarty->assign('tpl_menu', PATH_TEMPLATE . 'menu.html'); $smarty->assign('tpl_menu', PATH_TEMPLATE . 'menu.html');
$smarty->assign('tpl_submenu', PATH_TEMPLATE . 'submenu.html'); $smarty->assign('tpl_submenu', PATH_TEMPLATE . 'submenu.html');
$oLogoR = new replacementLogo(); $oLogoR = new ReplacementLogo();
if(defined("SYS_SYS")){ if(defined("SYS_SYS")){
$aFotoSelect = $oLogoR->getNameLogo((isset($_SESSION['USER_LOGGED']))?$_SESSION['USER_LOGGED']:''); $aFotoSelect = $oLogoR->getNameLogo((isset($_SESSION['USER_LOGGED']))?$_SESSION['USER_LOGGED']:'');

View File

@@ -670,7 +670,7 @@ class ActionsByEmail
//SSO //SSO
if (\PMLicensedFeatures::getSingleton()->verifyfeature('x4TTzlISnp2K2tnSTJoMC8rTDRMTjlhMCtZeXV0QnNCLzU=')) { if (\PMLicensedFeatures::getSingleton()->verifyfeature('x4TTzlISnp2K2tnSTJoMC8rTDRMTjlhMCtZeXV0QnNCLzU=')) {
$sso = new \pmSsoClass(); $sso = new \PmSsoClass();
if ($sso->ssocVerifyUser()) { if ($sso->ssocVerifyUser()) {
global $RBAC; global $RBAC;

View File

@@ -1,50 +1,44 @@
<?php <?php
/**
* We will send a case note in the actions by email
* @param object $httpData
* @return void
*/
function postNote($httpData) function postNote($httpData)
{ {
//extract(getExtJSParams()); $appUid = (isset($httpData->appUid)) ? $httpData->appUid : '';
$appUid = (isset($httpData->appUid))? $httpData->appUid : ''; $usrUid = (isset($httpData->usrUid)) ? $httpData->usrUid : '';
$usrUid = (isset($httpData->usrUid))? $httpData->usrUid : '' ;
require_once ( "classes/model/AppNotes.php" );
$appNotes = new AppNotes(); $appNotes = new AppNotes();
$noteContent = addslashes($httpData->noteText); $noteContent = addslashes($httpData->noteText);
$result = $appNotes->postNewNote($appUid, $usrUid, $noteContent, false); $result = $appNotes->postNewNote($appUid, $usrUid, $noteContent, false);
//return true;
//die();
//send the response to client //send the response to client
@ini_set('implicit_flush', 1); @ini_set('implicit_flush', 1);
ob_start(); ob_start();
//echo G::json_encode($result);
@ob_flush(); @ob_flush();
@flush(); @flush();
@ob_end_flush(); @ob_end_flush();
ob_implicit_flush(1); ob_implicit_flush(1);
//return true;
//send notification in background //send notification in background
$noteRecipientsList = array(); $noteRecipientsList = array();
$oCase = new Cases(); $oCase = new Cases();
$p = $oCase->getUsersParticipatedInCase($appUid); $p = $oCase->getUsersParticipatedInCase($appUid);
foreach ($p['array'] as $key => $userParticipated) { foreach ($p['array'] as $key => $userParticipated) {
$noteRecipientsList[] = $key; $noteRecipientsList[] = $key;
} }
$noteRecipients = implode(",", $noteRecipientsList); $noteRecipients = implode(",", $noteRecipientsList);
$appNotes->sendNoteNotification($appUid, $usrUid, $noteContent, $noteRecipients); $appNotes->sendNoteNotification($appUid, $usrUid, $noteContent, $noteRecipients);
} }
/**
* We will get to the abeRequest data from actions by email
* @param string $AbeRequestsUid
* @return array $abeRequests
*/
function loadAbeRequest($AbeRequestsUid) function loadAbeRequest($AbeRequestsUid)
{ {
require_once 'classes/model/AbeRequests.php';
$criteria = new Criteria(); $criteria = new Criteria();
$criteria->add(AbeRequestsPeer::ABE_REQ_UID, $AbeRequestsUid); $criteria->add(AbeRequestsPeer::ABE_REQ_UID, $AbeRequestsUid);
$resultRequests = AbeRequestsPeer::doSelectRS($criteria); $resultRequests = AbeRequestsPeer::doSelectRS($criteria);
@@ -55,10 +49,13 @@ function loadAbeRequest($AbeRequestsUid)
return $abeRequests; return $abeRequests;
} }
/**
* We will get the AbeConfiguration by actions by email
* @param string $AbeConfigurationUid
* @return array $abeConfiguration
*/
function loadAbeConfiguration($AbeConfigurationUid) function loadAbeConfiguration($AbeConfigurationUid)
{ {
require_once 'classes/model/AbeConfiguration.php';
$criteria = new Criteria(); $criteria = new Criteria();
$criteria->add(AbeConfigurationPeer::ABE_UID, $AbeConfigurationUid); $criteria->add(AbeConfigurationPeer::ABE_UID, $AbeConfigurationUid);
$result = AbeConfigurationPeer::doSelectRS($criteria); $result = AbeConfigurationPeer::doSelectRS($criteria);
@@ -69,10 +66,14 @@ function loadAbeConfiguration($AbeConfigurationUid)
return $abeConfiguration; return $abeConfiguration;
} }
/**
* We will update the request by actions by email
* @param array $data
* @return void
* @throws Exception
*/
function uploadAbeRequest($data) function uploadAbeRequest($data)
{ {
require_once 'classes/model/AbeRequests.php';
try { try {
$abeRequestsInstance = new AbeRequests(); $abeRequestsInstance = new AbeRequests();
$abeRequestsInstance->createOrUpdate($data); $abeRequestsInstance->createOrUpdate($data);

View File

@@ -33,7 +33,7 @@ try {
$template->assign ('WIDTH_PANEL' ,$width); $template->assign ('WIDTH_PANEL' ,$width);
$template->assign ('WIDTH_PANEL_20' ,$width-20); $template->assign ('WIDTH_PANEL_20' ,$width-20);
$upload = new replacementLogo(); $upload = new ReplacementLogo();
$aFotoSelect = $upload->getNameLogo($_SESSION['USER_LOGGED']); $aFotoSelect = $upload->getNameLogo($_SESSION['USER_LOGGED']);
$sFotoSelect = trim($aFotoSelect['DEFAULT_LOGO_NAME']); $sFotoSelect = trim($aFotoSelect['DEFAULT_LOGO_NAME']);
$check =''; $check ='';