Removing deprecated references and files
This commit is contained in:
@@ -17,7 +17,6 @@ use EmailServerPeer;
|
||||
use Exception;
|
||||
use G;
|
||||
use PmDynaform;
|
||||
use PMLicensedFeatures;
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Model\AbeConfiguration as AbeConfigurationModel;
|
||||
use ProcessMaker\Model\EmailServerModel;
|
||||
@@ -39,9 +38,6 @@ class ActionsByEmail
|
||||
|
||||
public function saveConfiguration($params)
|
||||
{
|
||||
if (PMLicensedFeatures
|
||||
::getSingleton()
|
||||
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
|
||||
$feature = $params['ActionsByEmail'];
|
||||
switch ($feature['type']) {
|
||||
case 'configuration':
|
||||
@@ -65,18 +61,14 @@ class ActionsByEmail
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function loadConfiguration($params)
|
||||
{
|
||||
if ($params['type'] != 'activity'
|
||||
|| !PMLicensedFeatures
|
||||
::getSingleton()
|
||||
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0='))
|
||||
{
|
||||
if ($params['type'] != 'activity') {
|
||||
return false;
|
||||
}
|
||||
|
||||
require_once 'classes/model/AbeConfiguration.php';
|
||||
|
||||
$criteria = new Criteria();
|
||||
|
||||
@@ -17,7 +17,6 @@ use Illuminate\Support\Facades\Crypt;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use PhpImap\IncomingMail;
|
||||
use PhpImap\Mailbox;
|
||||
use PMLicensedFeatures;
|
||||
use ProcessMaker\BusinessModel\ActionsByEmail;
|
||||
use ProcessMaker\BusinessModel\EmailServer;
|
||||
use ProcessMaker\ChangeLog\ChangeLog;
|
||||
@@ -60,9 +59,6 @@ class ResponseReader
|
||||
G::outRes(G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", ['php_imap']) . "\n");
|
||||
return;
|
||||
}
|
||||
if (PMLicensedFeatures
|
||||
::getSingleton()
|
||||
->verifyfeature('zLhSk5TeEQrNFI2RXFEVktyUGpnczV1WEJNWVp6cjYxbTU3R29mVXVZNWhZQT0=')) {
|
||||
$criteriaAbe = new Criteria();
|
||||
$criteriaAbe->add(AbeConfigurationPeer::ABE_TYPE, "RESPONSE");
|
||||
$resultAbe = AbeConfigurationPeer::doSelectRS($criteriaAbe);
|
||||
@@ -71,7 +67,6 @@ class ResponseReader
|
||||
$dataAbe = $resultAbe->getRow();
|
||||
$this->getAllEmails($dataAbe);
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$message = $e->getMessage();
|
||||
$context = $this->case;
|
||||
|
||||
@@ -19,7 +19,6 @@ use G;
|
||||
use GulliverBasePeer;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use InputDocument;
|
||||
use PmLicenseManager;
|
||||
use PMmemcached;
|
||||
use Process;
|
||||
use ProcessMaker\BusinessModel\Cases as BusinessModelCases;
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace ProcessMaker\BusinessModel;
|
||||
|
||||
use G;
|
||||
use Criteria;
|
||||
use PMLicensedFeatures;
|
||||
use ProcessMaker\Model\Delegation;
|
||||
use ProcessMaker\Model\User;
|
||||
use UsersPeer;
|
||||
@@ -303,11 +302,8 @@ class Lists
|
||||
]));
|
||||
break;
|
||||
case 'ListConsolidated':
|
||||
$licensedFeatures = PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
|
||||
$total = $this->$listObject->getCountList($userId);
|
||||
array_push($response, (array('count' => $total, 'item' => $item)));
|
||||
}
|
||||
$total = $this->$listObject->getCountList($userId);
|
||||
array_push($response, (array('count' => $total, 'item' => $item)));
|
||||
break;
|
||||
default:
|
||||
$totalInbox = $this->$listObject->getCountList($userId);
|
||||
|
||||
@@ -35,9 +35,6 @@ class GranularExporter
|
||||
public function export($objectList)
|
||||
{
|
||||
try {
|
||||
if (\PMLicensedFeatures::getSingleton()->verifyfeature
|
||||
("jXsSi94bkRUcVZyRStNVExlTXhEclVadGRRcG9xbjNvTWVFQUF3cklKQVBiVT0=")
|
||||
) {
|
||||
$exportObject = new ExportObjects();
|
||||
$objectList = $exportObject->mapObjectList($objectList);
|
||||
$this->beforeExport($objectList);
|
||||
@@ -49,11 +46,6 @@ class GranularExporter
|
||||
$migrator->afterExport();
|
||||
}
|
||||
return $this->publish();
|
||||
} else {
|
||||
$exception = new ExportException();
|
||||
$exception->setNameException(\G::LoadTranslation('ID_NO_LICENSE_SELECTIVEIMPORTEXPORT_ENABLED'));
|
||||
throw($exception);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
|
||||
@@ -186,9 +186,6 @@ class GranularImporter
|
||||
public function import($objectList)
|
||||
{
|
||||
try {
|
||||
if (\PMLicensedFeatures::getSingleton()->verifyfeature
|
||||
("jXsSi94bkRUcVZyRStNVExlTXhEclVadGRRcG9xbjNvTWVFQUF3cklKQVBiVT0=")
|
||||
) {
|
||||
$objectList = $this->reorderImportOrder($objectList);
|
||||
foreach ($objectList as $data) {
|
||||
$objClass = $this->factory->create($data['name']);
|
||||
@@ -200,11 +197,6 @@ class GranularImporter
|
||||
$objClass->afterImport($dataImport);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$exception = new ImportException();
|
||||
$exception->setNameException(\G::LoadTranslation('ID_NO_LICENSE_SELECTIVEIMPORTEXPORT_ENABLED'));
|
||||
throw($exception);
|
||||
}
|
||||
|
||||
} catch (\Exception $e) {
|
||||
if (get_class($e) === 'ProcessMaker\BusinessModel\Migrator\ImportException') {
|
||||
|
||||
@@ -206,14 +206,7 @@ class Pmgmail {
|
||||
*/
|
||||
public function hasGmailFeature()
|
||||
{
|
||||
require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.licensedFeatures.php");
|
||||
|
||||
$licensedFeatures = new \PMLicensedFeatures();
|
||||
if (!$licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||
return false;
|
||||
}else {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace ProcessMaker\BusinessModel;
|
||||
use CodeScanner;
|
||||
use Exception;
|
||||
use G;
|
||||
use PMLicensedFeatures;
|
||||
use Triggers as ModelTriggers;
|
||||
|
||||
class Trigger
|
||||
|
||||
@@ -13,7 +13,6 @@ use Event;
|
||||
use Exception;
|
||||
use G;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use PMLicensedFeatures;
|
||||
use ProcessMaker\BusinessModel\Cases\InputDocument;
|
||||
use ProcessMaker\BusinessModel\Pmgmail;
|
||||
use ProcessMaker\ChangeLog\ChangeLog;
|
||||
|
||||
@@ -376,7 +376,6 @@ class Installer
|
||||
}
|
||||
}
|
||||
|
||||
//ACTIVE ENTERPRISE
|
||||
ini_set('max_execution_time', '0');
|
||||
|
||||
$serv = 'http://';
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace ProcessMaker\Model;
|
||||
|
||||
use App\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LicenseManager extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = "LICENSE_MANAGER";
|
||||
protected $primaryKey = "LICENSE_UID";
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace ProcessMaker\Plugins;
|
||||
|
||||
use Archive_Tar;
|
||||
use enterprisePlugin;
|
||||
use Exception;
|
||||
use G;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
@@ -151,7 +150,6 @@ class PluginRegistry
|
||||
public function setupPlugins()
|
||||
{
|
||||
try {
|
||||
require_once(PATH_CORE . "methods" . PATH_SEP . "enterprise" . PATH_SEP . "enterprise.php");
|
||||
$iPlugins = 0;
|
||||
/** @var PluginDetail $pluginDetail */
|
||||
foreach ($this->_aPluginDetails as $pluginDetail) {
|
||||
@@ -159,8 +157,7 @@ class PluginRegistry
|
||||
if (!empty($pluginDetail->getFile()) && file_exists($pluginDetail->getFile())) {
|
||||
$arrayFileInfo = pathinfo($pluginDetail->getFile());
|
||||
$Filename = (
|
||||
($pluginDetail->getNamespace() == "enterprise") ?
|
||||
PATH_CORE . "methods" . PATH_SEP . "enterprise" . PATH_SEP :
|
||||
(
|
||||
PATH_PLUGINS
|
||||
) . $arrayFileInfo["basename"];
|
||||
if (!file_exists($Filename)) {
|
||||
@@ -169,7 +166,6 @@ class PluginRegistry
|
||||
require_once $Filename;
|
||||
$className = $pluginDetail->getClassName();
|
||||
if (class_exists($className)) {
|
||||
/** @var enterprisePlugin|\PMPlugin $Plugin */
|
||||
$Plugin = new $className($pluginDetail->getNamespace(), $pluginDetail->getFile());
|
||||
$this->_aPlugins[$pluginDetail->getNamespace()] = $Plugin;
|
||||
$iPlugins++;
|
||||
@@ -237,7 +233,6 @@ class PluginRegistry
|
||||
$currentPlugin->setEnabled(true);
|
||||
//PluginsRegistry::enable($Namespace);
|
||||
$className = $currentPlugin->getClassName();
|
||||
/** @var enterprisePlugin $Plugin */
|
||||
if (class_exists($className)) {
|
||||
$plugin = new $className(
|
||||
$currentPlugin->getNamespace(),
|
||||
@@ -481,7 +476,6 @@ class PluginRegistry
|
||||
/** @var PluginDetail $detail */
|
||||
$detail = $this->_aPluginDetails[$Namespace];
|
||||
$className = $detail->getClassName();
|
||||
/** @var enterprisePlugin $oPlugin */
|
||||
$oPlugin = new $className($detail->getNamespace(), $detail->getFile());
|
||||
$oPlugin->registerPmFunction();
|
||||
$detail->setEnabled(false);
|
||||
@@ -852,9 +846,7 @@ class PluginRegistry
|
||||
$classFile = '';
|
||||
/** @var FolderDetail $folder */
|
||||
foreach ($this->_aFolders as $folder) {
|
||||
$fname = $folder->equalNamespaceTo('enterprise') ?
|
||||
PATH_CORE . 'classes' . PATH_SEP . 'class.' . $folder->getFolderName() . '.php' :
|
||||
PATH_PLUGINS . $folder->getFolderName() . PATH_SEP . 'class.' . $folder->getFolderName() . '.php';
|
||||
$fname = PATH_PLUGINS . $folder->getFolderName() . PATH_SEP . 'class.' . $folder->getFolderName() . '.php';
|
||||
if ($trigger->equalNamespaceTo($folder->getNamespace()) && file_exists($fname)) {
|
||||
$found = true;
|
||||
$classFile = $fname;
|
||||
@@ -895,9 +887,7 @@ class PluginRegistry
|
||||
/** @var FolderDetail $folder */
|
||||
foreach ($this->_aFolders as $folder) {
|
||||
$folderName = $folder->getFolderName();
|
||||
$fileName = $folder->getNamespace() == 'enterprise' ?
|
||||
PATH_CORE . 'classes' . PATH_SEP . 'class.' . $folderName . '.php' :
|
||||
PATH_PLUGINS . $folderName . PATH_SEP . 'class.' . $folderName . '.php';
|
||||
$fileName = PATH_PLUGINS . $folderName . PATH_SEP . 'class.' . $folderName . '.php';
|
||||
if ($trigger->getNamespace() == $folder->getNamespace() && file_exists($fileName)) {
|
||||
$found = true;
|
||||
}
|
||||
@@ -1603,26 +1593,6 @@ class PluginRegistry
|
||||
return $plugin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the plugin name is Enterprise Plugin
|
||||
*
|
||||
* @param string $pluginName Plugin name
|
||||
* @param string $path Path to plugin
|
||||
*
|
||||
* @return bool Returns TRUE when plugin name is Enterprise Plugin, FALSE otherwise
|
||||
*/
|
||||
public function isEnterprisePlugin($pluginName, $path = null)
|
||||
{
|
||||
$path = (!is_null($path) && $path != '') ? rtrim($path, '/\\') . PATH_SEP : PATH_PLUGINS;
|
||||
$pluginFile = $pluginName . '.php';
|
||||
|
||||
//Return
|
||||
return preg_match(
|
||||
'/^.*class\s+' . $pluginName . 'Plugin\s+extends\s+(?:enterprisePlugin)\s*\{.*$/i',
|
||||
str_replace(["\n", "\r", "\t"], ' ', file_get_contents($path . $pluginFile))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Registry in an array routes for js or css files.
|
||||
* @param string $pluginName
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace ProcessMaker\Services\Api;
|
||||
|
||||
use Exception;
|
||||
use Luracast\Restler\RestException;
|
||||
use PMLicensedFeatures;
|
||||
use ProcessMaker\BusinessModel\Cases\CasesList;
|
||||
use ProcessMaker\BusinessModel\DataBaseConnection;
|
||||
use ProcessMaker\BusinessModel\Language;
|
||||
|
||||
@@ -11,7 +11,7 @@ class Authentication
|
||||
*/
|
||||
public function postTokenAccountGmail($request_data)
|
||||
{
|
||||
$responseToken = array('msg' => \G::LoadTranslation( 'ID_UPGRADE_ENTERPRISE' ));
|
||||
$responseToken = array('msg' => 'Upgrade');
|
||||
|
||||
//Lets verify the gmail token
|
||||
$url = 'https://www.googleapis.com/oauth2/v1/tokeninfo?access_token='.$request_data['token'];
|
||||
|
||||
@@ -6,7 +6,7 @@ debug = 1
|
||||
|
||||
[api]
|
||||
version = 1.0
|
||||
vendor = "ProcessMaker - Michelangelo (Enterprise)"
|
||||
vendor = "ProcessMaker - Michelangelo"
|
||||
|
||||
[alias: test]
|
||||
test2 = "ProcessMaker\Services\Api\Test2"
|
||||
|
||||
Reference in New Issue
Block a user