added: html/fun_pw.html

default view for pw winix function


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@815 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-03-03 21:00:48 +00:00
parent e61f0db57e
commit 6c2c12fe5e
7 changed files with 83 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2010, Tomasz Sowa
* Copyright (c) 2008-2012, Tomasz Sowa
* All rights reserved.
*
*/
@@ -117,6 +117,11 @@ void user_tab(Info & i)
}
void user_tab_index(Info & i)
{
i.out << (user_index+1);
}
void user_tab_id(Info & i)
{
if( user_index < system->users.Size() )
@@ -138,6 +143,26 @@ void user_tab_is_super_user(Info & i)
}
void user_tab_is_active(Info & i)
{
if( user_index < system->users.Size() )
i.res = system->users[user_index].status == WINIX_ACCOUNT_READY;
}
void user_tab_is_suspended(Info & i)
{
if( user_index < system->users.Size() )
i.res = system->users[user_index].status == WINIX_ACCOUNT_SUSPENDED;
}
void user_tab_is_blocked(Info & i)
{
if( user_index < system->users.Size() )
i.res = system->users[user_index].status == WINIX_ACCOUNT_BLOCKED;
}
void user_tab_is_current(Info & i)
{
if( user_index < system->users.Size() && cur->session->puser )