added: parameter 'l' to 'ls' function
added: Db::ItemQuery struct for querying items changed: some refactoring (renamed some config variables) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@589 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -143,6 +143,49 @@ void dir_childs_tab_url(Info & i)
|
||||
|
||||
|
||||
|
||||
void dir_childs_tab_privileges(Info & i)
|
||||
{
|
||||
if( dir_childs_index < dir_childs_table.size() )
|
||||
i.out << "0" << std::setbase(8) << dir_childs_table[dir_childs_index]->privileges << std::setbase(10);
|
||||
}
|
||||
|
||||
|
||||
void dir_childs_tab_user(Info & i)
|
||||
{
|
||||
if( dir_childs_index < dir_childs_table.size() )
|
||||
{
|
||||
long user_id = dir_childs_table[dir_childs_index]->user_id;
|
||||
User * puser = data.users.GetUser(user_id);
|
||||
|
||||
if( puser )
|
||||
HtmlEscape(i.out, puser->name);
|
||||
else
|
||||
{
|
||||
i.out << "~";
|
||||
|
||||
if( !dir_childs_table[dir_childs_index]->guest_name.empty() )
|
||||
HtmlEscape(i.out, dir_childs_table[dir_childs_index]->guest_name);
|
||||
else
|
||||
i.out << "guest"; // !! dodac do konfiga
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void dir_childs_tab_group(Info & i)
|
||||
{
|
||||
if( dir_childs_index < dir_childs_table.size() )
|
||||
{
|
||||
long group_id = dir_childs_table[dir_childs_index]->group_id;
|
||||
Group * pgroup = data.groups.GetGroup(group_id);
|
||||
|
||||
if( pgroup )
|
||||
HtmlEscape(i.out, pgroup->name);
|
||||
else
|
||||
i.out << group_id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -178,7 +221,6 @@ void dir_tab_link(Info & i)
|
||||
}
|
||||
|
||||
|
||||
|
||||
static Item dir_last_default_item;
|
||||
static size_t dir_last_default_item_reqid = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user