diff --git a/bootstrap/classaliasmap.php b/bootstrap/classaliasmap.php index e497dae3b..4837cbd45 100644 --- a/bootstrap/classaliasmap.php +++ b/bootstrap/classaliasmap.php @@ -40,8 +40,6 @@ return array( 'Installer' => \ProcessMaker\Core\Installer::class, 'installer' => \ProcessMaker\Core\Installer::class, 'InvalidIndexSearchTextException' => InvalidIndexSearchTextException::class, - 'JavaBridgePM' => JavaBridgePM::class, - 'labelsGmail' => labelsGmail::class, 'ldapAdvanced' => LdapAdvanced::class, 'multipleFilesBackup' => MultipleFilesBackup::class, 'NET' => Net::class, diff --git a/workflow/engine/classes/JavaBridgePM.php b/workflow/engine/classes/JavaBridgePM.php deleted file mode 100644 index 21ab6c8c1..000000000 --- a/workflow/engine/classes/JavaBridgePM.php +++ /dev/null @@ -1,150 +0,0 @@ -JavaBridgeHost:$this->JavaBridgePort/$this->JavaBridgeDir/java/Java.inc"; - @include_once ($urlJavaInc); - $includedFiles = get_included_files(); - $found = false; - foreach ($includedFiles as $filename) { - if ($urlJavaInc == $filename) { - $found = true; - } - } - if (! $found) { - throw new Exception( 'The PHP/Java Bridge is not defined' ); - } - - } - return true; - } - - if (! function_exists( "java_get_server_name" )) { - throw new Exception( 'The loaded java extension is not the PHP/Java Bridge' ); - } - - return true; - } catch (Exception $e) { - throw new Exception( 'Error in checkJavaExtension: ' . $e->getMessage() ); - } - } - - /** - * convert a php value to a java one... - * - * @param string $value - * @param string $className - * @return s boolean success - */ - public function convertValue ($value, $className) - { - // if we are a string, just use the normal conversion - // methods from the java extension... - try { - if ($className == 'java.lang.String') { - $temp = new Java( 'java.lang.String', $value ); - return $temp; - } elseif ($className == 'java.lang.Boolean' || $className == 'java.lang.Integer' || $className == 'java.lang.Long' || $className == 'java.lang.Short' || $className == 'java.lang.Double' || $className == 'java.math.BigDecimal') { - $temp = new Java( $className, $value ); - return $temp; - } elseif ($className == 'java.sql.Timestamp' || $className == 'java.sql.Time') { - $temp = new Java( $className ); - $javaObject = $temp->valueOf( $value ); - return $javaObject; - } - } catch (Exception $err) { - echo ('unable to convert value, ' . $value . ' could not be converted to ' . $className); - return false; - } - - echo ('unable to convert value, class name ' . $className . ' not recognised'); - return false; - } - - /** - * generateJrxmlFromDynaform - * - * @param string $outDocUid - * @param string $dynaformUid - * @param object $template - * @return void - */ - public function generateJrxmlFromDynaform ($outDocUid, $dynaformUid, $template) - { - require_once 'classes/model/Dynaform.php'; - $dyn = new Dynaform(); - $aFields = $dyn->load( $dynaformUid ); - $xmlFields = $dyn->getDynaformFields( $dynaformUid ); - - $reportTpl = PATH_TPL . 'javaBridgePM/classic.xml'; - $reportFilename = PATH_DYNAFORM . $aFields['PRO_UID'] . PATH_SEP . $outDocUid . '.jrxml'; - foreach ($xmlFields as $key => $val) { - if ($val->type == 'submit' || $val->type == 'button' || $val->type == 'title' || $val->type == 'subtitle') { - unset( $xmlFields[$key] ); - } - } - - //$sqlSentence = 'SELECT * from ' . $tableName; - $sqlSentence = 'dynaform/'; - - $template = new TemplatePower( $reportTpl ); - $template->prepare(); - $template->assign( 'sqlSentence', $sqlSentence ); - $template->assign( 'tableName', $aFields['DYN_TITLE'] ); - $template->assign( 'heightDetail', count( $xmlFields ) * 15 + 20 ); - $template->assign( 'PAGE_NUMBER', '{PAGE_NUMBER}' ); - - $logoReporte = System::getServerProtocolHost() . '/images/lurana.logo.png'; - $template->assign( 'logoReporte', $logoReporte ); - - foreach ($xmlFields as $key => $val) { - $template->newBlock( 'fields' ); - $template->assign( 'fieldName', $key ); - } - - $posX = 140; - $posLabelX = 5; - $posY = 10; - foreach ($xmlFields as $key => $val) { - $template->newBlock( 'detailFields' ); - $template->assign( 'fieldName', '{' . $key . '}' ); - $template->assign( 'fieldLabel', $key ); - $template->assign( 'labelPosX', $posLabelX ); - $template->assign( 'fieldPosX', $posX ); - $template->assign( 'fieldPosY', $posY ); - $posY += 15; - } - - $content = $template->getOutputContent(); - $iSize = file_put_contents( $reportFilename, $content ); - printf( "saved %s bytes in file %s \n", $iSize, $reportFilename ); - } -} diff --git a/workflow/engine/classes/LabelsGmail.php b/workflow/engine/classes/LabelsGmail.php deleted file mode 100644 index 38ac6aab3..000000000 --- a/workflow/engine/classes/LabelsGmail.php +++ /dev/null @@ -1,424 +0,0 @@ -users_labels->listUsersLabels('me'); - if ($labelsResponse->getLabels()) { - $labels = array_merge($labels, $labelsResponse->getLabels()); - } - } catch (Exception $e) { - print G::LoadTranslation("ID_PMGMAIL_GENERAL_ERROR") . G::getErrorMessage($e); - throw ($e); - } - return $labels; - } - - /** - * Modify the Labels a Message is associated with. - * - * @param Google_Service_Gmail $service Authorized Gmail API instance. - * @param string $userId User's email address. The special value 'me' - * can be used to indicate the authenticated user. - * @param string $messageId ID of Message to modify. - * @param array $labelsToAdd Array of Labels to add. - * @param array $labelsToRemove Array of Labels to remove. - */ - function modifyMessage($service, $userId, $messageId, $labelsToAdd, $labelsToRemove) - { - $mods = new Google_Service_Gmail_ModifyMessageRequest(); - $mods->setAddLabelIds($labelsToAdd); - $mods->setRemoveLabelIds($labelsToRemove); - try { - $message = $service->users_messages->modify($userId, $messageId, $mods); - } catch (Exception $e) { - print G::LoadTranslation("ID_PMGMAIL_GENERAL_ERROR") . G::getErrorMessage($e); - throw ($e); - } - } - - /** - * Get list of Messages in user's mailbox. - * - * @param Google_Service_Gmail $service Authorized Gmail API instance. - * @param string $userId User's email address. The special value 'me' - * can be used to indicate the authenticated user. - * - * @return array Array of Messages. - */ - function listMessages($service, $userId, $query, $labels) - { - $pageToken = null; - $messages = array(); - $opt_param = array(); - do { - try { - if ($pageToken) { - $opt_param['pageToken'] = $pageToken; - } - $opt_param['labelIds'] = $labels; - $opt_param['q'] = $query; - $opt_param['maxResults'] = 3; - $messagesResponse = $service->users_messages->listUsersMessages($userId, $opt_param); - if ($messagesResponse->getMessages()) { - $messages = array_merge($messages, $messagesResponse->getMessages()); - } - } catch (Exception $e) { - print G::LoadTranslation("ID_PMGMAIL_GENERAL_ERROR") . G::getErrorMessage($e); - throw ($e); - } - } while ($pageToken); - - return $messages; - } - - public function setLabelsToPauseCase($caseId, $index) - { - $Pmgmail = new \ProcessMaker\BusinessModel\Pmgmail(); - $appData = $Pmgmail->getDraftApp($caseId, $index); - - foreach ($appData as $application) { - $appNumber = $application['APP_NUMBER']; - $index = $application['DEL_INDEX']; - $threadUsr = $application['USR_UID']; - $proName = $application['APP_PRO_TITLE']; - $threadStatus = $application['DEL_THREAD_STATUS']; - $appStatus = $application['APP_STATUS']; - } - - //Getting the privious User email - $oUsers = new \Users(); - $usrData = $oUsers->loadDetails($threadUsr); - $mail = $usrData['USR_EMAIL']; - - //The Subject to search the email - $subject = "[PM] " . $proName . " (" . $index . ") Case: " . $appNumber; - - $pmGoogle = new PmGoogleApi(); - $pmGoogle->setUser($mail); - $pmGoogle->setScope(PmGoogleApi::GMAIL_MODIFY); - $client = $pmGoogle->serviceClient(); - $service = new Google_Service_Gmail($client); - $labelsIds = $this->getLabelsIds($service); - - if ($appStatus == 'DRAFT') { - $labelsToRemove = $labelsIds['Draft']; - $labelsToSearch = "*-draft"; - $labelsToAdd = $labelsIds['Paused']; - } - - if ($appStatus == 'TO_DO') { - $labelsToRemove = $labelsIds['Inbox']; - $labelsToSearch = "*-inbox"; - $labelsToAdd = $labelsIds['Paused']; - } - - $q = "subject:('" . preg_quote($subject, '-') . "') label:('" . $labelsToSearch . "')"; - $messageList = $this->listMessages($service, $mail, $q, $labelsToRemove); - foreach ($messageList as $message) { - $messageId = $message->getId(); - $modifyResult = $this->modifyMessage($service, $mail, $messageId, array($labelsToAdd), - array($labelsToRemove)); - } - } - - function setLabelsTounpauseCase($caseId, $index) - { - $Pmgmail = new \ProcessMaker\BusinessModel\Pmgmail(); - $appData = $Pmgmail->getDraftApp($caseId, $index); - - foreach ($appData as $application) { - $appNumber = $application['APP_NUMBER']; - $index = $application['DEL_INDEX']; - $threadUsr = $application['USR_UID']; - $proName = $application['APP_PRO_TITLE']; - $threadStatus = $application['DEL_THREAD_STATUS']; - $appStatus = $application['APP_STATUS']; - } - - //Getting the privious User email - $oUsers = new \Users(); - $usrData = $oUsers->loadDetails($threadUsr); - $mail = $usrData['USR_EMAIL']; - - //The Subject to search the email - $subject = "[PM] " . $proName . " (" . $index . ") Case: " . $appNumber; - - $pmGoogle = new PmGoogleApi(); - $pmGoogle->setUser($mail); - $pmGoogle->setScope(PmGoogleApi::GMAIL_MODIFY); - $client = $pmGoogle->serviceClient(); - $service = new Google_Service_Gmail($client); - $labelsIds = $this->getLabelsIds($service); - - if ($appStatus == 'DRAFT') { - $labelsToRemove = $labelsIds['Paused']; - $labelsToSearch = "*-paused"; - $labelsToAdd = $labelsIds['Draft']; - } - - if ($appStatus == 'TO_DO') { - $labelsToRemove = $labelsIds['Paused']; - $labelsToSearch = "*-paused"; - $labelsToAdd = $labelsIds['Inbox']; - } - - $q = "subject:('" . preg_quote($subject, '-') . "') label:('" . $labelsToSearch . "')"; - $messageList = $this->listMessages($service, $mail, $q, $labelsToRemove); - foreach ($messageList as $message) { - $messageId = $message->getId(); - $modifyResult = $this->modifyMessage($service, $mail, $messageId, array($labelsToAdd), - array($labelsToRemove)); - } - } - - public function setLabels($caseId, $index, $actualLastIndex, $unassigned = false) - { - //First getting the actual thread data - $Pmgmail = new \ProcessMaker\BusinessModel\Pmgmail(); - $appData = $Pmgmail->getDraftApp($caseId, $index); - - foreach ($appData as $application) { - $appNumber = $application['APP_NUMBER']; - $index = $application['DEL_INDEX']; - $threadUsr = $application['USR_UID']; - $proName = $application['APP_PRO_TITLE']; - $threadStatus = $application['DEL_THREAD_STATUS']; - $appStatus = $application['APP_STATUS']; - $tasUid = $application['TAS_UID']; - } - - if ($threadStatus == 'CLOSED' || $unassigned == true) { - //Getting the privious User email - $oUsers = new \Users(); - - $usrData = $oUsers->loadDetails($threadUsr); - $mail = $usrData['USR_EMAIL']; - - //The Subject to search the email - $subject = "[PM] " . $proName . " (" . $index . ") Case: " . $appNumber; - - $pmGoogle = new PmGoogleApi(); - - $pmGoogle->setUser($mail); - - $pmGoogle->setScope(PmGoogleApi::GMAIL_MODIFY); - $client = $pmGoogle->serviceClient(); - - $service = new Google_Service_Gmail($client); - $labelsIds = $this->getLabelsIds($service); - - if ($actualLastIndex == 0) { - $labelsToRemove = $labelsIds['Draft']; - $labelsToSearch = "*-draft"; - $labelsToAdd = $labelsIds['Participated']; - } else { - if (($actualLastIndex == -1) && ($unassigned == true)) { //Unassigned - $labelsToRemove = $labelsIds['Unassigned']; - $labelsToSearch = "*-unassigned"; - $labelsToAdd = $labelsIds['Inbox']; - } else { - if ($actualLastIndex >= 1) { - $labelsToRemove = $labelsIds['Inbox']; - $labelsToSearch = "*-inbox"; - $labelsToAdd = $labelsIds['Participated']; - } - } - } - - //Searching the email in the user's mail - $q = "subject:('" . preg_quote($subject, '-') . "') label:('" . $labelsToSearch . "')"; - $messageList = $this->listMessages($service, $mail, $q, $labelsToRemove); - - //if there isn't any message at draft, and lasindex is zero, is a subprocess - //and we must search in inbox: - if ($actualLastIndex === 0 && count($messageList) ===0) { - $labelsToRemove = $labelsIds['Inbox']; - $labelsToSearch = "*-inbox"; - $labelsToAdd = $labelsIds['Participated']; - $q = "subject:('" . preg_quote($subject, '-') . "') label:('" . $labelsToSearch . "')"; - $messageList = $this->listMessages($service, $mail, $q, $labelsToRemove); - } - - foreach ($messageList as $message) { - $messageId = $message->getId(); - - $modifyResult = $this->modifyMessage($service, $mail, $messageId, array($labelsToAdd), - array($labelsToRemove)); - - } - - //in is unassigned we must remove the label to the orher users - if ($labelsToRemove === $labelsIds['Unassigned']) { - require_once(PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "TaskUser.php"); - $oTaskUsers = new \TaskUser(); - $taskUsers = $oTaskUsers->getAllUsersTask($tasUid); - foreach ($taskUsers as $user) { - $usrData = $oUsers->loadDetails($user['USR_UID']); - $nextMail = $usrData['USR_EMAIL']; - //this operation is just for the users that didn't make the case claim - if ($nextMail !== $mail) { - $this->changeLabelsOfUnassigned($appData[0], $nextMail); - } - } - } - } - } - - function changeLabelsOfUnassigned($application, $mail) - { - $appNumber = $application['APP_NUMBER']; - $index = $application['DEL_INDEX']; - $threadUsr = $application['USR_UID']; - $proName = $application['APP_PRO_TITLE']; - $threadStatus = $application['DEL_THREAD_STATUS']; - $appStatus = $application['APP_STATUS']; - $tasUid = $application['TAS_UID']; - - //The Subject to search the email - $subject = "[PM] " . $proName . " (" . $index . ") Case: " . $appNumber; - $pmGoogle = new PmGoogleApi(); - $pmGoogle->setUser($mail); - $pmGoogle->setScope(PmGoogleApi::GMAIL_MODIFY); - $client = $pmGoogle->serviceClient(); - $service = new Google_Service_Gmail($client); - $labelsIds = $this->getLabelsIds($service); - $labelsToRemove = $labelsIds['Unassigned']; - $labelsToSearch = "*-unassigned"; - $labelsToAdd = $labelsIds['Participated']; - - //Searching the email in the user's mail - $q = "subject:('" . preg_quote($subject, '-') . "') label:('" . $labelsToSearch . "')"; - $messageList = $this->listMessages($service, $mail, $q, $labelsToRemove); - - foreach ($messageList as $message) { - $messageId = $message->getId(); - $modifyResult = $this->modifyMessage($service, $mail, $messageId, array($labelsToAdd), - array($labelsToRemove)); - - } - } - - - /** - * Delete Label with given ID. - * - * @param Google_Service_Gmail $service Authorized Gmail API instance. - * @param string $userId User's email address. The special value 'me' - * can be used to indicate the authenticated user. - * @param string $labelId Id of Label to be updated. - */ - public function deleteLabel($service, $user, $labelId) - { - try { - $service->users_labels->delete($user, $labelId); - } catch (Exception $e) { - error_log(G::LoadTranslation("ID_PMGMAIL_GENERAL_ERROR") . $e->getMessage()); - } - } - - /** - * Delete PMGmail integration labels getting the list of labels in an email account. - * - * @param string $mail User mail adress. - * - */ - public function deletePMGmailLabels($mail) - { - $pmGoogle = new PmGoogleApi(); - - $pmGoogle->setUser($mail); - - $pmGoogle->setScope(PmGoogleApi::GMAIL_MODIFY); - $client = $pmGoogle->serviceClient(); - - $service = new Google_Service_Gmail($client); - $count = 0; - $listlabels = $this->listLabels($service); - foreach ($listlabels as $label) { - if ($label->getName() == '* Inbox' || - $label->getName() == '* Participated' || - $label->getName() == '* Unassigned' || - $label->getName() == '* Draft' || - $label->getName() == '* Inbox' || - $label->getName() == '* --- ProcessMaker ---' || - $label->getName() == '* Paused' - ) { - $oresp = $this->deleteLabel($service, 'me', $label->getId()); - $count++; - } - } - return $count . ' labels successfully deleted.'; - } - - public function addRelabelingToQueue($caseId, $index, $actualLastIndex, $unassigned = false) - { - $labelingQueue = new GmailRelabeling(); - $labelingQueue->setCreateDate(date('Y-m-d H:i:s')); - $labelingQueue->setLabelingUid(G::generateUniqueID()); - $labelingQueue->setAppUid($caseId); - $labelingQueue->setDelIndex($index); - $labelingQueue->setCurrentLastIndex($actualLastIndex); - $labelingQueue->setUnassigned(($unassigned === true) ? 1 : 0); - $labelingQueue->setStatus('pending'); - $labelingQueue->save(); - } - - public function processPendingRelabelingInQueue() - { - $c = new \Criteria('workflow'); - $c->add(\GmailRelabelingPeer::STATUS, 'pending'); - $c->addAscendingOrderByColumn('CREATE_DATE'); - $list = \GmailRelabelingPeer::doSelect($c); - foreach ($list as $task) { - try { - $oResponse = $this->setLabels($task->getAppUid(), - $task->getDelIndex(), - $task->getCurrentLastIndex(), - ($task->getUnassigned() === 1) ? true : false - ); - $task->setStatus('completed'); - } catch (exception $e) { - $task->setMsgError($e->getMessage()); - $task->setStatus('pending'); - } - $task->save(); - } - } - - private function getLabelsIds($service) - { - $result = array(); - try { - $listlabels = $this->listLabels($service); - foreach ($listlabels as $label) { - $labId = $label->getId(); - $labName = $label->getName(); - switch ($labName) { - case "* Inbox": - $result['Inbox'] = $labId; - break; - case "* Participated": - $result['Participated'] = $labId; - break; - case "* Unassigned": - $result['Unassigned'] = $labId; - break; - case "* Draft": - $result['Draft'] = $labId; - break; - case "* Paused": - $result['Paused'] = $labId; - break; - } - } - } catch (Exception $e) { - throw $e; - } - return $result; - } -} diff --git a/workflow/engine/classes/WsBase.php b/workflow/engine/classes/WsBase.php index 6a19d38e5..4980615cc 100644 --- a/workflow/engine/classes/WsBase.php +++ b/workflow/engine/classes/WsBase.php @@ -883,7 +883,6 @@ class WsBase * @see workflow\engine\classes\class.pmFunctions::PMFSendMessage() * @see workflow\engine\methods\services\soap2::sendMessage() * @see \ProcessMaker\BusinessModel\EmailEvent->sendEmail() - * @see \ProcessMaker\BusinessModel\Pmgmail->sendEmailWithApplicationData() * */ public function sendMessage( @@ -990,10 +989,6 @@ class WsBase $this->getTaskId() ? $this->getTaskId() : (isset($oldFields['TAS_ID']) ? $oldFields['TAS_ID'] : 0) ); - if ($gmail === 1) { - return new WsResponse(0, G::loadTranslation('ID_PMGMAIL')); - } - // Create always the record in APP_MESSAGE table $spool = new SpoolRun(); $spool->setConfig($setup); @@ -2997,9 +2992,9 @@ class WsBase $bmCase = new BmCases(); if (!$bmCase->isSupervisor($userIdTarget, $rows['APP_NUMBER'])){ $result = new WsResponse(34, G::loadTranslation('ID_TARGET_USER_DOES_NOT_HAVE_RIGHTS')); - + $g->sessionVarRestore(); - + return $result; } } @@ -3276,13 +3271,13 @@ class WsBase * @param string $unpauseDate: Optional parameter. The date in the format "yyyy-mm-dd" indicating when to unpause * the case. * @param boolean $checkUser: Check if needs to validate if the action will enable only for current user - * + * * @see Ajax::pauseCase() * @see workflow/engine/classes/class.pmFunctions.php::PMFPauseCase() * @see workflow/engine/methods/services/soap2.php::pauseCase() - * + * * @link https://wiki.processmaker.com/3.3/ProcessMaker_Functions/Case_Functions#PMFPauseCase.28.29 - * + * * @return $result will return an object */ public function pauseCase($caseUid, $delIndex, $userUid, $unpauseDate = null, $checkUser = false) diff --git a/workflow/engine/classes/model/AppDelegation.php b/workflow/engine/classes/model/AppDelegation.php index 774946b19..9003d8c68 100644 --- a/workflow/engine/classes/model/AppDelegation.php +++ b/workflow/engine/classes/model/AppDelegation.php @@ -284,16 +284,6 @@ class AppDelegation extends BaseAppDelegation $actionsByEmail->sendActionsByEmail($data, $dataAbe); } } - - try { - $pmGoogle = new PmGoogleApi(); - if ($pmGoogle->getServiceGmailStatus()) { - $Pmgmail = new \ProcessMaker\BusinessModel\Pmgmail(); - $Pmgmail->gmailsForRouting($usrUid, $tasUid, $appUid, $delIndex, $isSubprocess); - } - } catch (Exception $oError) { - error_log($oError->getMessage()); - } } if ($flagActionsByEmail) { diff --git a/workflow/engine/classes/model/OutputDocument.php b/workflow/engine/classes/model/OutputDocument.php index 87281debd..3d30ce083 100644 --- a/workflow/engine/classes/model/OutputDocument.php +++ b/workflow/engine/classes/model/OutputDocument.php @@ -2,18 +2,13 @@ use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Facades\Log; -use ProcessMaker\Core\System; use ProcessMaker\PDF\TCPDFHeaderFooter; class OutputDocument extends BaseOutputDocument { public function __construct() { - $javaInput = PATH_C . 'javaBridgePM' . PATH_SEP . 'input' . PATH_SEP; - $javaOutput = PATH_C . 'javaBridgePM' . PATH_SEP . 'output' . PATH_SEP; - G::mk_dir($javaInput); - G::mk_dir($javaOutput); } public function getByUid($sOutDocUid) @@ -1159,7 +1154,7 @@ class OutputDocument extends BaseOutputDocument // Save the CSS file file_put_contents(K_PATH_FONTS . 'fonts.css', $css); } - + /** * Set and build if header options exist. * @param TCPDFHeaderFooter $pdf diff --git a/workflow/engine/content/translations/english/processmaker.en.po b/workflow/engine/content/translations/english/processmaker.en.po index f4aa80fe1..10a33c822 100755 --- a/workflow/engine/content/translations/english/processmaker.en.po +++ b/workflow/engine/content/translations/english/processmaker.en.po @@ -7895,12 +7895,6 @@ msgstr "Enable the selected add-on" msgid "Enable Google Drive." msgstr "Enable Google Drive." -# TRANSLATION -# LABEL/ID_ENABLE_PMGMAIL -#: LABEL/ID_ENABLE_PMGMAIL -msgid "Enable PM Gmail" -msgstr "Enable PM Gmail" - # TRANSLATION # LABEL/ID_ENABLE_SEARCH_FILTER #: LABEL/ID_ENABLE_SEARCH_FILTER @@ -21839,60 +21833,6 @@ msgstr "Are you sure that you want to disable Google Drive Integration? If you d msgid "The file doesn't have any content stored on Drive." msgstr "The file doesn't have any content stored on Drive." -# TRANSLATION -# LABEL/ID_PMGMAIL -#: LABEL/ID_PMGMAIL -msgid "PM Gmail" -msgstr "PM Gmail" - -# TRANSLATION -# LABEL/ID_PMGMAIL_DISABLE -#: LABEL/ID_PMGMAIL_DISABLE -msgid "Are you sure that you want to disable Gmail Integration? If you do this, all the mails and relabelling sent to Gmail will be disabled." -msgstr "Are you sure that you want to disable Gmail Integration? If you do this, all the mails and relabelling sent to Gmail will be disabled." - -# TRANSLATION -# LABEL/ID_PMGMAIL_GENERAL_ERROR -#: LABEL/ID_PMGMAIL_GENERAL_ERROR -msgid "An error in processing Gmail requests occurred" -msgstr "An error in processing Gmail requests occurred" - -# TRANSLATION -# LABEL/ID_PMGMAIL_SETTINGS -#: LABEL/ID_PMGMAIL_SETTINGS -msgid "Settings for Processmaker Gmail" -msgstr "Settings for Processmaker Gmail" - -# TRANSLATION -# LABEL/ID_PMGMAIL_VALID -#: LABEL/ID_PMGMAIL_VALID -msgid "The Gmail token is not valid." -msgstr "The Gmail token is not valid." - -# TRANSLATION -# LABEL/ID_PMG_EMAIL -#: LABEL/ID_PMG_EMAIL -msgid "Service Account Email" -msgstr "Service Account Email" - -# TRANSLATION -# LABEL/ID_PMG_FILE -#: LABEL/ID_PMG_FILE -msgid "Service Account Certificate" -msgstr "Service Account Certificate" - -# TRANSLATION -# LABEL/ID_PMG_SELECT_FILE -#: LABEL/ID_PMG_SELECT_FILE -msgid "Please select a json file to upload" -msgstr "Please select a json file to upload" - -# TRANSLATION -# LABEL/ID_PMG_TYPE_ACCEPT -#: LABEL/ID_PMG_TYPE_ACCEPT -msgid "Only accepts files in JSON format" -msgstr "Only accepts files in JSON format" - # TRANSLATION # LABEL/ID_PMTABLE #: LABEL/ID_PMTABLE diff --git a/workflow/engine/content/translations/lurana.en.po b/workflow/engine/content/translations/lurana.en.po index f32cde7f4..9ca8ddef1 100644 --- a/workflow/engine/content/translations/lurana.en.po +++ b/workflow/engine/content/translations/lurana.en.po @@ -8003,12 +8003,6 @@ msgstr "Enable the selected add-on" msgid "Enable Google Drive." msgstr "Enable Google Drive." -# TRANSLATION -# LABEL/ID_ENABLE_PMGMAIL -#: LABEL/ID_ENABLE_PMGMAIL -msgid "Enable PM Gmail" -msgstr "Enable PM Gmail" - # TRANSLATION # LABEL/ID_ENABLE_SEARCH_FILTER #: LABEL/ID_ENABLE_SEARCH_FILTER @@ -22367,48 +22361,6 @@ msgstr "Are you sure that you want to disable Google Drive Integration? If you d msgid "The file doesn't have any content stored on Drive." msgstr "The file doesn't have any content stored on Drive." -# TRANSLATION -# LABEL/ID_PMGMAIL -#: LABEL/ID_PMGMAIL -msgid "PM Gmail" -msgstr "PM Gmail" - -# TRANSLATION -# LABEL/ID_PMGMAIL_DISABLE -#: LABEL/ID_PMGMAIL_DISABLE -msgid "Are you sure that you want to disable Gmail Integration? If you do this, all the mails and relabelling sent to Gmail will be disabled." -msgstr "Are you sure that you want to disable Gmail Integration? If you do this, all the mails and relabelling sent to Gmail will be disabled." - -# TRANSLATION -# LABEL/ID_PMGMAIL_GENERAL_ERROR -#: LABEL/ID_PMGMAIL_GENERAL_ERROR -msgid "An error in processing Gmail requests occurred" -msgstr "An error in processing Gmail requests occurred" - -# TRANSLATION -# LABEL/ID_PMGMAIL_SETTINGS -#: LABEL/ID_PMGMAIL_SETTINGS -msgid "Settings for Processmaker Gmail" -msgstr "Settings for Processmaker Gmail" - -# TRANSLATION -# LABEL/ID_PMGMAIL_VALID -#: LABEL/ID_PMGMAIL_VALID -msgid "The Gmail token is not valid." -msgstr "The Gmail token is not valid." - -# TRANSLATION -# LABEL/ID_PMG_EMAIL -#: LABEL/ID_PMG_EMAIL -msgid "Service Account Email" -msgstr "Service Account Email" - -# TRANSLATION -# LABEL/ID_PMG_FILE -#: LABEL/ID_PMG_FILE -msgid "Service Account Certificate" -msgstr "Service Account Certificate" - # TRANSLATION # LABEL/ID_PMG_SELECT_FILE #: LABEL/ID_PMG_SELECT_FILE diff --git a/workflow/engine/content/translations/lurana.es.po b/workflow/engine/content/translations/lurana.es.po index 9c4360e60..0522547f3 100644 --- a/workflow/engine/content/translations/lurana.es.po +++ b/workflow/engine/content/translations/lurana.es.po @@ -8003,12 +8003,6 @@ msgstr "Habilite el plugin seleccionado" msgid "Enable Google Drive." msgstr "Habilitar GoogleDrive." -# TRANSLATION -# LABEL/ID_ENABLE_PMGMAIL -#: LABEL/ID_ENABLE_PMGMAIL -msgid "Enable PM Gmail" -msgstr "Habilitar Gmail PM" - # TRANSLATION # LABEL/ID_ENABLE_SEARCH_FILTER #: LABEL/ID_ENABLE_SEARCH_FILTER @@ -22367,42 +22361,6 @@ msgstr "¿Está seguro de inhabilitar la Integración Google Drive? Si lo hace l msgid "The file doesn't have any content stored on Drive." msgstr "El archivo no tiene ningún contenido almacenado en Drive." -# TRANSLATION -# LABEL/ID_PMGMAIL -#: LABEL/ID_PMGMAIL -msgid "PM Gmail" -msgstr "PM Gmail" - -# TRANSLATION -# LABEL/ID_PMGMAIL_DISABLE -#: LABEL/ID_PMGMAIL_DISABLE -msgid "Are you sure that you want to disable Gmail Integration? If you do this, all the mails and relabelling sent to Gmail will be disabled." -msgstr "¿Está seguro de inhabilitar la Integración Gmail? Si lo hace, todos los emails y el re-etiquetado enviado a Gmail serán inhabilitados." - -# TRANSLATION -# LABEL/ID_PMGMAIL_GENERAL_ERROR -#: LABEL/ID_PMGMAIL_GENERAL_ERROR -msgid "An error in processing Gmail requests occurred" -msgstr "Ocurrió un error al procesar las solicitudes de Gmail" - -# TRANSLATION -# LABEL/ID_PMGMAIL_SETTINGS -#: LABEL/ID_PMGMAIL_SETTINGS -msgid "Settings for Processmaker Gmail" -msgstr "Configuraciones para Gmail de Lurana" - -# TRANSLATION -# LABEL/ID_PMGMAIL_VALID -#: LABEL/ID_PMGMAIL_VALID -msgid "The Gmail token is not valid." -msgstr "El token de gmail no es valido." - -# TRANSLATION -# LABEL/ID_PMG_EMAIL -#: LABEL/ID_PMG_EMAIL -msgid "Service Account Email" -msgstr "Servicio de cuenta de correo" - # TRANSLATION # LABEL/ID_PMG_FILE #: LABEL/ID_PMG_FILE diff --git a/workflow/engine/content/translations/processmaker.en.po b/workflow/engine/content/translations/processmaker.en.po index 775e4843a..be2a00049 100644 --- a/workflow/engine/content/translations/processmaker.en.po +++ b/workflow/engine/content/translations/processmaker.en.po @@ -8003,12 +8003,6 @@ msgstr "Enable the selected add-on" msgid "Enable Google Drive." msgstr "Enable Google Drive." -# TRANSLATION -# LABEL/ID_ENABLE_PMGMAIL -#: LABEL/ID_ENABLE_PMGMAIL -msgid "Enable PM Gmail" -msgstr "Enable PM Gmail" - # TRANSLATION # LABEL/ID_ENABLE_SEARCH_FILTER #: LABEL/ID_ENABLE_SEARCH_FILTER @@ -22367,60 +22361,6 @@ msgstr "Are you sure that you want to disable Google Drive Integration? If you d msgid "The file doesn't have any content stored on Drive." msgstr "The file doesn't have any content stored on Drive." -# TRANSLATION -# LABEL/ID_PMGMAIL -#: LABEL/ID_PMGMAIL -msgid "PM Gmail" -msgstr "PM Gmail" - -# TRANSLATION -# LABEL/ID_PMGMAIL_DISABLE -#: LABEL/ID_PMGMAIL_DISABLE -msgid "Are you sure that you want to disable Gmail Integration? If you do this, all the mails and relabelling sent to Gmail will be disabled." -msgstr "Are you sure that you want to disable Gmail Integration? If you do this, all the mails and relabelling sent to Gmail will be disabled." - -# TRANSLATION -# LABEL/ID_PMGMAIL_GENERAL_ERROR -#: LABEL/ID_PMGMAIL_GENERAL_ERROR -msgid "An error in processing Gmail requests occurred" -msgstr "An error in processing Gmail requests occurred" - -# TRANSLATION -# LABEL/ID_PMGMAIL_SETTINGS -#: LABEL/ID_PMGMAIL_SETTINGS -msgid "Settings for Processmaker Gmail" -msgstr "Settings for Processmaker Gmail" - -# TRANSLATION -# LABEL/ID_PMGMAIL_VALID -#: LABEL/ID_PMGMAIL_VALID -msgid "The Gmail token is not valid." -msgstr "The Gmail token is not valid." - -# TRANSLATION -# LABEL/ID_PMG_EMAIL -#: LABEL/ID_PMG_EMAIL -msgid "Service Account Email" -msgstr "Service Account Email" - -# TRANSLATION -# LABEL/ID_PMG_FILE -#: LABEL/ID_PMG_FILE -msgid "Service Account Certificate" -msgstr "Service Account Certificate" - -# TRANSLATION -# LABEL/ID_PMG_SELECT_FILE -#: LABEL/ID_PMG_SELECT_FILE -msgid "Please select a json file to upload" -msgstr "Please select a json file to upload" - -# TRANSLATION -# LABEL/ID_PMG_TYPE_ACCEPT -#: LABEL/ID_PMG_TYPE_ACCEPT -msgid "Only accepts files in JSON format" -msgstr "Only accepts files in JSON format" - # TRANSLATION # LABEL/ID_PMTABLE #: LABEL/ID_PMTABLE diff --git a/workflow/engine/controllers/pmGmail.php b/workflow/engine/controllers/pmGmail.php deleted file mode 100644 index 3de9bd629..000000000 --- a/workflow/engine/controllers/pmGmail.php +++ /dev/null @@ -1,151 +0,0 @@ -success = true; - - $httpData->serviceGmailStatus = !empty($httpData->serviceGmailStatus) ? $httpData->serviceGmailStatus == 1 ? true : false : false; - $httpData->serviceDriveStatus = !empty($httpData->serviceDriveStatus) ? $httpData->serviceDriveStatus == 1 ? true : false : false; - - if ($httpData->serviceGmailStatus || $httpData->serviceDriveStatus) { - $pmGoogle->setServiceGmailStatus($httpData->serviceGmailStatus); - $pmGoogle->setServiceDriveStatus($httpData->serviceDriveStatus); - - $message = G::LoadTranslation('ID_ENABLE_PMGMAIL') . ': ' . ($httpData->serviceGmailStatus ? G::LoadTranslation('ID_ENABLE') : G::LoadTranslation('ID_DISABLE')); - $message .= G::LoadTranslation('ID_ENABLE_PMDRIVE') . ': ' . ($httpData->serviceDriveStatus ? G::LoadTranslation('ID_ENABLE') : G::LoadTranslation('ID_DISABLE')); - - if (!empty($httpData->emailServiceAccount)) { - $pmGoogle->setServiceAccountEmail($httpData->emailServiceAccount); - $message .= ', ' . G::LoadTranslation('ID_PMG_EMAIL') . ': ' . $httpData->emailServiceAccount; - } - if (!empty($_FILES)) { - if (!empty($_FILES['googleCertificate']) && $_FILES['googleCertificate']['error'] != 1) { - if ($_FILES['googleCertificate']['tmp_name'] != '') { - G::uploadFile($_FILES['googleCertificate']['tmp_name'], PATH_DATA_SITE, $_FILES['googleCertificate']['name']); - $pmGoogle->setServiceAccountCertificate($_FILES['googleCertificate']['name']); - $message .= ', ' . G::LoadTranslation('ID_PMG_FILE') . ': ' . $_FILES['googleCertificate']['name']; - } - } else { - $result->success = false; - $result->fileError = true; - print(G::json_encode($result)); - die(); - } - } - } else { - $pmGoogle->setServiceGmailStatus(false); - $pmGoogle->setServiceDriveStatus(false); - $message = G::LoadTranslation('ID_ENABLE_PMGMAIL') . ': ' . G::LoadTranslation('ID_DISABLE'); - } - G::auditLog("Update Settings Gmail", $message); - - print(G::json_encode($result)); - } - - public function formPMGmail() - { - try { - $this->includeExtJS('admin/pmGmail'); - if (!empty($_SESSION['__PMGMAIL_ERROR__'])) { - $this->setJSVar('__PMGMAIL_ERROR__', $_SESSION['__PMGMAIL_ERROR__']); - unset($_SESSION['__PMGMAIL_ERROR__']); - } - $pmGoogle = new PmGoogleApi(); - $accountEmail = $pmGoogle->getServiceAccountEmail(); - $googleCertificate = $pmGoogle->getServiceAccountCertificate(); - $statusGmail = $pmGoogle->getServiceGmailStatus(); - $statusDrive = $pmGoogle->getServiceDriveStatus(); - $disableGmail = false; - $disableDrive = false; - - $this->setJSVar('accountEmail', $accountEmail); - $this->setJSVar('googleCertificate', $googleCertificate); - $this->setJSVar('statusGmail', $statusGmail); - $this->setJSVar('statusDrive', $statusDrive); - $this->setJSVar('disableGmail', $disableGmail); - $this->setJSVar('disableDrive', $disableDrive); - - - G::RenderPage('publish', 'extJs'); - } catch (Exception $error) { - $_SESSION['__PMGMAIL_ERROR__'] = $error->getMessage(); - die(); - } - } - - /** - * @param $httpData - */ - public function testConfigPmGmail($httpData) - { - $pmGoogle = new PmGoogleApi(); - - $result = new stdClass(); - - $result->emailServiceAccount = empty($httpData->emailServiceAccount) ? $pmGoogle->getServiceAccountEmail() : $httpData->emailServiceAccount; - $result->pathServiceAccountCertificate = empty($_FILES['googleCertificate']['tmp_name']) ? PATH_DATA_SITE . $pmGoogle->getServiceAccountCertificate() : $_FILES['googleCertificate']['tmp_name']; - - print(G::json_encode($pmGoogle->testService($result))); - } - - /** - * Search users with same email - */ - public function testUserGmail() - { - $criteria = new Criteria(); - $criteria->clearSelectColumns(); - $criteria->addSelectColumn('COUNT(*) AS NUM_EMAIL'); - - $criteria->addSelectColumn(UsersPeer::USR_EMAIL); - $criteria->addGroupByColumn(UsersPeer::USR_EMAIL); - - $criteria->add(UsersPeer::USR_STATUS, 'ACTIVE'); - - $rs = UsersPeer::doSelectRS($criteria); - $rs->setFetchmode(ResultSet::FETCHMODE_ASSOC); - - $userRepeat = []; - while ($rs->next()) { - $row = $rs->getRow(); - if ($row['NUM_EMAIL'] > 1) { - $criteriaUsers = new Criteria(); - $criteriaUsers->clearSelectColumns(); - $criteriaUsers->addSelectColumn(UsersPeer::USR_UID); - $criteriaUsers->addSelectColumn(UsersPeer::USR_FIRSTNAME); - $criteriaUsers->addSelectColumn(UsersPeer::USR_LASTNAME); - $criteriaUsers->addSelectColumn(UsersPeer::USR_EMAIL); - - $criteriaUsers->add(UsersPeer::USR_EMAIL, $row['USR_EMAIL']); - $criteriaUsers->add(UsersPeer::USR_STATUS, 'ACTIVE'); - - $rsUsers = UsersPeer::doSelectRS($criteriaUsers); - $rsUsers->setFetchmode(ResultSet::FETCHMODE_ASSOC); - while ($rsUsers->next()) { - $rowUser = $rsUsers->getRow(); - - array_push( - $userRepeat, - [ - 'USR_UID' => $rowUser['USR_UID'], - 'FULL_NAME' => $rowUser['USR_FIRSTNAME'] . ' ' . $rowUser['USR_LASTNAME'], - 'EMAIL' => $rowUser['USR_EMAIL'] - ] - ); - } - } - } - - print(G::json_encode($userRepeat)); - } -} diff --git a/workflow/engine/data/mysql/insert.sql b/workflow/engine/data/mysql/insert.sql index edc78d2d5..faf230663 100755 --- a/workflow/engine/data/mysql/insert.sql +++ b/workflow/engine/data/mysql/insert.sql @@ -58155,7 +58155,6 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_ENABLE_PLUGIN','en','Enable Plugin','2014-10-13') , ( 'LABEL','ID_ENABLE_PLUGIN_TIP','en','Enable the selected add-on','2014-10-21') , ( 'LABEL','ID_ENABLE_PMDRIVE','en','Enable Google Drive.','2016-01-05') , -( 'LABEL','ID_ENABLE_PMGMAIL','en','Enable PM Gmail','2015-07-27') , ( 'LABEL','ID_ENABLE_SEARCH_FILTER','en','Enable Search Filter','2021-08-13') , ( 'LABEL','ID_ENABLE_USER','en','Enable User','2014-10-10') , ( 'LABEL','ID_ENABLE_VERSIONING','en','Enable Versioning','2014-01-15') , @@ -60548,15 +60547,6 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_PLUGIN_FILE','en','Plugin file','2014-09-18') , ( 'LABEL','ID_PMDRIVE_DISABLE','en','Are you sure that you want to disable Google Drive Integration? If you do this, the Input and Output Documents and attached files will only be stored in your ProcessMaker server.','2017-02-21') , ( 'LABEL','ID_PMDRIVE_NO_CONTENT_IN_FILE','en','The file doesn''t have any content stored on Drive.','2015-12-09') , -( 'LABEL','ID_PMGMAIL','en','PM Gmail','2015-07-27') , -( 'LABEL','ID_PMGMAIL_DISABLE','en','Are you sure that you want to disable Gmail Integration? If you do this, all the mails and relabelling sent to Gmail will be disabled.','2016-01-05') , -( 'LABEL','ID_PMGMAIL_GENERAL_ERROR','en','An error in processing Gmail requests occurred','2015-12-09') , -( 'LABEL','ID_PMGMAIL_SETTINGS','en','Settings for Processmaker Gmail','2015-07-27') , -( 'LABEL','ID_PMGMAIL_VALID','en','The Gmail token is not valid.','2015-09-11') , -( 'LABEL','ID_PMG_EMAIL','en','Service Account Email','2015-07-27') , -( 'LABEL','ID_PMG_FILE','en','Service Account Certificate','2015-12-09') , -( 'LABEL','ID_PMG_SELECT_FILE','en','Please select a json file to upload','2016-01-05') , -( 'LABEL','ID_PMG_TYPE_ACCEPT','en','Only accepts files in JSON format','2016-01-04') , ( 'LABEL','ID_PMTABLE','en','PM Table','2014-01-15') , ( 'LABEL','ID_PMTABLES','en','PM Tables','2014-01-15') , ( 'LABEL','ID_PMTABLES_ALERT1','en','You can''t repeat a column name, please rename:','2014-01-15') , diff --git a/workflow/engine/methods/cases/casesListExtJsRedirector.php b/workflow/engine/methods/cases/casesListExtJsRedirector.php index c1db18ec7..c5c5d1b33 100644 --- a/workflow/engine/methods/cases/casesListExtJsRedirector.php +++ b/workflow/engine/methods/cases/casesListExtJsRedirector.php @@ -1,11 +1,7 @@ '); -} -if(key_exists('form', $_GET) && $_GET['form']){ - header( 'location:' . $_SESSION['server'] . $_SESSION['PMCase'] ); -}else if(key_exists('processmap', $_GET) && $_GET['processmap']){ - header( 'location:' . $_SESSION['server'] . $_SESSION['PMProcessmap'] ); -}else if(key_exists('uploaded', $_GET) && $_GET['uploaded']){ - header( 'location:' . $_SESSION['server'] . $_SESSION['PMUploadedDocuments'] ); -} else if(key_exists('generated', $_GET) && $_GET['generated']){ - header( 'location:' . $_SESSION['server'] . $_SESSION['PMGeneratedDocuments'] ); -} diff --git a/workflow/public_html/pmGmail/sso.php b/workflow/public_html/pmGmail/sso.php deleted file mode 100644 index 10498f04d..000000000 --- a/workflow/public_html/pmGmail/sso.php +++ /dev/null @@ -1,132 +0,0 @@ -error->message); -} - -//getting the enviroment -$enviroment = $decodedResp->enviroment; - -if (count($decodedResp->user) > 1) { - echo Bootstrap::LoadTranslation('ID_EMAIL_MORE_THAN_ONE_USER'); - die; -} else if (count($decodedResp->user) < 1) { - echo Bootstrap::LoadTranslation('ID_USER_NOT_FOUND'); - die; -} - -//validationg if there is an actual PM session -if (!isset($_SESSION['USER_LOGGED']) || $_SESSION['USER_LOGGED'] != $decodedResp->user['0']->USR_UID) { - $url = 'https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=' . $gmailToken; - - // init curl object - $ch = curl_init(); - // define options - $optArray = array( - CURLOPT_URL => $url, - CURLOPT_RETURNTRANSFER => true, - CURLOPT_SSL_VERIFYPEER => false, - CURLOPT_SSL_VERIFYHOST => false - ); - // apply those options - curl_setopt_array($ch, $optArray); - // execute request and get response - $result = curl_exec($ch); - $response = (G::json_decode($result)); - curl_close($ch); - - //First validate if this user (mail) corresponds to a PM user - if (isset($response->email) && ($gmail == $response->email)) { - //If the email corresponds I get the username and with the gmail user_id the session is created. - if ($decodedResp->user['0']->USR_STATUS == "ACTIVE") { - //User Active! lets create the Session - @session_destroy(); - session_start(); - session_regenerate_id(); - - $cookieOptions = Bootstrap::buildCookieOptions(['expires' => time() + (24 * 60 * 60), 'path' => '/sys' . $enviroment, 'httponly' => true]); - setcookie('workspaceSkin', $enviroment, $cookieOptions); - - $_SESSION = array(); - $_SESSION['phpLastFileFound'] = ''; - $_SESSION['USERNAME_PREVIOUS1'] = $decodedResp->user['0']->USR_USERNAME; - $_SESSION['USERNAME_PREVIOUS2'] = $decodedResp->user['0']->USR_USERNAME; - $_SESSION['WORKSPACE'] = $pmws; - $_SESSION['USR_FULLNAME'] = $decodedResp->user['0']->USR_FIRSTNAME . ' ' . $decodedResp->user['0']->USR_LASTNAME; - $_SESSION['__sw__'] = 1; - initUserSession( - $decodedResp->user['0']->USR_UID, $decodedResp->user['0']->USR_USERNAME - ); - //session created - } else { - echo Bootstrap::LoadTranslation('ID_USER_NOT_ACTIVE'); - die; - } - } else { - echo Bootstrap::LoadTranslation('ID_USER_DOES_NOT_CORRESPOND'); - die; - } -} - -$_SESSION['server'] = 'https://' . $server . '/sys' . $pmws . '/en/' . $enviroment . '/'; -$_SESSION['PMCase'] = 'cases/cases_Open?APP_UID=' . $appUid . '&DEL_INDEX=' . $delIndex . '&action=' . $action . '&gmail=1'; -$_SESSION['PMProcessmap'] = 'designer?prj_uid=' . $proUid . '&prj_readonly=true&app_uid=' . $appUid; -$_SESSION['PMUploadedDocuments'] = 'cases/ajaxListener?action=uploadedDocuments'; -$_SESSION['PMGeneratedDocuments'] = 'cases/casesGenerateDocumentPage_Ajax.php?actionAjax=casesGenerateDocumentPage'; - -header('location:' . 'templateForm.php'); - diff --git a/workflow/public_html/pmGmail/templateForm.php b/workflow/public_html/pmGmail/templateForm.php deleted file mode 100644 index bd162aac4..000000000 --- a/workflow/public_html/pmGmail/templateForm.php +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - Interface Processmaker - - - - - - - - -
- - -
-
- -
-
-
- - - diff --git a/workflow/public_html/pmGmail/uninstall.php b/workflow/public_html/pmGmail/uninstall.php deleted file mode 100644 index 0166822d7..000000000 --- a/workflow/public_html/pmGmail/uninstall.php +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - Open Source Workflow Software & Business Process Management BPM - - - - - - - - - - - - - - - - - - - -
-
-
-
-
- -
-

ProcessMaker Google Integration

-

- The ProcessMaker Google Integration extension and components have been uninstalled from your Gmail Acccount. -

-
- -
-
-
- -
- Uninstalling... -
Uninstalling ...
-
- - - - -