we can create links (hard links, symbolic links) now

added winix functions: ln

winix function 'default' can be used without redirecting now

added new tickets types: TypeProgress, TypeString, TypeMultistring, TypeImages, TypeFiles
now tickets are combined with files
added winix functions: showtickets

fixed mountpoints:
when the default root mount was created its parameter table was empty
and it caused accessing to a non-existing objects

fixed logger:
modifiers (log1, log2, log3) were incorrectly treated
added modifier: log4 (debug info)

now we are moving threads to a new plugin 'thread'
created directory: plugins/thread
(not finished yet)




git-svn-id: svn://ttmath.org/publicrep/winix/trunk@704 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-01-05 21:24:11 +00:00
parent bb83aed20d
commit 8154c403d8
113 changed files with 5840 additions and 2972 deletions

View File

@@ -181,6 +181,12 @@ void item_filetype_is_image(Info & i)
}
void item_has_static_file(Info & i)
{
i.res = request->item.file_type != WINIX_ITEM_FILETYPE_NONE && !request->item.file_path.empty();
}
void item_has_thumb(Info & i)
{
i.res = request->item.has_thumb;
@@ -312,6 +318,40 @@ void item_has_html_template(Info & i)
}
void item_type_is_dir(Info & i)
{
i.res = request->item.type == Item::dir;
}
void item_type_is_file(Info & i)
{
i.res = request->item.type == Item::file;
}
void item_type_is_symlink(Info & i)
{
i.res = request->item.type == Item::symlink;
}
void item_is_link_to(Info & i)
{
i.res = !request->item.link_to.empty();
}
void item_link_to(Info & i)
{
i.out << request->item.link_to;
}
void item_is_link_redirect(Info & i)
{
i.res = request->item.link_redirect == 1;
}
@@ -570,8 +610,64 @@ void item_tab_can_use_emacs(Info & i)
}
void item_tab_has_static_file(Info & i)
{
if( item_index < request->item_tab.size() )
{
i.res = request->item_tab[item_index].file_type != WINIX_ITEM_FILETYPE_NONE &&
!request->item_tab[item_index].file_path.empty();
}
}
void item_tab_has_thumb(Info & i)
{
if( item_index < request->item_tab.size() )
i.res = request->item_tab[item_index].has_thumb;
}
void item_tab_type_is_dir(Info & i)
{
if( item_index < request->item_tab.size() )
i.res = request->item_tab[item_index].type == Item::dir;
}
void item_tab_type_is_file(Info & i)
{
if( item_index < request->item_tab.size() )
i.res = request->item_tab[item_index].type == Item::file;
}
void item_tab_type_is_symlink(Info & i)
{
if( item_index < request->item_tab.size() )
i.res = request->item_tab[item_index].type == Item::symlink;
}
void item_tab_is_link_to(Info & i)
{
if( item_index < request->item_tab.size() )
i.res = !request->item_tab[item_index].link_to.empty();
}
void item_tab_link_to(Info & i)
{
if( item_index < request->item_tab.size() )
i.out << request->item_tab[item_index].link_to;
}
void item_tab_is_link_redirect(Info & i)
{
if( item_index < request->item_tab.size() )
i.res = request->item_tab[item_index].link_redirect == 1;
}
} // namespace TemplatesFunctions