* [ADD] syspass.log file and configuration backup can now be downloaded from Information tab

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-11-01 11:35:14 +01:00
parent ec97b603b0
commit e1f2f0b0f0
9 changed files with 187 additions and 28 deletions

View File

@@ -354,6 +354,11 @@ final class ConfigManagerController extends ControllerBase
$template->assign('missingExtensions', $this->extensionChecker->getMissing());
$template->assign('downloadRate', round(Util::getMaxDownloadChunk() / 1024 / 1024));
$isDemo = $this->configData->isDemoEnabled();
$template->assign('downloadConfigBackup', !$isDemo && $this->userData->getIsAdminApp());
$template->assign('downloadLog', !$isDemo && is_readable(LOG_FILE) && $this->userData->getIsAdminApp());
return new DataTab(__('Información'), $template);
}