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

Definition at line 7 of file set_maintenance_mode.php.

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

Configure site maintenance mode.

Definition at line 6 of file set_maintenance_mode.php.

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

Definition at line 9 of file set_maintenance_mode.php.

if ($result) else
Initial value:
{
register_error(elgg_echo('save:fail'))
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg register_error
Wrapper function for system_messages.
Definition: elgglib.js:383

Definition at line 17 of file set_maintenance_mode.php.