Elgg  Version 6.3
Variables
settings.php File Reference

Go to the source code of this file.

Variables

 $site = elgg_get_site_entity()
 Updates the basic settings for the primary site object. More...
 
$site description = get_input('sitedescription')
 
$site name = strip_tags(get_input('sitename', ''))
 
$site email = get_input('siteemail')
 
if(! $site->save()) $allow_registration = (get_input('allow_registration', false) === 'on')
 
 $require_admin_validation = (get_input('require_admin_validation', false) === 'on')
 
 $remove_unvalidated_users_days = (int) get_input('remove_unvalidated_users_days')
 
if($remove_unvalidated_users_days< 1) else
 
 $walled_garden = (get_input('walled_garden', false) === 'on')
 
 $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')
 
 $trash_retention = (int) get_input('trash_retention', 30)
 
 $user_default_access = (get_input('allow_user_default_access') === 'on')
 
if(!elgg() ->config->hasInitialValue('debug')) $remove_branding = (get_input('remove_branding', false) === 'on')
 
 $disable_rss = (get_input('disable_rss', false) === 'on')
 
 $friendly_time_number_of_days = get_input('friendly_time_number_of_days', 30)
 

Variable Documentation

◆ $allow_registration

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

Definition at line 21 of file settings.php.

◆ $allowed_languages [1/2]

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

Definition at line 45 of file settings.php.

◆ $allowed_languages [2/2]

$allowed_languages[] = 'en'

Definition at line 46 of file settings.php.

◆ $comments_max_depth

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

Definition at line 59 of file settings.php.

◆ $default_limit

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

Definition at line 52 of file settings.php.

◆ $disable_rss

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

Definition at line 123 of file settings.php.

◆ $friendly_time_number_of_days

$friendly_time_number_of_days = get_input('friendly_time_number_of_days', 30)

Definition at line 126 of file settings.php.

◆ $remove_branding

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

Definition at line 116 of file settings.php.

◆ $remove_unvalidated_users_days

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

Definition at line 32 of file settings.php.

◆ $require_admin_validation

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

Definition at line 25 of file settings.php.

◆ $site

Updates the basic settings for the primary site object.

Basic site settings are saved as metadata on the site object, with the exception of the default language, which is saved in the config table.

Definition at line 10 of file settings.php.

◆ $trash_retention

$trash_retention = (int) get_input('trash_retention', 30)

Definition at line 72 of file settings.php.

◆ $user_default_access

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

Definition at line 104 of file settings.php.

◆ $walled_garden

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

Definition at line 40 of file settings.php.

◆ description

$site description = get_input('sitedescription')

Definition at line 12 of file settings.php.

◆ else

if ( $remove_unvalidated_users_days< 1) else ( )
Initial value:
{
elgg_save_config('remove_unvalidated_users_days', $remove_unvalidated_users_days)
$remove_unvalidated_users_days
Definition: settings.php:32
elgg_save_config(string $name, $value)
Save a configuration setting.

Definition at line 35 of file settings.php.

◆ email

$site email = get_input('siteemail')

Definition at line 14 of file settings.php.

◆ name

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

Definition at line 13 of file settings.php.