Merged in bugfix/HOR-3670-PQ (pull request #5913)

HOR-3670

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Paula Quispe
2017-08-11 20:07:23 +00:00
committed by Julio Cesar Laura Avendaño
27 changed files with 91 additions and 443 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

@@ -2,7 +2,7 @@
class actionsByEmailCoreClass extends PMPlugin class ActionsByEmailCoreClass extends PMPlugin
{ {
public function __construct() public function __construct()
{ {

View File

@@ -7,7 +7,8 @@
/** /**
* Class InputDocumentDrive * Class InputDocumentDrive
*/class AppDocumentDrive */
class AppDocumentDrive
{ {
/** /**
* @var PmDrive $drive * @var PmDrive $drive

View File

@@ -1,42 +1,4 @@
<?php <?php
/**
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2012 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, 5304 Ventura Drive,
* Delray Beach, FL, 33484, USA, or email info@colosa.com.
*
*/
require_once "classes/model/Application.php";
require_once "classes/model/AppDelegation.php";
require_once "classes/model/AppThread.php";
require_once "classes/model/Content.php";
require_once "classes/model/Users.php";
require_once "classes/model/GroupUser.php";
require_once "classes/model/Task.php";
require_once "classes/model/TaskUser.php";
require_once "classes/model/Dynaform.php";
require_once "classes/model/ProcessVariables.php";
require_once "entities/SolrRequestData.php";
require_once "entities/SolrUpdateDocument.php";
require_once "entities/AppSolrQueue.php";
require_once "classes/model/AppSolrQueue.php";
/** /**
* Invalid search text for Solr exception * Invalid search text for Solr exception
@@ -48,12 +10,8 @@ require_once "classes/model/AppSolrQueue.php";
/** /**
* 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 class AppSolr
* @category Colosa
* @copyright Copyright (c) 2005-2011 Colosa Inc. (http://www.colosa.com)
*
*/class AppSolr
{ {
private $_solrIsEnabled = false; private $_solrIsEnabled = false;
private $_solrHost = ""; private $_solrHost = "";
@@ -1516,7 +1474,7 @@ require_once "classes/model/AppSolrQueue.php";
$this->getBuilXMLDocTime += $this->afterBuilXMLDocTime - $this->afterPrepareApplicationDataDBTime; $this->getBuilXMLDocTime += $this->afterBuilXMLDocTime - $this->afterPrepareApplicationDataDBTime;
} }
} }
catch ( ApplicationAPP_DATAUnserializeException $ex ) { catch ( ApplicationAppDataUnserializeException $ex ) {
// exception trying to get application information // exception trying to get application information
$fh = fopen("./SolrIndexErrors.txt", 'a') or die("can't open file to store Solr index errors."); $fh = fopen("./SolrIndexErrors.txt", 'a') or die("can't open file to store Solr index errors.");
fwrite($fh, date('Y-m-d H:i:s:u') . " " . $ex->getMessage()); fwrite($fh, date('Y-m-d H:i:s:u') . " " . $ex->getMessage());
@@ -1845,7 +1803,7 @@ require_once "classes/model/AppSolrQueue.php";
if (! $UnSerializedCaseData) { if (! $UnSerializedCaseData) {
// error unserializing // error unserializing
throw new ApplicationAPP_DATAUnserializeException (date('Y-m-d H:i:s:u') . " Could not unserialize APP_DATA of APP_UID: " . $documentData ['APP_UID'] . "\n"); throw new ApplicationAppDataUnserializeException (date('Y-m-d H:i:s:u') . " Could not unserialize APP_DATA of APP_UID: " . $documentData ['APP_UID'] . "\n");
} }
else { else {
foreach ($UnSerializedCaseData as $k => $value) { foreach ($UnSerializedCaseData as $k => $value) {

View File

@@ -1,70 +0,0 @@
<?php
/**
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2012 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, 5304 Ventura Drive,
* Delray Beach, FL, 33484, USA, or email info@colosa.com.
*
*/
require_once "classes/model/Application.php";
require_once "classes/model/AppDelegation.php";
require_once "classes/model/AppThread.php";
require_once "classes/model/Content.php";
require_once "classes/model/Users.php";
require_once "classes/model/GroupUser.php";
require_once "classes/model/Task.php";
require_once "classes/model/TaskUser.php";
require_once "classes/model/Dynaform.php";
require_once "classes/model/ProcessVariables.php";
require_once "entities/SolrRequestData.php";
require_once "entities/SolrUpdateDocument.php";
require_once "entities/AppSolrQueue.php";
require_once "classes/model/AppSolrQueue.php";
/**
* Invalid search text for Solr exception
*
* @author Herbert Saal Gutierrez
*
*/
/**
* Application APP_DATA could not be unserialized exception
*
* @author Herbert Saal Gutierrez
*
* @category Colosa
* @copyright Copyright (c) 2005-2012 Colosa Inc. (http://www.colosa.com)
*/class ApplicationAPP_DATAUnserializeException extends Exception
{
// Redefine the exception so message isn't optional
public function __construct($message, $code = 0)
{
// some code
// make sure everything is assigned properly
parent::__construct ($message, $code);
}
// custom string representation of object
public function __toString()
{
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
}
}

View File

@@ -0,0 +1,24 @@
<?php
/**
* Invalid search text for Solr exception
*/
/**
* Application APP_DATA could not be unserialized exception
*/
class ApplicationAppDataUnserializeException extends Exception
{
// Redefine the exception so message isn't optional
public function __construct($message, $code = 0)
{
// some code
// make sure everything is assigned properly
parent::__construct ($message, $code);
}
// custom string representation of object
public function __toString()
{
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
}
}

View File

@@ -1,43 +1,4 @@
<?php <?php
/**
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2012 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, 5304 Ventura Drive,
* Delray Beach, FL, 33484, USA, or email info@colosa.com.
*
*/
require_once "classes/model/Application.php";
require_once "classes/model/AppDelegation.php";
require_once "classes/model/AppThread.php";
require_once "classes/model/Content.php";
require_once "classes/model/Users.php";
require_once "classes/model/GroupUser.php";
require_once "classes/model/Task.php";
require_once "classes/model/TaskUser.php";
require_once "classes/model/Dynaform.php";
require_once "classes/model/ProcessVariables.php";
require_once "entities/SolrRequestData.php";
require_once "entities/SolrUpdateDocument.php";
require_once "entities/AppSolrQueue.php";
require_once "classes/model/AppSolrQueue.php";
/** /**
* Invalid search text for Solr exception * Invalid search text for Solr exception
* *
@@ -47,12 +8,8 @@ require_once "classes/model/AppSolrQueue.php";
/** /**
* Dynaform file corrupt * Dynaform file corrupt
* */
* @author Herbert Saal Gutierrez class ApplicationWithCorruptDynaformException extends Exception
*
* @category Colosa
* @copyright Copyright (c) 2005-2012 Colosa Inc. (http://www.colosa.com)
*/class ApplicationWithCorruptDynaformException extends Exception
{ {
// Redefine the exception so message isn't optional // Redefine the exception so message isn't optional
public function __construct($message, $code = 0) public function __construct($message, $code = 0)

View File

@@ -26,31 +26,7 @@
*/ */
/** class FileCache
* class.memcached.php
*
* @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.
*
*/class FileCache
{ {
function __construct ($dir) function __construct ($dir)
{ {

View File

@@ -1,34 +1,5 @@
<?php <?php
/**
* class.groups.php
*
* @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.
*
*/
require_once 'classes/model/Groupwf.php';
require_once 'classes/model/GroupUser.php';
require_once 'classes/model/Users.php';
/** /**
* Groups - Groups * Groups - Groups
/** /**
@@ -36,7 +7,8 @@ require_once 'classes/model/Users.php';
* *
* @package workflow.engine.ProcessMaker * @package workflow.engine.ProcessMaker
* @copyright 2007 COLOSA * @copyright 2007 COLOSA
*/class Groups */
class Groups
{ {
/** /**

View File

@@ -1,29 +1,4 @@
<?php <?php
/**
* class.BasePeer.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.
*
*/
require_once 'propel/util/BasePeer.php'; require_once 'propel/util/BasePeer.php';
// The object // The object
@@ -33,7 +8,8 @@ require_once 'propel/util/BasePeer.php';
* *
* *
* @package workflow.engine.classes * @package workflow.engine.classes
*/abstract class GulliverBasePeer */
abstract class GulliverBasePeer
{ {
/** /**

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

@@ -269,7 +269,7 @@ class AppDelegation extends BaseAppDelegation
$dataAbe = $resultAbe->getRow(); $dataAbe = $resultAbe->getRow();
$flagActionsByEmail = false; $flagActionsByEmail = false;
if($dataAbe['ABE_TYPE']!='' && $data->USR_UID!=''){ if($dataAbe['ABE_TYPE']!='' && $data->USR_UID!=''){
$actionsByEmail = new actionsByEmailCoreClass(); $actionsByEmail = new ActionsByEmailCoreClass();
$actionsByEmail->sendActionsByEmail($data, $dataAbe); $actionsByEmail->sendActionsByEmail($data, $dataAbe);
} }
} }

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 ='';