diff options
Diffstat (limited to 'actions/logout.php')
-rw-r--r-- | actions/logout.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/logout.php b/actions/logout.php new file mode 100644 index 000000000..c48a26b15 --- /dev/null +++ b/actions/logout.php @@ -0,0 +1,18 @@ +<?php +/** + * Elgg logout action + * + * @package Elgg + * @subpackage Core + */ + +// Log out +$result = logout(); + +// Set the system_message as appropriate +if ($result) { + system_message(elgg_echo('logoutok')); + forward(); +} else { + register_error(elgg_echo('logouterror')); +}
\ No newline at end of file |