|
|
|
@ -103,6 +103,8 @@ if ($needUpgrade) { |
|
|
|
} else { |
|
|
|
// information about storage capacities
|
|
|
|
$storageInfo=OC_Helper::getStorageInfo($dir); |
|
|
|
$freeSpace=OCP\Util::freeSpace($dir); |
|
|
|
$uploadLimit=OCP\Util::uploadLimit(); |
|
|
|
$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir); |
|
|
|
$publicUploadEnabled = \OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes'); |
|
|
|
// if the encryption app is disabled, than everything is fine (INIT_SUCCESSFUL status code)
|
|
|
|
@ -136,6 +138,8 @@ if ($needUpgrade) { |
|
|
|
$tmpl->assign('trashEmpty', $trashEmpty); |
|
|
|
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize); |
|
|
|
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); |
|
|
|
$tmpl->assign('freeSpace', $freeSpace); |
|
|
|
$tmpl->assign('uploadLimit', $uploadLimit); |
|
|
|
$tmpl->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true))); |
|
|
|
$tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']); |
|
|
|
$tmpl->assign('isPublic', false); |
|
|
|
|