Merged in marcoAntonioNina/processmaker (pull request #1024)
Improvement generate file support
This commit is contained in:
@@ -5565,7 +5565,7 @@ class G
|
||||
$clean = trim(str_replace($strip, "", strip_tags($string)));
|
||||
$clean = preg_replace('/\s+/', "-", $clean);
|
||||
$clean = ($alpha) ? preg_replace("/[^a-zA-Z0-9]/", "", $clean) : $clean ;
|
||||
$clean = ($force_lowercase) ? (function_exists('mb_strtolower')) ? mb_strtolower($clean, 'UTF-8') : strtolower($clean) : $clean;
|
||||
$clean = ($lowercase) ? (function_exists('mb_strtolower')) ? mb_strtolower($clean, 'UTF-8') : strtolower($clean) : $clean;
|
||||
return $clean;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1368,7 +1368,14 @@ class adminProxy extends HttpProxyController
|
||||
|
||||
//License Information:
|
||||
$activeLicense = $licenseManager->getActiveLicense();
|
||||
$params['license'] = $licenseManager;
|
||||
$licenseInfo = array();
|
||||
$noInclude = array('licensedfeaturesList', 'result', 'serial');
|
||||
foreach ($licenseManager as $index => $value) {
|
||||
if (!in_array($index, $noInclude)) {
|
||||
$licenseInfo[$index] = G::sanitizeInput($value);
|
||||
}
|
||||
}
|
||||
$params['license'] = $licenseInfo;
|
||||
|
||||
//Operative System version (Linux, Windows)
|
||||
try {
|
||||
@@ -1391,9 +1398,9 @@ class adminProxy extends HttpProxyController
|
||||
//ProcessMaker Version
|
||||
$params['pmVersion'] = System::getVersion();
|
||||
if (file_exists(PATH_DATA. 'log/upgrades.log')) {
|
||||
$params['pmUpgrade'] = file_get_contents(PATH_DATA. 'log/upgrades.log', 'r');
|
||||
$params['pmUpgrade'] = serialize(file_get_contents(PATH_DATA. 'log/upgrades.log', 'r'));
|
||||
} else {
|
||||
$params['pmUpgrade'] = G::LoadTranslation('ID_UPGRADE_NEVER_UPGRADE');
|
||||
$params['pmUpgrade'] = serialize(G::LoadTranslation('ID_UPGRADE_NEVER_UPGRADE'));
|
||||
}
|
||||
|
||||
//Database server Version (MySQL version)
|
||||
|
||||
Reference in New Issue
Block a user