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
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue