23 if (stripos(PHP_OS,
'win') === 0) {
24 if (strpos($dataroot,
':') !== 1) {
25 $msg =
elgg_echo(
'admin:configuration:dataroot:relative_path', array($dataroot));
30 if (strpos($dataroot,
'/') !== 0) {
31 $msg =
elgg_echo(
'admin:configuration:dataroot:relative_path', array($dataroot));
39 if (
'on' ===
get_input(
'simplecache_enabled')) {
48 if (
'on' ===
get_input(
'system_cache_enabled')) {
56 $user_default_access = (
'on' ===
get_input(
'allow_user_default_access'));
57 set_config(
'allow_user_default_access', $user_default_access,
$site->getGUID());
67 $allow_registration = (
'on' ===
get_input(
'allow_registration',
false));
68 set_config(
'allow_registration', $allow_registration,
$site->getGUID());
71 $walled_garden = (
'on' ===
get_input(
'walled_garden',
false));
80 $regenerate_site_secret =
get_input(
'regenerate_site_secret',
false);
81 if ($regenerate_site_secret) {
elgg_enable_system_cache()
Enables the system disk cache.
elgg_delete_admin_notice($id)
Remove an admin notice by ID.
elgg_get_site_entity($site_guid=0)
Get an ElggSite entity (default is current site)
elgg_reset_system_cache()
Reset the system cache by deleting the caches.
unset_config($name, $site_guid=0)
Removes a config setting.
sanitise_filepath($path, $append_slash=true)
Sanitise file paths ensuring that they begin and end with slashes etc.
elgg_disable_system_cache()
Disables the system disk cache.
init_site_secret()
Initialise the site secret (32 bytes: "z" to indicate format + 186-bit key in Base64 URL)...
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
datalist_set($name, $value)
Set the value for a datalist element.
elgg system_message
Wrapper function for system_messages.
elgg register_error
Wrapper function for system_messages.
elgg_disable_simplecache()
Disables the simple cache.
elgg_enable_simplecache()
Enables the simple cache.
set_config($name, $value, $site_guid=0)
Add or update a config setting.