Files
typecho/var/Widget/Logout.php
T
joyqi c86c007dca 更新markdown,加上nofollow,修正链接自动识别
更新消息机制,将后台cookie识别改为前台js cookie识别
更新session机制
2013-11-22 12:34:13 +08:00

36 lines
762 B
PHP

<?php
/**
* 登出动作
*
* @category typecho
* @package Widget
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
* @license GNU General Public License 2.0
* @version $Id$
*/
/**
* 登出组件
*
* @category typecho
* @package Widget
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
* @license GNU General Public License 2.0
*/
class Widget_Logout extends Widget_Abstract_Users implements Widget_Interface_Do
{
/**
* 初始化函数
*
* @access public
* @return void
*/
public function action()
{
$this->user->logout();
$this->pluginHandle()->logout();
$this->response->goBack(NULL, $this->options->index);
@session_destroy();
}
}