Elgg  Version 1.11
Variables
set_maintenance_mode.php File Reference

Go to the source code of this file.

Variables

 $mode = (int)get_input('mode')
 Configure site maintenance mode. More...
 
 $message = get_input('message')
 
 $site = elgg_get_site_entity()
 
 $result = elgg_save_config('elgg_maintenance_mode', $mode, null)
 
if($result) else
 

Variable Documentation

◆ $message

Definition at line 7 of file set_maintenance_mode.php.

◆ $mode

$mode = (int)get_input('mode')

Configure site maintenance mode.

Definition at line 6 of file set_maintenance_mode.php.

◆ $result

$result = elgg_save_config('elgg_maintenance_mode', $mode, null)

◆ $site

Definition at line 9 of file set_maintenance_mode.php.

◆ else

if ( $result) else
Initial value:
{
register_error(elgg_echo('save:fail'))
register_error($error)
Display an error on next page load.
Definition: elgglib.php:455
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 17 of file set_maintenance_mode.php.