diff --git a/mod/admin.php b/mod/admin.php index d4fcc533f..562845ecc 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -909,6 +909,15 @@ function admin_page_summary(App $a) $queues = ['label' => L10n::t('Message queues'), 'queue' => $queue, 'workerq' => $workerqueue]; + $r = q("SHOW variables LIKE 'max_allowed_packet'"); + $max_allowed_packet = (($r) ? $r[0]['Value'] : 0); + + $server_settings = ['label' => L10n::t('Server Settings'), + 'php' => ['upload_max_filesize' => ini_get('upload_max_filesize'), + 'post_max_size' => ini_get('post_max_size'), + 'memory_limit' => ini_get('memory_limit')], + 'mysql' => ['max_allowed_packet' => $max_allowed_packet]]; + $t = get_markup_template('admin/summary.tpl'); return replace_macros($t, [ '$title' => L10n::t('Administration'), @@ -923,6 +932,7 @@ function admin_page_summary(App $a) '$codename' => FRIENDICA_CODENAME, '$build' => Config::get('system', 'build'), '$addons' => [L10n::t('Active addons'), $a->addons], + '$serversettings' => $server_settings, '$showwarning' => $showwarning, '$warningtext' => $warningtext ]); diff --git a/view/templates/admin/summary.tpl b/view/templates/admin/summary.tpl index 8929cfbec..202fd43b3 100644 --- a/view/templates/admin/summary.tpl +++ b/view/templates/admin/summary.tpl @@ -44,5 +44,22 @@
{{$platform}} '{{$codename}}' {{$version.1}} - {{$build}} +
+
{{$serversettings.label}}
+
+ + + + {{foreach $serversettings.php as $k => $p}} + + {{/foreach}} + + {{foreach $serversettings.mysql as $k => $p}} + + {{/foreach}} + +
PHP
{{$k}}{{$p}}
MySQL / MariaDB
{{$k}}{{$p}}
+
+
diff --git a/view/theme/frio/templates/admin/summary.tpl b/view/theme/frio/templates/admin/summary.tpl index 30eca8dc0..3c33f92fd 100644 --- a/view/theme/frio/templates/admin/summary.tpl +++ b/view/theme/frio/templates/admin/summary.tpl @@ -57,6 +57,27 @@
{{$version.0}}
{{$platform}} '{{$codename}}' {{$version.1}} - {{$build}}
+ + {{* Server Settings. *}} +
+
+
{{$serversettings.label}}
+
+ + + + {{foreach $serversettings.php as $k => $p}} + + {{/foreach}} + + {{foreach $serversettings.mysql as $k => $p}} + + {{/foreach}} + +
PHP
{{$k}}{{$p}}
MySQL / MariaDB
{{$k}}{{$p}}
+
+
+