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:
@@ -15,20 +15,25 @@
|
||||
|
||||
void Content::FunLs()
|
||||
{
|
||||
if( request.is_item )
|
||||
if( !request.is_item )
|
||||
{
|
||||
// we're showing only the item
|
||||
request.item_table.push_back( request.item );
|
||||
return;
|
||||
}
|
||||
|
||||
// we're reading only files here
|
||||
db.GetItems(request.item_table, request.dir_table.back()->id, Item::file, false, false, true);
|
||||
Db::ItemQuery iq;
|
||||
|
||||
/*
|
||||
request.IsParam("ckeditor_browse");
|
||||
*/
|
||||
|
||||
iq.sel_content = false;
|
||||
|
||||
iq.WhereParentId(request.dir_table.back()->id);
|
||||
iq.WhereType(Item::file);
|
||||
|
||||
if( request.IsParam("ckeditor_browse") )
|
||||
{
|
||||
iq.WhereAuth(Item::auth_image);
|
||||
db.GetItems(request.item_table, iq);
|
||||
}
|
||||
else
|
||||
{
|
||||
db.GetItems(request.item_table, iq);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user