Elgg  Version 1.11
logout.php
Go to the documentation of this file.
1 <?php
9 // Log out
11 
12 // Set the system_message as appropriate
13 if ($result) {
14  system_message(elgg_echo('logoutok'));
15  forward();
16 } else {
17  register_error(elgg_echo('logouterror'));
18 }
register_error($error)
Display an error on next page load.
Definition: elgglib.php:455
system_message($message)
Display a system message on next page load.
Definition: elgglib.php:442
forward($location="", $reason='system')
Forward to $location.
Definition: elgglib.php:80
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$result
Definition: logout.php:10
logout()
Log the current user out.
Definition: sessions.php:372