mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
Get PHP Configuration for upload limit and display in /admin summary site
This commit is contained in:
parent
df23f4f14f
commit
24117c24ce
2 changed files with 19 additions and 0 deletions
|
@ -908,6 +908,7 @@ function admin_page_summary(App $a)
|
|||
|
||||
$queues = ['label' => L10n::t('Message queues'), 'queue' => $queue, 'workerq' => $workerqueue];
|
||||
|
||||
$php_settings = [L10n::t('PHP Values'), ['upload_max_filesize' => ini_get('upload_max_filesize'), 'post_max_size' => ini_get('post_max_size'), 'memory_limit' => ini_get('memory_limit')]];
|
||||
|
||||
$t = get_markup_template('admin/summary.tpl');
|
||||
return replace_macros($t, [
|
||||
|
@ -923,6 +924,7 @@ function admin_page_summary(App $a)
|
|||
'$codename' => FRIENDICA_CODENAME,
|
||||
'$build' => Config::get('system', 'build'),
|
||||
'$addons' => [L10n::t('Active addons'), $a->addons],
|
||||
'$php' => $php_settings,
|
||||
'$showwarning' => $showwarning,
|
||||
'$warningtext' => $warningtext
|
||||
]);
|
||||
|
|
|
@ -57,6 +57,23 @@
|
|||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 admin-summary-label-name text-muted">{{$version.0}}</div>
|
||||
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 admin-summary-entry">{{$platform}} '{{$codename}}' {{$version.1}} - {{$build}}</div>
|
||||
</div>
|
||||
|
||||
{{* PHP Values. *}}
|
||||
<div id="admin-summary-php" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 admin-summary">
|
||||
<hr class="admin-summary-separator">
|
||||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 admin-summary-label-name text-muted">{{$php.0}}</div>
|
||||
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 admin-summary-entry">
|
||||
<table class="table">
|
||||
<thead><tr><td>Configuration</td><td>Value</td></tr></thead>
|
||||
<tbody>
|
||||
{{foreach $php.1 as $k => $p}}
|
||||
<tr><td>{{$k}}</td><td>{{$p}}</td></tr>
|
||||
{{/foreach}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
|
Loading…
Reference in a new issue