Elgg  Version master
server.php
Go to the documentation of this file.
1 <?php
6 $tabs = [
7  [
8  'text' => elgg_echo('admin:server:label:requirements'),
9  'content' => elgg_view('admin/server/requirements'),
10  'selected' => true,
11  ],
12  [
13  'text' => elgg_echo('admin:server:label:web_server'),
14  'content' => elgg_view('admin/server/web_server'),
15  ],
16  [
17  'text' => elgg_echo('admin:server:label:php'),
18  'content' => elgg_view('admin/server/php'),
19  ],
20 ];
21 
22 // Show phpinfo page
23 if (elgg_get_config('allow_phpinfo')) {
24  $tabs[] = [
25  'text' => elgg_echo('admin:server:label:phpinfo'),
26  'content' => elgg_view('output/iframe', [
27  'src' => elgg_generate_url('phpinfo'),
28  'style' => 'width: 100%;',
29  'height' => '2000px',
30  ]),
31  ];
32 }
33 
34 elgg_register_menu_item('title', [
35  'name' => 'diagnostics',
36  'text' => elgg_echo('diagnostics:report'),
37  'icon' => 'download',
38  'href' => elgg_generate_action_url('diagnostics/download'),
39  'class' => 'elgg-button elgg-button-action',
40 ]);
41 
42 echo elgg_view('page/components/tabs', [
43  'tabs' => $tabs,
44 ]);
elgg_generate_action_url(string $action, array $query=[], bool $add_csrf_tokens=true)
Generate an action URL.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
$tabs
Server information.
Definition: server.php:6
elgg_register_menu_item(string $menu_name, array|\ElggMenuItem $menu_item)
Elgg navigation library Functions for managing menus and other navigational elements.
Definition: navigation.php:83