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:
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2011, Tomasz Sowa
|
||||
* Copyright (c) 2008-2012, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -67,32 +67,6 @@ void sys_plugin_tab_name(Info & i)
|
||||
|
||||
|
||||
|
||||
static size_t sys_user_index = 0;
|
||||
|
||||
void sys_user_tab(Info & i)
|
||||
{
|
||||
sys_user_index = i.iter;
|
||||
i.res = sys_user_index < system->users.Size();
|
||||
}
|
||||
|
||||
|
||||
void sys_user_tab_is_current(Info & i)
|
||||
{
|
||||
if( !cur->session->puser )
|
||||
return;
|
||||
|
||||
if( sys_user_index < system->users.Size() )
|
||||
i.res = (cur->session->puser->id == system->users[sys_user_index].id);
|
||||
}
|
||||
|
||||
|
||||
void sys_user_tab_name(Info & i)
|
||||
{
|
||||
if( sys_user_index < system->users.Size() )
|
||||
i.out << system->users[sys_user_index].name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
Reference in New Issue
Block a user