changed: winix 'upload' function is a file manager now
we're using an jquery upload plugin added: Item struct has new rows: hash, hash_type, file_size, sort_index added: css mount parameter you can specify css files there, and javascript wysiwyg editors (ckeditor, tinymce) can make use of it changed: post parsers can parse post variables with the same name (a postfix is added in such a case) added: common_dir parameter to the config this is a path to common directory (directory with common static files) it is needed to the 'css' mount parameter git-svn-id: svn://ttmath.org/publicrep/winix/trunk@746 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -54,6 +54,86 @@ void mount_first_html_template(Info & i)
|
||||
|
||||
|
||||
|
||||
static size_t mount_css_index = 0;
|
||||
|
||||
void mount_css_tab(Info & i)
|
||||
{
|
||||
int parcss = system->mounts.MountParCss();
|
||||
|
||||
|
||||
if( !cur->mount->param[parcss].defined )
|
||||
return;
|
||||
|
||||
mount_css_index = i.iter;
|
||||
i.res = mount_css_index < cur->mount->param[parcss].arg.size();
|
||||
}
|
||||
|
||||
|
||||
void mount_css_tab_file(Info & i)
|
||||
{
|
||||
int parcss = system->mounts.MountParCss();
|
||||
|
||||
if( mount_css_index < cur->mount->param[parcss].arg.size() )
|
||||
i.out << cur->mount->param[parcss].arg[mount_css_index];
|
||||
}
|
||||
|
||||
|
||||
void mount_css_tab_file_is_global(Info & i)
|
||||
{
|
||||
int parcss = system->mounts.MountParCss();
|
||||
|
||||
if( mount_css_index < cur->mount->param[parcss].arg.size() )
|
||||
i.res = IsSubString(L"http://", cur->mount->param[parcss].arg[mount_css_index].c_str()) ||
|
||||
IsSubString(L"https://", cur->mount->param[parcss].arg[mount_css_index].c_str());
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mount_css_tab_has_next(Info & i)
|
||||
{
|
||||
int parcss = system->mounts.MountParCss();
|
||||
|
||||
if( !cur->mount->param[parcss].defined )
|
||||
return;
|
||||
|
||||
i.res = (mount_css_index + 1 < cur->mount->param[parcss].arg.size());
|
||||
}
|
||||
|
||||
|
||||
size_t mount_css_size()
|
||||
{
|
||||
int parcss = system->mounts.MountParCss();
|
||||
|
||||
if( !cur->mount->param[parcss].defined )
|
||||
return 0;
|
||||
|
||||
return cur->mount->param[parcss].arg.size();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mount_css_is_empty(Info & i)
|
||||
{
|
||||
i.res = mount_css_size() == 0;
|
||||
}
|
||||
|
||||
|
||||
void mount_css_is_one(Info & i)
|
||||
{
|
||||
i.res = mount_css_size() == 1;
|
||||
}
|
||||
|
||||
|
||||
void mount_css_more_than_one(Info & i)
|
||||
{
|
||||
i.res = mount_css_size() > 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
static bool mount_tab_inited = false;
|
||||
static Mounts::MountTab::const_iterator mount_iter;
|
||||
static std::wstring dir_str;
|
||||
|
Reference in New Issue
Block a user