55 lines
600 B
C++
Executable File
55 lines
600 B
C++
Executable File
/*
|
|
* This file is a part of Winix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2008-2010, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#include "ls.h"
|
|
|
|
|
|
|
|
|
|
namespace Fun
|
|
{
|
|
|
|
Ls::Ls()
|
|
{
|
|
fun.url = "ls";
|
|
}
|
|
|
|
|
|
void Ls::MakeGet()
|
|
{
|
|
if( !request->is_item )
|
|
{
|
|
DbItemQuery iq;
|
|
|
|
iq.sel_content = false;
|
|
|
|
iq.WhereParentId(request->dir_tab.back()->id);
|
|
iq.WhereType(Item::file);
|
|
|
|
if( request->IsParam("ckeditor_browse") )
|
|
{
|
|
iq.WhereAuth(Item::auth_image);
|
|
db->GetItems(request->item_tab, iq);
|
|
}
|
|
else
|
|
{
|
|
db->GetItems(request->item_tab, iq);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|