Elgg  Version master
Variables
settings.php File Reference

Go to the source code of this file.

Variables

 $site = elgg_get_site_entity()
 
if(!$site) if(!($site instanceof ElggSite)) $site description = get_input('sitedescription')
 
$site name = strip_tags(get_input('sitename', ''))
 
$site email = get_input('siteemail')
 
if(!$site->save()) $allow_registration = ('on' === get_input('allow_registration', false))
 
 $require_admin_validation = ('on' === get_input('require_admin_validation', false))
 
 $admin_validation_notification = get_input('admin_validation_notification')
 
if(empty($admin_validation_notification)) else
 
 $remove_unvalidated_users_days = (int) get_input('remove_unvalidated_users_days')
 
 $walled_garden = ('on' === get_input('walled_garden', false))
 
 $allowed_languages = (array) get_input('allowed_languages', [])
 
 $allowed_languages [] = 'en'
 
 $default_limit = (int) get_input('default_limit')
 
 $comments_max_depth = (int) get_input('comments_max_depth')
 
 $user_default_access = ('on' === get_input('allow_user_default_access'))
 
if(!elgg() ->config->hasInitialValue('debug')) $remove_branding = ('on' === get_input('remove_branding', false))
 
 $disable_rss = ('on' === get_input('disable_rss', false))
 
 $friendly_time_number_of_days = get_input('friendly_time_number_of_days', 30)
 

Variable Documentation

$admin_validation_notification = get_input('admin_validation_notification')

Definition at line 37 of file settings.php.

if (!$site->save()) $allow_registration = ('on' === get_input('allow_registration', false))

Definition at line 29 of file settings.php.

$allowed_languages = (array) get_input('allowed_languages', [])

Definition at line 58 of file settings.php.

$allowed_languages[] = 'en'

Definition at line 59 of file settings.php.

$comments_max_depth = (int) get_input('comments_max_depth')

Definition at line 72 of file settings.php.

$default_limit = (int) get_input('default_limit')

Definition at line 65 of file settings.php.

$disable_rss = ('on' === get_input('disable_rss', false))

Definition at line 130 of file settings.php.

$friendly_time_number_of_days = get_input('friendly_time_number_of_days', 30)

Definition at line 133 of file settings.php.

if (!elgg() ->config->hasInitialValue('debug')) $remove_branding = ('on' === get_input('remove_branding', false))

Definition at line 123 of file settings.php.

$remove_unvalidated_users_days = (int) get_input('remove_unvalidated_users_days')

Definition at line 45 of file settings.php.

$require_admin_validation = ('on' === get_input('require_admin_validation', false))

Definition at line 33 of file settings.php.

Definition at line 12 of file settings.php.

$user_default_access = ('on' === get_input('allow_user_default_access'))

Definition at line 111 of file settings.php.

$walled_garden = ('on' === get_input('walled_garden', false))

Definition at line 53 of file settings.php.

if (!$site) if (!($site instanceof ElggSite)) $site description = get_input('sitedescription')

Definition at line 20 of file settings.php.

if ('on'===get_input('system_cache_enabled')) else
Initial value:
{
elgg_save_config('admin_validation_notification', $admin_validation_notification)
$admin_validation_notification
Definition: settings.php:37
elgg_save_config(string $name, $value)
Save a configuration setting.

Definition at line 40 of file settings.php.

$site email = get_input('siteemail')

Definition at line 22 of file settings.php.

$site name = strip_tags(get_input('sitename', ''))

Definition at line 21 of file settings.php.