Elgg  Version 2.3
system.php
Go to the documentation of this file.
1 <?php
7  '#type' => 'text',
8  'name' => 'wwwroot',
9  '#label' => elgg_echo('installation:wwwroot'),
10  'value' => elgg_get_config('wwwroot'),
11 ]);
12 
14  '#type' => 'text',
15  'name' => 'path',
16  '#label' => elgg_echo('installation:path'),
17  'value' => elgg_get_config('path'),
18 ]);
19 
20 $dataroot_in_settings = !empty($GLOBALS['_ELGG']->dataroot_in_settings);
22  '#type' => 'text',
23  'name' => 'dataroot',
24  '#label' => elgg_echo('installation:dataroot'),
25  'value' => elgg_get_config('dataroot'),
26  'readonly' => $dataroot_in_settings,
27  'class' => $dataroot_in_settings ? 'elgg-state-disabled' : '',
28  '#help' => $dataroot_in_settings ? elgg_echo('admin:settings:in_settings_file') : '',
29 ]);
30 
31 echo elgg_view_module('inline', elgg_echo('admin:legend:system'), $body, ['id' => 'elgg-settings-advanced-system']);
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1424
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$dataroot_in_settings
Definition: system.php:20
elgg echo
Translates a string.
Definition: languages.js:48
$body
Advanced site settings, system section.
Definition: system.php:6
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1250