Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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 11 of file set_maintenance_mode.php.

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
register_error($error)
Display an error on next page load.
Definition: elgglib.php:452

Definition at line 17 of file set_maintenance_mode.php.