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:
@@ -168,15 +168,15 @@ void item_link(Info & i)
|
||||
|
||||
|
||||
|
||||
void item_static_auth_is_none(Info & i)
|
||||
void item_auth_is_none(Info & i)
|
||||
{
|
||||
i.result = request.item.static_auth == Item::static_none;
|
||||
i.result = request.item.auth == Item::auth_none;
|
||||
}
|
||||
|
||||
|
||||
void item_static_auth_is_image(Info & i)
|
||||
void item_auth_is_image(Info & i)
|
||||
{
|
||||
i.result = request.item.static_auth == Item::static_image;
|
||||
i.result = request.item.auth == Item::auth_image;
|
||||
}
|
||||
|
||||
|
||||
@@ -427,7 +427,7 @@ void item_tab_print_content(Info & i)
|
||||
void item_tab_privileges(Info & i)
|
||||
{
|
||||
if( item_index < request.item_table.size() )
|
||||
i.out << std::setbase(8) << request.item_table[item_index].privileges << std::setbase(10);
|
||||
i.out << "0" << std::setbase(8) << request.item_table[item_index].privileges << std::setbase(10);
|
||||
}
|
||||
|
||||
|
||||
@@ -464,11 +464,11 @@ void item_tab_link(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void item_tab_link_static_auth(Info & i)
|
||||
void item_tab_link_auth(Info & i)
|
||||
{
|
||||
if( item_index < request.item_table.size() )
|
||||
{
|
||||
HtmlEscape(i.out, data.base_url_static_auth);
|
||||
HtmlEscape(i.out, data.base_url_auth);
|
||||
item_tab_dir(i);
|
||||
item_tab_url(i);
|
||||
}
|
||||
@@ -515,6 +515,21 @@ void item_tab_user(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void item_tab_group(Info & i)
|
||||
{
|
||||
if( item_index < request.item_table.size() )
|
||||
{
|
||||
long group_id = request.item_table[item_index].group_id;
|
||||
Group * pgroup = data.groups.GetGroup(group_id);
|
||||
|
||||
if( pgroup )
|
||||
HtmlEscape(i.out, pgroup->name);
|
||||
else
|
||||
i.out << group_id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_date_creation(Info & i)
|
||||
{
|
||||
if( item_index < request.item_table.size() )
|
||||
|
Reference in New Issue
Block a user