Elgg  Version 3.0
settings.php
Go to the documentation of this file.
1 <?php
2 
4  'security_protect_upgrade',
5  'security_protect_cron',
6  'security_disable_password_autocomplete',
7  'security_email_require_password',
8  'security_notify_admins',
9  'security_notify_user_admin',
10  'security_notify_user_ban',
11  'security_notify_user_password',
12  'session_bound_entity_icons',
13 ];
14 
15 foreach ($settings as $setting) {
16  elgg_save_config($setting, (bool) get_input($setting));
17 }
18 
19 return elgg_ok_response('', elgg_echo('admin:configuration:success'));
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_save_config($name, $value)
Save a configuration setting.
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition: input.php:27
elgg_ok_response($content= '', $message= '', $forward_url=null, $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.
$settings
Definition: settings.php:3