2017-12-17 11:34:43 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Module;
|
|
|
|
|
|
|
|
use Friendica\BaseModule;
|
|
|
|
|
|
|
|
require_once 'boot.php';
|
|
|
|
require_once 'include/pgettext.php';
|
|
|
|
require_once 'include/plugin.php';
|
|
|
|
require_once 'include/security.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Logout module
|
|
|
|
*
|
|
|
|
* @author Hypolite Petovan mrpetovan@gmail.com
|
|
|
|
*/
|
|
|
|
class Logout extends BaseModule
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @brief Process logout requests
|
|
|
|
*/
|
|
|
|
public static function init()
|
|
|
|
{
|
|
|
|
call_hooks("logging_out");
|
|
|
|
nuke_session();
|
|
|
|
info(t('Logged out.') . EOL);
|
|
|
|
goaway(self::getApp()->get_baseurl());
|
|
|
|
}
|
2018-01-02 19:37:17 -05:00
|
|
|
}
|