Skip to content

Commit

Permalink
Add "Operating system" and "Memory limit" to the settings server info…
Browse files Browse the repository at this point in the history
… page
  • Loading branch information
Usbac committed Jan 14, 2024
1 parent 66297bb commit 17682f1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/views/admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@
</div>
<div class="grid tab-content" data-tab="#info">
<div class="card v-spacing">
<div class="input-group">
<label><?= t('operating_system') ?></label>
<span><?= e(php_uname('s') . ' ' . php_uname('r')) ?></span>
</div>
<div class="input-group">
<label><?= t('php_version') ?></label>
<span><?= e(phpversion()) ?></span>
Expand All @@ -159,9 +163,13 @@
<span><?= e(rtrim(\Aurora\System\Helper::getPath(), '/')) ?></span>
</div>
<div class="input-group">
<label><?= t('max_upload_file_size') ?></label>
<span class="description"><?= t('max_upload_file_size_description', false) ?></span>
<span><?= e(\Aurora\App\Media::getFileSize(\Aurora\App\Media::getMaxUploadFileSize())) ?></span>
<label><?= t('memory_limit') ?></label>
<span><?= e(\Aurora\System\Helper::getByteSize(\Aurora\System\Helper::getPHPSize(ini_get('memory_limit')))) ?></span>
</div>
<div class="input-group">
<label><?= t('file_size_upload_limit') ?></label>
<span class="description"><?= t('file_size_upload_limit_description', false) ?></span>
<span><?= e(\Aurora\System\Helper::getByteSize(\Aurora\App\Media::getMaxUploadFileSize())) ?></span>
</div>
</div>
</div>
Expand Down

0 comments on commit 17682f1

Please sign in to comment.