added: winix function: rmuser
changed: UGContainer<> now uses std::list as a storage
(previously it was using std::vector with pointers)
removed: now we don't have the operator[] for UGContainer<>
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@816 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
#include "logout.h"
|
||||
#include "core/plugin.h"
|
||||
|
||||
|
||||
|
||||
@@ -22,24 +21,12 @@ Logout::Logout()
|
||||
}
|
||||
|
||||
|
||||
void Logout::LogoutCurrentUser()
|
||||
{
|
||||
if( cur->session && cur->session->puser )
|
||||
{
|
||||
long user_id = cur->session->puser->id;
|
||||
plugin.Call(WINIX_PREPARE_USER_LOGGED_OUT);
|
||||
|
||||
system->users.LogoutCurrentUser();
|
||||
plugin.Call(WINIX_USER_LOGGED_OUT, user_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Logout::MakeGet()
|
||||
{
|
||||
if( cur->session->puser )
|
||||
{
|
||||
LogoutCurrentUser();
|
||||
system->users.LogoutCurrentUser();
|
||||
system->RedirectToLastItem();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user