Removing deprecated references and files
This commit is contained in:
@@ -1171,7 +1171,6 @@ class InstallerModule extends Controller
|
||||
* Upload translation .po file
|
||||
* Upload skin file
|
||||
* Upload plugin file
|
||||
* Active plugins to enterprise
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
@@ -1308,64 +1307,6 @@ class InstallerModule extends Controller
|
||||
$output = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
}
|
||||
|
||||
/**
|
||||
* Active plugins to enterprise
|
||||
*/
|
||||
|
||||
if (!defined("PATH_PM_ENTERPRISE")) {
|
||||
define("PATH_PM_ENTERPRISE", PATH_CORE . "/plugins/enterprise/");
|
||||
}
|
||||
set_include_path(PATH_PM_ENTERPRISE . PATH_SEPARATOR . get_include_path());
|
||||
require_once('classes/model/AddonsManager.php');
|
||||
|
||||
$plugins = glob(PATH_CORE . "plugins/*.php");
|
||||
foreach ($plugins as $value) {
|
||||
$dataPlugin = pathinfo($value);
|
||||
$namePlugin = $dataPlugin['filename'];
|
||||
if ($value !== 'enterprise') {
|
||||
$db_hostname = trim($_REQUEST['db_hostname']);
|
||||
$db_hostname = $filter->validateInput($db_hostname);
|
||||
$db_port = trim($_REQUEST['db_port']);
|
||||
$db_port = $filter->validateInput($db_port);
|
||||
$db_username = trim($_REQUEST['db_username']);
|
||||
$db_username = $filter->validateInput($db_username);
|
||||
$db_password = urlencode(trim($_REQUEST['db_password']));
|
||||
$db_password = urldecode($filter->validateInput($db_password));
|
||||
$wf = trim($_REQUEST['wfDatabase']);
|
||||
$wf = $filter->validateInput($wf);
|
||||
|
||||
$db_host = ($db_port != '' && $db_port != 3306) ? $db_hostname . ':' . $db_port : $db_hostname;
|
||||
|
||||
$row = DB::connection(self::CONNECTION_INSTALL)
|
||||
->table('ADDONS_MANAGER')
|
||||
->select('STORE_ID')
|
||||
->where('ADDON_NAME', $namePlugin)
|
||||
->toArray();
|
||||
|
||||
if ($row) {
|
||||
$ch = curl_init();
|
||||
$postData = [];
|
||||
$postData['action'] = "enable";
|
||||
$postData['addon'] = $namePlugin;
|
||||
$postData['store'] = $row['STORE_ID'];
|
||||
|
||||
curl_setopt($ch, CURLOPT_URL, "$serv/sys{$workspace}/{$lang}/{$skinName}/enterprise/addonsStoreAction");
|
||||
curl_setopt($ch, CURLOPT_HEADER, 0);
|
||||
curl_setopt($ch, CURLOPT_VERBOSE, 0);
|
||||
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
|
||||
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, 90);
|
||||
|
||||
$output = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1430,18 +1430,6 @@ class adminProxy extends HttpProxyController
|
||||
|
||||
$oServerConf = ServerConf::getSingleton();
|
||||
$pluginRegistry = PluginRegistry::loadSingleton();
|
||||
$licenseManager = PmLicenseManager::getSingleton();
|
||||
|
||||
//License Information:
|
||||
$activeLicense = $licenseManager->getActiveLicense();
|
||||
$licenseInfo = array();
|
||||
$noInclude = array('licensedfeaturesList', 'result', 'serial');
|
||||
foreach ($licenseManager as $index => $value) {
|
||||
if (!in_array($index, $noInclude)) {
|
||||
$licenseInfo[$index] = G::sanitizeInput($value);
|
||||
}
|
||||
}
|
||||
$params['l'] = $licenseInfo;
|
||||
|
||||
//Operative System version (Linux, Windows)
|
||||
try {
|
||||
@@ -1457,10 +1445,6 @@ class adminProxy extends HttpProxyController
|
||||
}
|
||||
$params['s'] = $os;
|
||||
|
||||
//On premise or cloud
|
||||
$licInfo = $oServerConf->getProperty( 'LICENSE_INFO' );
|
||||
$params['lt'] = isset($licInfo[config("system.workspace")]) ? isset($licInfo[config("system.workspace")]['TYPE'])? $licInfo[config("system.workspace")]['TYPE'] : '' : '';
|
||||
|
||||
//ProcessMaker Version
|
||||
$params['v'] = System::getVersion();
|
||||
if (file_exists(PATH_DATA. 'log/upgrades.log')) {
|
||||
@@ -1487,38 +1471,8 @@ class adminProxy extends HttpProxyController
|
||||
$params['php'] = $systemInfo->php->version;
|
||||
|
||||
//Apache - nginx - IIS Version
|
||||
|
||||
$params['serverSoftwareVersion'] = System::getServerVersion();
|
||||
|
||||
//Installed Plugins (license info?)
|
||||
$arrayAddon = array();
|
||||
|
||||
$eeData = Cache::get(config('system.workspace') . 'enterprise.ee', function () {
|
||||
if (file_exists(PATH_DATA_SITE . 'ee')) {
|
||||
return trim(file_get_contents(PATH_DATA_SITE . 'ee'));
|
||||
}
|
||||
return null;
|
||||
});
|
||||
if ($eeData) {
|
||||
$arrayAddon = unserialize($eeData);
|
||||
}
|
||||
|
||||
$plugins = array();
|
||||
foreach ($arrayAddon as $addon) {
|
||||
$sFileName = substr($addon["sFilename"], 0, strpos($addon["sFilename"], "-"));
|
||||
|
||||
if (file_exists(PATH_PLUGINS . $sFileName . ".php")) {
|
||||
$plugin = array();
|
||||
$addonDetails = $pluginRegistry->getPluginDetails($sFileName . ".php");
|
||||
$plugin['name'] = $addonDetails->getNamespace();
|
||||
$plugin['description'] = $addonDetails->getDescription();
|
||||
$plugin['version'] = $addonDetails->getVersion();
|
||||
$plugin['enable'] = $addonDetails->isEnabled();
|
||||
$plugins[] = $plugin;
|
||||
}
|
||||
}
|
||||
$params['pl'] = $plugins;
|
||||
|
||||
//Number of Users registered in PM. Including LDAP users and PM users.
|
||||
require_once("classes/model/RbacUsers.php");
|
||||
$criteria = new Criteria("rbac");
|
||||
@@ -1562,7 +1516,7 @@ class adminProxy extends HttpProxyController
|
||||
$params['t'] = (defined('TIME_ZONE') && TIME_ZONE != "Unknown") ? TIME_ZONE : date_default_timezone_get();
|
||||
$params['w'] = count(System::listWorkspaces());
|
||||
|
||||
$support = PATH_DATA_SITE . G::sanitizeString($licenseManager->info['FIRST_NAME'] . '-' . $licenseManager->info['LAST_NAME'] . '-' . config("system.workspace") . '-' . date('YmdHis'), false, false) . '.spm';
|
||||
$support = PATH_DATA_SITE . G::sanitizeString(config("system.workspace") . '-' . date('YmdHis'), false, false) . '.spm';
|
||||
file_put_contents($support, serialize($params));
|
||||
G::streamFile($support, true);
|
||||
G::rm_dir($support);
|
||||
|
||||
@@ -483,7 +483,6 @@ class Home extends Controller
|
||||
$dataList['action'] = $type;
|
||||
$dataList['dir'] = 'DESC';
|
||||
|
||||
//In enterprise version this block of code should always be executed
|
||||
//In community version this block of code is deleted and is executed the other
|
||||
$listType = '';
|
||||
if (!empty($type)) {
|
||||
|
||||
@@ -36,16 +36,6 @@ class Main extends Controller
|
||||
$this->setVar( 'workspace', !empty(config("system.workspace")) ? ucfirst( config("system.workspace") ) : '' );
|
||||
$this->setVar( 'user_avatar', 'users/users_ViewPhotoGrid?pUID=' . $_SESSION['USER_LOGGED'] . '&h=' . rand() );
|
||||
|
||||
// license notification
|
||||
$expireInLabel = '';
|
||||
|
||||
require_once("classes" . PATH_SEP . "class.pmLicenseManager.php");
|
||||
$pmLicenseManager = PmLicenseManager::getSingleton();
|
||||
$expireIn = $pmLicenseManager->getExpireIn();
|
||||
$expireInLabel = $pmLicenseManager->getExpireInLabel();
|
||||
|
||||
$this->setVar('licenseNotification', $expireInLabel);
|
||||
|
||||
// setting variables on javascript env.
|
||||
$this->setJSVar('meta', array('menu' => $this->getMenu()
|
||||
));
|
||||
|
||||
@@ -65,16 +65,8 @@ class pmGmail extends Controller
|
||||
$googleCertificate = $pmGoogle->getServiceAccountCertificate();
|
||||
$statusGmail = $pmGoogle->getServiceGmailStatus();
|
||||
$statusDrive = $pmGoogle->getServiceDriveStatus();
|
||||
$disableGmail = true;
|
||||
$disableDrive = true;
|
||||
|
||||
$licensedFeatures = PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||
$disableGmail = false;
|
||||
}
|
||||
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
|
||||
$disableDrive = false;
|
||||
}
|
||||
$disableGmail = false;
|
||||
$disableDrive = false;
|
||||
|
||||
$this->setJSVar('accountEmail', $accountEmail);
|
||||
$this->setJSVar('googleCertificate', $googleCertificate);
|
||||
|
||||
@@ -24,12 +24,6 @@ class StrategicDashboard extends Controller
|
||||
{
|
||||
global $RBAC;
|
||||
|
||||
$licensedFeatures = PMLicensedFeatures::getSingleton();
|
||||
if (!$licensedFeatures->verifyfeature('r19Vm5DK1UrT09MenlLYjZxejlhNUZ1b1NhV0JHWjBsZEJ6dnpJa3dTeWVLVT0=')) {
|
||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||
G::header('location: ../login/login');
|
||||
die;
|
||||
}
|
||||
$this->usrId = $RBAC->aUserInfo['USER_INFO']['USR_UID'];
|
||||
$user = new Users();
|
||||
$user = $user->load($RBAC->aUserInfo['USER_INFO']['USR_UID']);
|
||||
|
||||
Reference in New Issue
Block a user