PM-1006 Renombrar los nombres de las variables que guardan la info de los workspaces SOLVED
This commit is contained in:
@@ -1377,7 +1377,7 @@ class adminProxy extends HttpProxyController
|
|||||||
$licenseInfo[$index] = G::sanitizeInput($value);
|
$licenseInfo[$index] = G::sanitizeInput($value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$params['license'] = $licenseInfo;
|
$params['l'] = $licenseInfo;
|
||||||
|
|
||||||
//Operative System version (Linux, Windows)
|
//Operative System version (Linux, Windows)
|
||||||
try {
|
try {
|
||||||
@@ -1391,27 +1391,27 @@ class adminProxy extends HttpProxyController
|
|||||||
$os .= " (" . PHP_OS . ")";
|
$os .= " (" . PHP_OS . ")";
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
}
|
}
|
||||||
$params['system'] = $os;
|
$params['s'] = $os;
|
||||||
|
|
||||||
//On premise or cloud
|
//On premise or cloud
|
||||||
$licInfo = $oServerConf->getProperty( 'LICENSE_INFO' );
|
$licInfo = $oServerConf->getProperty( 'LICENSE_INFO' );
|
||||||
$params['licenseType'] = isset($licInfo[SYS_SYS]) ? isset($licInfo[SYS_SYS]['TYPE'])? $licInfo[SYS_SYS]['TYPE'] : '' : '';
|
$params['lt'] = isset($licInfo[SYS_SYS]) ? isset($licInfo[SYS_SYS]['TYPE'])? $licInfo[SYS_SYS]['TYPE'] : '' : '';
|
||||||
|
|
||||||
//ProcessMaker Version
|
//ProcessMaker Version
|
||||||
$params['pmVersion'] = System::getVersion();
|
$params['v'] = System::getVersion();
|
||||||
if (file_exists(PATH_DATA. 'log/upgrades.log')) {
|
if (file_exists(PATH_DATA. 'log/upgrades.log')) {
|
||||||
$params['pmUpgrade'] = serialize(file_get_contents(PATH_DATA. 'log/upgrades.log', 'r'));
|
$params['pmu'] = serialize(file_get_contents(PATH_DATA. 'log/upgrades.log', 'r'));
|
||||||
} else {
|
} else {
|
||||||
$params['pmUpgrade'] = serialize(G::LoadTranslation('ID_UPGRADE_NEVER_UPGRADE'));
|
$params['pmu'] = serialize(G::LoadTranslation('ID_UPGRADE_NEVER_UPGRADE'));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Database server Version (MySQL version)
|
//Database server Version (MySQL version)
|
||||||
$installer = new Installer();
|
$installer = new Installer();
|
||||||
$systemInfo = $installer->getSystemInfo();
|
$systemInfo = $installer->getSystemInfo();
|
||||||
try {
|
try {
|
||||||
$params['dbVersion'] = mysql_get_server_info();
|
$params['mysql'] = mysql_get_server_info();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$params['dbVersion'] = '';
|
$params['mysql'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
//PHP Version
|
//PHP Version
|
||||||
@@ -1445,7 +1445,7 @@ class adminProxy extends HttpProxyController
|
|||||||
$plugins[] = $plugin;
|
$plugins[] = $plugin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$params['plugins'] = $plugins;
|
$params['pl'] = $plugins;
|
||||||
|
|
||||||
//Number of Users registered in PM. Including LDAP users and PM users.
|
//Number of Users registered in PM. Including LDAP users and PM users.
|
||||||
require_once ("classes/model/RbacUsers.php");
|
require_once ("classes/model/RbacUsers.php");
|
||||||
@@ -1465,12 +1465,12 @@ class adminProxy extends HttpProxyController
|
|||||||
$users['USR_AUTH_TYPE'] = $row['USERS_NUMBER'];
|
$users['USR_AUTH_TYPE'] = $row['USERS_NUMBER'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$params["users"] =$users;
|
$params['u'] = $users;
|
||||||
|
|
||||||
//Number of cases.
|
//Number of cases.
|
||||||
$oSequences = new Sequences();
|
$oSequences = new Sequences();
|
||||||
$maxNumber = $oSequences->getSequeceNumber("APP_NUMBER");
|
$maxNumber = $oSequences->getSequeceNumber("APP_NUMBER");
|
||||||
$params["cases"] = $maxNumber - 1;
|
$params['c'] = $maxNumber - 1;
|
||||||
|
|
||||||
//Number of active processes.
|
//Number of active processes.
|
||||||
$criteria = new Criteria( "workflow" );
|
$criteria = new Criteria( "workflow" );
|
||||||
@@ -1484,11 +1484,11 @@ class adminProxy extends HttpProxyController
|
|||||||
$row = $rs->getRow();
|
$row = $rs->getRow();
|
||||||
$process[$row['PRO_STATUS']] = $row['NUMBER_PROCESS'];
|
$process[$row['PRO_STATUS']] = $row['NUMBER_PROCESS'];
|
||||||
}
|
}
|
||||||
$params["process"] = $process;
|
$params['p'] = $process;
|
||||||
|
|
||||||
//Country/city (Timezone)
|
//Country/city (Timezone)
|
||||||
$params["Timezone"] = (defined('TIME_ZONE') && TIME_ZONE != "Unknown") ? TIME_ZONE : date_default_timezone_get();
|
$params['t'] = (defined('TIME_ZONE') && TIME_ZONE != "Unknown") ? TIME_ZONE : date_default_timezone_get();
|
||||||
$params["countWorkspace"] = count(System::listWorkspaces());
|
$params['w'] = count(System::listWorkspaces());
|
||||||
|
|
||||||
$support = PATH_DATA_SITE . G::sanitizeString($licenseManager->info['FIRST_NAME'] . '-' . $licenseManager->info['LAST_NAME'] . '-' . SYS_SYS . '-' . date('YmdHis'), false, false) . '.spm';
|
$support = PATH_DATA_SITE . G::sanitizeString($licenseManager->info['FIRST_NAME'] . '-' . $licenseManager->info['LAST_NAME'] . '-' . SYS_SYS . '-' . date('YmdHis'), false, false) . '.spm';
|
||||||
file_put_contents($support, serialize($params));
|
file_put_contents($support, serialize($params));
|
||||||
|
|||||||
Reference in New Issue
Block a user