This commit is contained in:
Paula Quispe
2019-07-10 08:43:16 -04:00
parent a07867510d
commit 1f83aab20e
10 changed files with 82 additions and 12 deletions

5
workflow/engine/methods/users/usersInit.php Normal file → Executable file
View File

@@ -27,6 +27,9 @@ $mul = substr($UPLOAD_MAX_SIZE, - 1);
$mul = ($mul == 'M' ? 1048576 : ($mul == 'K' ? 1024 : ($mul == 'G' ? 1073741824 : 1)));
$uploadMaxSize = (int) $UPLOAD_MAX_SIZE * $mul;
//We need to use the following abbreviations: Bytes, KB, MB, GB
$maxFileSize = changeAbbreviationOfDirectives(ini_get('upload_max_filesize'));
if ($postMaxSize < $uploadMaxSize) {
$uploadMaxSize = $postMaxSize;
}
@@ -58,7 +61,7 @@ $oHeadPublisher->assign('infoMode', true);
$oHeadPublisher->assign('EDITPROFILE', 1);
$oHeadPublisher->assign('canEdit', $canEdit);
$oHeadPublisher->assign('canEditCalendar', $canEditCalendar);
$oHeadPublisher->assign('MAX_FILES_SIZE', ' (' . $UPLOAD_MAX_SIZE . ') ');
$oHeadPublisher->assign('MAX_FILES_SIZE', ' (' . $maxFileSize . ') ');
$oHeadPublisher->assign('MODE', '');
$oHeadPublisher->assign('SYSTEM_TIME_ZONE', $arraySystemConfiguration['time_zone']);
$oHeadPublisher->assign('TIME_ZONE_DATA', array_map(function ($value) {