logout.php 270 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Elgg logout action
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. */
  8. // Log out
  9. $result = logout();
  10. // Set the system_message as appropriate
  11. if ($result) {
  12. system_message(elgg_echo('logoutok'));
  13. forward();
  14. } else {
  15. register_error(elgg_echo('logouterror'));
  16. }