Removing deprecated references and files
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user