36 lines
381 B
C++
Executable File
36 lines
381 B
C++
Executable File
/*
|
|
* This file is a part of Winix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2008-2012, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#include "logout.h"
|
|
|
|
|
|
|
|
namespace Fun
|
|
{
|
|
|
|
|
|
Logout::Logout()
|
|
{
|
|
fun.url = L"logout";
|
|
}
|
|
|
|
|
|
|
|
void Logout::MakeGet()
|
|
{
|
|
if( cur->session->puser )
|
|
{
|
|
system->users.LogoutCurrentUser();
|
|
system->RedirectToLastItem();
|
|
}
|
|
}
|
|
|
|
|
|
} // namespace
|