Upgrade PHP files

This commit is contained in:
Fernando Ontiveros
2025-03-28 13:16:06 +00:00
parent 7f3ee186de
commit 039ade9083
83 changed files with 96 additions and 745 deletions

View File

@@ -736,14 +736,12 @@ class InstallerModule extends Controller
$this->installLog(G::LoadTranslation('ID_CREATING', SYS_LANG, [$db_file]));
file_put_contents($db_file, $dbText);
/*----------------------------------********---------------------------------*/
//Generate the env.ini file
$envIniFile = $path_site . 'env.ini';
$content = 'system_utc_time_zone = 1' . "\n";
$this->installLog(G::LoadTranslation('ID_CREATING', SYS_LANG, [$envIniFile]));
file_put_contents($envIniFile, $content);
/*----------------------------------********---------------------------------*/
//Generate the databases.php file
$databases_file = $path_site . 'databases.php';

View File

@@ -271,10 +271,7 @@ class Admin extends Controller
$properties = array ();
$ee = '';
/*----------------------------------********---------------------------------*/
// In the community version this text must not be presented
$ee = ' - Enterprise Edition';
/*----------------------------------********---------------------------------*/
$systemName = 'ProcessMaker';
if (defined('SYSTEM_NAME')) {
$systemName = SYSTEM_NAME;

View File

@@ -41,26 +41,14 @@ class Designer extends Controller
$clientToken = $this->getCredentials($httpData);
$debug = false; //System::isDebugMode();
$consolidated = 0;
$consolidated = 1;
$enterprise = 0;
$distribution = 0;
$distribution = 1;
$usrUid = (isset($RBAC->userObj)) ? $RBAC->userObj->getUsrUid() : '';
$userProperties = UsersPropertiesPeer::retrieveByPk($usrUid);
/*----------------------------------********---------------------------------*/
$licensedFeatures = PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
$consolidated = 1;
}
$enterprise = 1;
if ($licensedFeatures->verifyfeature("Jb0N3dSZHVhZ1JNOEFZaElqdm15Y050Wmh5S0FEVEI0ckQ=")) {
$distribution = 1;
}
/*----------------------------------********---------------------------------*/
$this->setVar('prj_uid', htmlspecialchars($proUid));
$this->setVar('app_uid', htmlspecialchars($appUid));
$this->setVar('consolidated', $consolidated);

View File

@@ -482,8 +482,7 @@ class Home extends Controller
$dataList['category'] = $category;
$dataList['action'] = $type;
$dataList['dir'] = 'DESC';
/*----------------------------------********---------------------------------*/
if (true) {
//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 = '';
@@ -512,16 +511,6 @@ class Home extends Controller
$list = new \ProcessMaker\BusinessModel\Lists();
$cases = $list->getList($listType, $dataList);
}
} else {
/*----------------------------------********---------------------------------*/
$case = new \ProcessMaker\BusinessModel\Cases();
$cases = $case->getList($dataList);
foreach ($cases['data'] as &$value) {
$value = array_change_key_case($value, CASE_UPPER);
}
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/
}
if (empty($cases) && $type == 'search') {

View File

@@ -722,10 +722,7 @@ class Main extends Controller
$properties = array ();
$ee = '';
/*----------------------------------********---------------------------------*/
// In the community version this text must not be presented
$ee = ' - Enterprise Edition';
/*----------------------------------********---------------------------------*/
$systemName = 'ProcessMaker';
if (defined('SYSTEM_NAME')) {
$systemName = SYSTEM_NAME;