Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * Logout class file.
4
 *
5
 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
 * @link http://www.pradosoft.com/
7
 * @copyright Copyright &copy; 2005-2006 PradoSoft
8
 * @license http://www.pradosoft.com/license/
9
 * @version $Id: Logout.php 1400 2006-09-09 03:13:44Z wei $
10
 * @package Demos
11
 */
12
 
13
/**
14
 * Logout page class.
15
 *
16
 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
17
 * @version $Id: Logout.php 1400 2006-09-09 03:13:44Z wei $
18
 * @package Demos
19
 * @since 3.1
20
 */
21
class Logout extends TPage
22
{
23
	/**
24
	 * Logs out the current user and redirect to default page.
25
	 */
26
	function onLoad($param)
27
	{
28
		$this->Application->getModule('auth')->logout();
29
		$url = $this->Service->constructUrl($this->Service->DefaultPage);
30
		$this->Response->redirect($url);
31
	}
32
}
33
 
34
?>