moved some ezc functions from templates/item.cpp to Item and ItemContent
removed: templates/item.cpp updated: some html templates which use [item] or [item_tab] removed some old html templates: item_info.html and itam_tab_info.html
This commit is contained in:
@@ -1590,131 +1590,6 @@ ipban.o: ../../../winix/winixd/functions/upload.h
|
||||
ipban.o: ../../../winix/winixd/functions/uptime.h
|
||||
ipban.o: ../../../winix/winixd/functions/who.h
|
||||
ipban.o: ../../../winix/winixd/functions/vim.h
|
||||
item.o: templates.h ../../../ezc/src/ezc.h ../../../ezc/src/generator.h
|
||||
item.o: ../../../ezc/src/blocks.h ../../../ezc/src/item.h
|
||||
item.o: ../../../ezc/src/cache.h ../../../ezc/src/functions.h
|
||||
item.o: ../../../pikotools/src/utf8/utf8.h
|
||||
item.o: ../../../pikotools/src/textstream/stream.h
|
||||
item.o: ../../../pikotools/src/utf8/utf8_templates.h
|
||||
item.o: ../../../pikotools/src/utf8/utf8_private.h ../../../ezc/src/funinfo.h
|
||||
item.o: ../../../ezc/src/objects.h ../../../ezc/src/pattern.h
|
||||
item.o: ../../../ezc/src/outstreams.h ../../../ezc/src/expressionparser.h
|
||||
item.o: ../../../ezc/src/models.h ../../../pikotools/src/log/log.h
|
||||
item.o: ../../../pikotools/src/textstream/textstream.h
|
||||
item.o: ../../../pikotools/src/textstream/stream.h
|
||||
item.o: ../../../pikotools/src/space/space.h
|
||||
item.o: ../../../pikotools/src/textstream/types.h
|
||||
item.o: ../../../pikotools/src/convert/inttostr.h
|
||||
item.o: ../../../pikotools/src/date/date.h
|
||||
item.o: ../../../pikotools/src/membuffer/membuffer.h
|
||||
item.o: ../../../pikotools/src/textstream/types.h
|
||||
item.o: ../../../pikotools/src/log/filelog.h ../../../ezc/src/patternparser.h
|
||||
item.o: misc.h localefilter.h locale.h
|
||||
item.o: ../../../pikotools/src/space/spaceparser.h
|
||||
item.o: ../../../pikotools/src/space/space.h
|
||||
item.o: ../../../winix/winixd/core/winixbase.h
|
||||
item.o: ../../../winix/winixd/core/config.h ../../../winix/winixd/core/log.h
|
||||
item.o: ../../../winix/winixd/core/logmanipulators.h ../../../morm/src/morm.h
|
||||
item.o: ../../../morm/src/morm_types.h ../../../morm/src/model.h
|
||||
item.o: ../../../morm/src/modelconnector.h ../../../morm/src/clearer.h
|
||||
item.o: ../../../morm/src/dbconnector.h ../../../morm/src/queryresult.h
|
||||
item.o: ../../../morm/src/ft.h ../../../morm/src/flatconnector.h
|
||||
item.o: ../../../morm/src/dbexpression.h ../../../morm/src/baseexpression.h
|
||||
item.o: ../../../morm/src/modelenv.h ../../../morm/src/modeldata.h
|
||||
item.o: ../../../morm/src/cursorhelper.h ../../../morm/src/finderhelper.h
|
||||
item.o: ../../../morm/src/fieldvaluehelper.h ../../../morm/src/wrapper.h
|
||||
item.o: ../../../morm/src/spacewrapper.h
|
||||
item.o: ../../../morm/src/baseobjectwrapper.h
|
||||
item.o: ../../../morm/src/modelcontainerwrapper.h
|
||||
item.o: ../../../pikotools/src/convert/text.h
|
||||
item.o: ../../../morm/src/flatexpression.h ../../../morm/src/finder.h
|
||||
item.o: ../../../morm/src/cursor.h ../../../morm/src/jsonexpression.h
|
||||
item.o: ../../../morm/src/postgresqlexpression.h
|
||||
item.o: ../../../morm/src/jsonconnector.h
|
||||
item.o: ../../../morm/src/postgresqlconnector.h
|
||||
item.o: ../../../morm/src/postgresqlqueryresult.h
|
||||
item.o: ../../../winix/winixd/core/log.h ../../../winix/winixd/core/synchro.h
|
||||
item.o: ../../../winix/winixd/core/filelog.h
|
||||
item.o: ../../../winix/winixd/core/lock.h
|
||||
item.o: ../../../winix/winixd/core/synchro.h
|
||||
item.o: ../../../pikotools/src/convert/patternreplacer.h
|
||||
item.o: ../../../pikotools/src/convert/strtoint.h
|
||||
item.o: ../../../pikotools/src/convert/text.h htmltextstream.h
|
||||
item.o: ../../../winix/winixd/core/textstream.h patterncacher.h
|
||||
item.o: ../../../winix/winixd/models/item.h
|
||||
item.o: ../../../winix/winixd/models/winixmodel.h
|
||||
item.o: ../../../winix/winixd/models/winixmodelconnector.h
|
||||
item.o: ../../../winix/winixd/models/itemcontent.h
|
||||
item.o: ../../../winix/winixd/templates/htmltextstream.h
|
||||
item.o: ../../../winix/winixd/templates/misc.h indexpatterns.h patterns.h
|
||||
item.o: changepatterns.h ../../../winix/winixd/core/cur.h
|
||||
item.o: ../../../winix/winixd/core/request.h
|
||||
item.o: ../../../winix/winixd/core/requesttypes.h
|
||||
item.o: ../../../winix/winixd/core/error.h
|
||||
item.o: ../../../winix/winixd/core/config.h
|
||||
item.o: ../../../winix/winixd/core/textstream.h
|
||||
item.o: ../../../winix/winixd/models/winixmodel.h
|
||||
item.o: ../../../winix/winixd/core/session.h
|
||||
item.o: ../../../winix/winixd/models/user.h
|
||||
item.o: ../../../winix/winixd/core/plugindata.h
|
||||
item.o: ../../../winix/winixd/core/rebus.h
|
||||
item.o: ../../../winix/winixd/core/winixbase.h
|
||||
item.o: ../../../winix/winixd/core/ipban.h ../../../winix/winixd/core/mount.h
|
||||
item.o: ../../../winix/winixd/core/system.h ../../../winix/winixd/core/job.h
|
||||
item.o: ../../../winix/winixd/core/basethread.h
|
||||
item.o: ../../../winix/winixd/core/winixmodeldeprecated.h
|
||||
item.o: ../../../winix/winixd/core/plugin.h
|
||||
item.o: ../../../winix/winixd/core/pluginmsg.h
|
||||
item.o: ../../../winix/winixd/core/dirs.h
|
||||
item.o: ../../../winix/winixd/core/dircontainer.h
|
||||
item.o: ../../../winix/winixd/db/db.h ../../../winix/winixd/db/dbbase.h
|
||||
item.o: ../../../winix/winixd/db/dbconn.h
|
||||
item.o: ../../../winix/winixd/db/dbtextstream.h
|
||||
item.o: ../../../winix/winixd/core/error.h
|
||||
item.o: ../../../winix/winixd/models/group.h
|
||||
item.o: ../../../winix/winixd/core/dircontainer.h
|
||||
item.o: ../../../winix/winixd/core/ugcontainer.h
|
||||
item.o: ../../../winix/winixd/core/mounts.h
|
||||
item.o: ../../../winix/winixd/core/mountparser.h
|
||||
item.o: ../../../winix/winixd/core/crypt.h ../../../winix/winixd/core/run.h
|
||||
item.o: ../../../winix/winixd/core/users.h
|
||||
item.o: ../../../winix/winixd/core/ugcontainer.h
|
||||
item.o: ../../../winix/winixd/core/lastcontainer.h
|
||||
item.o: ../../../winix/winixd/core/cur.h ../../../winix/winixd/core/groups.h
|
||||
item.o: ../../../winix/winixd/core/loadavg.h
|
||||
item.o: ../../../winix/winixd/core/image.h
|
||||
item.o: ../../../winix/winixd/core/threadmanager.h
|
||||
item.o: ../../../winix/winixd/models/winixmodelconnector.h
|
||||
item.o: ../../../winix/winixd/notify/notify.h
|
||||
item.o: ../../../winix/winixd/core/winixmodeldeprecated.h
|
||||
item.o: ../../../winix/winixd/notify/notifypool.h
|
||||
item.o: ../../../winix/winixd/templates/locale.h
|
||||
item.o: ../../../winix/winixd/templates/patterns.h
|
||||
item.o: ../../../winix/winixd/notify/notifythread.h
|
||||
item.o: ../../../winix/winixd/core/basethread.h
|
||||
item.o: ../../../winix/winixd/notify/templatesnotify.h
|
||||
item.o: ../../../winix/winixd/core/users.h
|
||||
item.o: ../../../winix/winixd/core/timezones.h
|
||||
item.o: ../../../winix/winixd/core/timezone.h
|
||||
item.o: ../../../winix/winixd/core/sessionmanager.h
|
||||
item.o: ../../../winix/winixd/core/sessioncontainer.h
|
||||
item.o: ../../../winix/winixd/core/ipbancontainer.h
|
||||
item.o: ../../../winix/winixd/core/system.h
|
||||
item.o: ../../../winix/winixd/core/sessionidmanager.h
|
||||
item.o: ../../../tito/src/base64.h ../../../tito/src/aes.h
|
||||
item.o: ../../../winix/winixd/core/htmlfilter.h
|
||||
item.o: ../../../winix/winixd/core/winixrequest.h
|
||||
item.o: ../../../winix/winixd/core/winixsystem.h
|
||||
item.o: ../../../winix/winixd/core/slog.h
|
||||
item.o: ../../../winix/winixd/core/request.h
|
||||
item.o: ../../../winix/winixd/core/misc.h
|
||||
item.o: ../../../winix/winixd/core/winix_const.h
|
||||
item.o: ../../../pikotools/src/convert/convert.h
|
||||
item.o: ../../../pikotools/src/convert/inttostr.h
|
||||
item.o: ../../../pikotools/src/convert/patternreplacer.h
|
||||
item.o: ../../../pikotools/src/convert/double.h
|
||||
item.o: ../../../winix/winixd/core/bbcodeparser.h
|
||||
item.o: ../../../winix/winixd/core/htmlfilter.h
|
||||
last.o: templates.h ../../../ezc/src/ezc.h ../../../ezc/src/generator.h
|
||||
last.o: ../../../ezc/src/blocks.h ../../../ezc/src/item.h
|
||||
last.o: ../../../ezc/src/cache.h ../../../ezc/src/functions.h
|
||||
|
||||
@@ -1 +1 @@
|
||||
o = adduser.o antispam.o changepatterns.o config.o currentdate.o dir.o doc.o filters.o generic.o htmltextstream.o indexpatterns.o insert.o ipban.o item.o last.o locale.o localefilter.o login.o ls.o man.o misc.o mount.o passwd.o patterncacher.o patterns.o priv.o rebus.o server.o slog.o stat.o sys.o template.o templates.o textextstream.o upload.o uptime.o user.o who.o winix.o
|
||||
o = adduser.o antispam.o changepatterns.o config.o currentdate.o dir.o doc.o filters.o generic.o htmltextstream.o indexpatterns.o insert.o ipban.o last.o locale.o localefilter.o login.o ls.o man.o misc.o mount.o passwd.o patterncacher.o patterns.o priv.o rebus.o server.o slog.o stat.o sys.o template.o templates.o textextstream.o upload.o uptime.o user.o who.o winix.o
|
||||
@@ -1,858 +0,0 @@
|
||||
/*
|
||||
* This file is a part of Winix
|
||||
* and is distributed under the 2-Clause BSD licence.
|
||||
* Author: Tomasz Sowa <t.sowa@ttmath.org>
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "templates.h"
|
||||
#include "misc.h"
|
||||
#include "core/request.h"
|
||||
#include "core/misc.h"
|
||||
#include "core/bbcodeparser.h"
|
||||
#include "core/textstream.h"
|
||||
|
||||
namespace Winix
|
||||
{
|
||||
|
||||
|
||||
namespace TemplatesFunctions
|
||||
{
|
||||
static HtmlTextStream item_run_content;
|
||||
static EzcGen ezc_generator;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//void item_is(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->is_item;
|
||||
//}
|
||||
|
||||
|
||||
//void item_no_is(Info & i)
|
||||
//{
|
||||
// i.res = !cur->request->is_item;
|
||||
//}
|
||||
|
||||
|
||||
//void item_id(Info & i)
|
||||
//{
|
||||
// i.out << cur->request->last_item->id;
|
||||
//}
|
||||
|
||||
|
||||
|
||||
//void item_subject(Info & i)
|
||||
//{
|
||||
// i.out << cur->request->last_item->subject;
|
||||
//}
|
||||
|
||||
|
||||
//void item_subject_noescape(Info & i)
|
||||
//{
|
||||
// i.out << R(cur->request->last_item->subject);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
//void item_content(Info & i)
|
||||
//{
|
||||
// i.out << cur->request->last_item->item_content.content_raw;
|
||||
//}
|
||||
|
||||
|
||||
|
||||
//void item_content_noescape(Info & i)
|
||||
//{
|
||||
// i.out << R(cur->request->last_item->item_content.content_raw);
|
||||
//}
|
||||
|
||||
|
||||
//void item_content_type_is(Item & item, Info & i)
|
||||
//{
|
||||
// i.res = false;
|
||||
//
|
||||
// if( item.item_content.content_raw_type == ItemContent::ct_text && i.par == L"text" )
|
||||
// i.res = true;
|
||||
// else
|
||||
// if( item.item_content.content_raw_type == ItemContent::ct_formatted_text && i.par == L"formatted text" )
|
||||
// i.res = true;
|
||||
// else
|
||||
// if( item.item_content.content_raw_type == ItemContent::ct_html && i.par == L"html" )
|
||||
// i.res = true;
|
||||
// else
|
||||
// if( item.item_content.content_raw_type == ItemContent::ct_bbcode && i.par == L"bbcode" )
|
||||
// i.res = true;
|
||||
// else
|
||||
// if( item.item_content.content_raw_type == ItemContent::ct_other && i.par == L"other" )
|
||||
// i.res = true;
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_content_type_is(Info & i)
|
||||
//{
|
||||
// item_content_type_is(*cur->request->last_item, i);
|
||||
//}
|
||||
|
||||
|
||||
//void item_content_is_empty(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->last_item->item_content.content_raw.empty();
|
||||
//}
|
||||
|
||||
|
||||
//void item_privileges(Info & i)
|
||||
//{
|
||||
// i.out << Toa(cur->request->last_item->item_content.privileges, 8);
|
||||
//}
|
||||
|
||||
|
||||
// RENAMED TO item.dir_link
|
||||
//void item_dir(Info & i)
|
||||
//{
|
||||
// dir(i);
|
||||
//}
|
||||
|
||||
|
||||
//void item_url(Info & i)
|
||||
//{
|
||||
// i.out << cur->request->last_item->url;
|
||||
//}
|
||||
|
||||
|
||||
//void item_url_is(Info & i)
|
||||
//{
|
||||
// i.res = (cur->request->last_item->url == i.par);
|
||||
//}
|
||||
|
||||
|
||||
//void item_url_is_no(Info & i)
|
||||
//{
|
||||
// i.res = (cur->request->last_item->url != i.par);
|
||||
//}
|
||||
|
||||
|
||||
//void item_link(Info & i)
|
||||
//{
|
||||
// doc_proto(i);
|
||||
//
|
||||
// if( !cur->request->subdomain.empty() )
|
||||
// i.out << cur->request->subdomain << '.';
|
||||
//
|
||||
// i.out << config->base_url;
|
||||
// item_dir(i);
|
||||
// item_url(i);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
//void item_filetype_is_none(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->last_item->item_content.file_type == WINIX_ITEM_FILETYPE_NONE;
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_filetype_is_image(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->last_item->item_content.file_type == WINIX_ITEM_FILETYPE_IMAGE;
|
||||
//}
|
||||
|
||||
|
||||
//void item_has_static_file(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->last_item->item_content.file_type != WINIX_ITEM_FILETYPE_NONE && !cur->request->last_item->item_content.file_path.empty();
|
||||
//}
|
||||
|
||||
|
||||
//void item_has_thumb(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->last_item->item_content.file_has_thumb;
|
||||
//}
|
||||
|
||||
|
||||
// changed to item.has_read_access
|
||||
//void item_can_read(Info & i)
|
||||
//{
|
||||
// i.res = system->HasReadAccess(*cur->request->last_item);
|
||||
//}
|
||||
|
||||
|
||||
// changed to item.has_write_access
|
||||
//void item_can_write(Info & i)
|
||||
//{
|
||||
// i.res = system->HasWriteAccess(*cur->request->last_item);
|
||||
//}
|
||||
|
||||
// changed to item.can_be_removed
|
||||
//void item_can_remove(Info & i)
|
||||
//{
|
||||
// // !! tutaj trzeba bedzie cos innego zrobic
|
||||
// // zwlaszcza jak dojdzie sticky bit
|
||||
// i.res = system->HasWriteAccess(*cur->request->dir_tab.back());
|
||||
//}
|
||||
|
||||
|
||||
//void item_user(Info & i)
|
||||
//{
|
||||
// User * puser = system->users.GetUser(cur->request->last_item->item_content.user_id);
|
||||
// print_user_name(i, puser, cur->request->last_item->item_content.guest_name);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
void item_modification_user(Info & i)
|
||||
{
|
||||
User * puser = system->users.GetUser(cur->request->last_item->item_content.modification_user_id);
|
||||
print_user_name(i, puser, cur->request->last_item->item_content.guest_name);
|
||||
}
|
||||
|
||||
|
||||
void item_users_different(Info & i)
|
||||
{
|
||||
i.res = (cur->request->last_item->item_content.user_id != cur->request->last_item->item_content.modification_user_id);
|
||||
}
|
||||
|
||||
|
||||
void item_date_creation(Info & i)
|
||||
{
|
||||
pt::Date date = system->ToLocal(cur->request->last_item->item_content.date_creation);
|
||||
i.out << DateToStr(date.year, date.month, date.day, date.hour, date.min, date.sec);
|
||||
}
|
||||
|
||||
|
||||
void item_date_modification(Info & i)
|
||||
{
|
||||
pt::Date date = system->ToLocal(cur->request->last_item->item_content.date_modification);
|
||||
i.out << DateToStr(date.year, date.month, date.day, date.hour, date.min, date.sec);
|
||||
}
|
||||
|
||||
|
||||
void item_date_creation_nice(Info & i)
|
||||
{
|
||||
print_date_nice(i, cur->request->last_item->item_content.date_creation);
|
||||
}
|
||||
|
||||
|
||||
void item_date_modification_nice(Info & i)
|
||||
{
|
||||
print_date_nice(i, cur->request->last_item->item_content.date_modification);
|
||||
}
|
||||
|
||||
|
||||
void item_dates_equal(Info & i)
|
||||
{
|
||||
pt::Date & date1 = cur->request->last_item->item_content.date_creation;
|
||||
pt::Date & date2 = cur->request->last_item->item_content.date_modification;
|
||||
|
||||
i.res = date1 == date2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//void item_run(Info & i)
|
||||
//{
|
||||
// if( !cur->request->is_item )
|
||||
// {
|
||||
// i.out << "<!-- there is no an item to run -->";
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// if( system->HasReadExecAccess(*cur->request->last_item) )
|
||||
// {
|
||||
// Ezc::Pattern * p = pattern_cacher.GetPattern(*cur->request->last_item);
|
||||
//
|
||||
// item_run_content.Clear();
|
||||
// InitGenerator(ezc_generator, cur->request->models);
|
||||
// ezc_generator.SetPattern(*p);
|
||||
//
|
||||
// if( config->allow_ezc_frames_in_executable_items )
|
||||
// ezc_generator.Generate(item_run_content, cur->request->out_streams);
|
||||
// else
|
||||
// ezc_generator.Generate(item_run_content);
|
||||
//
|
||||
// ItemContent::print_content(i.out, item_run_content.Str(), cur->request->last_item->item_content.content_raw_type, config->html_filter);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// i.out << "<!-- run: permission denied -->";
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
//void item_guest_name(Info & i)
|
||||
//{
|
||||
// i.out << cur->request->last_item->item_content.guest_name;
|
||||
//}
|
||||
|
||||
|
||||
//void item_html_template(Info & i)
|
||||
//{
|
||||
// i.out << cur->request->last_item->html_template;
|
||||
//}
|
||||
|
||||
|
||||
void item_has_html_template(Info & i)
|
||||
{
|
||||
i.res = !cur->request->last_item->html_template.empty();
|
||||
}
|
||||
|
||||
|
||||
//void item_type_is_dir(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->last_item->type == Item::dir;
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_type_is_file(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->last_item->type == Item::file;
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_type_is_symlink(Info & i)
|
||||
//{
|
||||
// i.res = cur->request->last_item->type == Item::symlink;
|
||||
//}
|
||||
|
||||
|
||||
void item_is_link_to(Info & i)
|
||||
{
|
||||
i.res = !cur->request->last_item->item_content.link_to.empty();
|
||||
}
|
||||
|
||||
|
||||
void item_link_to(Info & i)
|
||||
{
|
||||
i.out << cur->request->last_item->item_content.link_to;
|
||||
}
|
||||
|
||||
|
||||
void item_is_link_redirect(Info & i)
|
||||
{
|
||||
i.res = cur->request->last_item->item_content.link_redirect == 1;
|
||||
}
|
||||
|
||||
void item_file_size(Info & i)
|
||||
{
|
||||
i.res = cur->request->last_item->item_content.file_size;
|
||||
}
|
||||
|
||||
void item_sort(Info & i)
|
||||
{
|
||||
i.out << cur->request->last_item->sort_index;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//void item_meta_str(Info & i)
|
||||
//{
|
||||
// cur->request->last_item->item_content.meta.serialize_to_space_stream(i.out, true);
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_meta(Info & i)
|
||||
//{
|
||||
// space_value(i, cur->request->last_item->item_content.meta);
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_meta_noescape(Info & i)
|
||||
//{
|
||||
// space_value(i, cur->request->last_item->item_content.meta, false);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
//void item_meta_tab(Info & i)
|
||||
//{
|
||||
// space_list_tab(i, cur->request->last_item->item_content.meta);
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_meta_tab_value(Info & i)
|
||||
//{
|
||||
// space_list_tab_value(i, cur->request->last_item->item_content.meta, L"item_meta_tab");
|
||||
//}
|
||||
//
|
||||
//
|
||||
//
|
||||
//void item_meta_tab_has_next(Info & i)
|
||||
//{
|
||||
// space_list_tab_has_next(i, cur->request->last_item->item_content.meta, L"item_meta_tab");
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
//void item_admin_meta_str(Info & i)
|
||||
//{
|
||||
// cur->request->last_item->item_content.meta_admin.serialize_to_space_stream(i.out, true);
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_admin_meta(Info & i)
|
||||
//{
|
||||
// space_value(i, cur->request->last_item->item_content.meta_admin);
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_admin_meta_tab(Info & i)
|
||||
//{
|
||||
// space_list_tab(i, cur->request->last_item->item_content.meta_admin);
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_admin_meta_tab_value(Info & i)
|
||||
//{
|
||||
// space_list_tab_value(i, cur->request->last_item->item_content.meta_admin, L"item_admin_meta_tab");
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void item_admin_meta_tab_has_next(Info & i)
|
||||
//{
|
||||
// space_list_tab_has_next(i, cur->request->last_item->item_content.meta_admin, L"item_admin_meta_tab");
|
||||
//}
|
||||
//
|
||||
|
||||
void item_can_content_be_html_filtered(Info & i)
|
||||
{
|
||||
i.res = cur->request->last_item->item_content.CanContentBeHtmlFiltered();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
static size_t item_index;
|
||||
|
||||
|
||||
void item_tab(Info & i)
|
||||
{
|
||||
item_index = i.iter;
|
||||
i.res = item_index < cur->request->item_tab.size();
|
||||
}
|
||||
|
||||
|
||||
void item_tab_index(Info & i)
|
||||
{
|
||||
i.out << item_index;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_id(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].id;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_subject(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].subject;
|
||||
}
|
||||
|
||||
void item_tab_subject_noescape(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << R(cur->request->item_tab[item_index].subject);
|
||||
}
|
||||
|
||||
|
||||
void item_tab_content(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].item_content.content_raw;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_content_noescape(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << R(cur->request->item_tab[item_index].item_content.content_raw);
|
||||
}
|
||||
|
||||
|
||||
void item_tab_print_content(Info & i)
|
||||
{
|
||||
if( item_index >= cur->request->item_tab.size() )
|
||||
return;
|
||||
|
||||
std::wstring & content = cur->request->item_tab[item_index].item_content.content_raw;
|
||||
ItemContent::ContentType type = cur->request->item_tab[item_index].item_content.content_raw_type;
|
||||
|
||||
item_print_content(i.out, content, type);
|
||||
}
|
||||
|
||||
|
||||
void item_tab_privileges(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << "0" << Toa(cur->request->item_tab[item_index].item_content.privileges, 8);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_dir(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
std::wstring path;
|
||||
|
||||
if( system->dirs.MakePath(cur->request->item_tab[item_index].parent_id, path) )
|
||||
i.out << path;
|
||||
else
|
||||
i.out << "/the path does not exist/"; // !! IMPROVEME move me to locales and put some info to log
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_url(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].url;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_link(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
doc_proto(i);
|
||||
|
||||
if( !cur->request->subdomain.empty() )
|
||||
i.out << cur->request->subdomain << '.';
|
||||
|
||||
i.out << config->base_url;
|
||||
item_tab_dir(i);
|
||||
item_tab_url(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_filetype_is_none(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].item_content.file_type == WINIX_ITEM_FILETYPE_NONE;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_filetype_is_image(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].item_content.file_type == WINIX_ITEM_FILETYPE_IMAGE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_can_read(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
if( system->HasReadAccess(cur->request->item_tab[item_index]) )
|
||||
i.res = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_can_write(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
if( system->HasWriteAccess(cur->request->item_tab[item_index]) )
|
||||
i.res = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_user(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
User * puser = system->users.GetUser(cur->request->item_tab[item_index].item_content.user_id);
|
||||
print_user_name(i, puser, cur->request->item_tab[item_index].item_content.guest_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_modification_user(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
User * puser = system->users.GetUser(cur->request->item_tab[item_index].item_content.modification_user_id);
|
||||
print_user_name(i, puser, cur->request->item_tab[item_index].item_content.guest_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_users_different(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
i.res = (cur->request->item_tab[item_index].item_content.user_id != cur->request->item_tab[item_index].item_content.modification_user_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_group(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
long group_id = cur->request->item_tab[item_index].item_content.group_id;
|
||||
Group * pgroup = system->groups.GetGroup(group_id);
|
||||
|
||||
if( pgroup )
|
||||
i.out << pgroup->name;
|
||||
else
|
||||
i.out << group_id;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_date_creation(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
pt::Date date = system->ToLocal(cur->request->item_tab[item_index].item_content.date_creation);
|
||||
i.out << DateToStr(date.year, date.month, date.day, date.hour, date.min, date.sec);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_date_modification(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
pt::Date date = system->ToLocal(cur->request->item_tab[item_index].item_content.date_modification);
|
||||
i.out << DateToStr(date.year, date.month, date.day, date.hour, date.min, date.sec);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_date_creation_nice(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
print_date_nice(i, cur->request->item_tab[item_index].item_content.date_creation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_date_modification_nice(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
print_date_nice(i, cur->request->item_tab[item_index].item_content.date_modification);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_dates_equal(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
pt::Date & date1 = cur->request->item_tab[item_index].item_content.date_creation;
|
||||
pt::Date & date2 = cur->request->item_tab[item_index].item_content.date_modification;
|
||||
|
||||
i.res = date1 == date2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_run(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
if( system->HasReadExecAccess(cur->request->item_tab[item_index]) )
|
||||
{
|
||||
Ezc::Pattern * p = pattern_cacher.GetPattern(cur->request->item_tab[item_index]);
|
||||
item_run_content.Clear();
|
||||
InitGenerator(ezc_generator, cur->request->models);
|
||||
ezc_generator.SetPattern(*p);
|
||||
|
||||
if( config->allow_ezc_frames_in_executable_items )
|
||||
ezc_generator.Generate(item_run_content, cur->request->out_streams);
|
||||
else
|
||||
ezc_generator.Generate(item_run_content);
|
||||
|
||||
item_print_content(i.out, item_run_content.Str(), cur->request->item_tab[item_index].item_content.content_raw_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
i.out << "<!-- run: permission denied -->";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_can_use_emacs(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
// !!
|
||||
//i.res = cur->request->CanUseEmacs(cur->request->item_tab[item_index], true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_has_static_file(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
{
|
||||
i.res = cur->request->item_tab[item_index].item_content.file_type != WINIX_ITEM_FILETYPE_NONE &&
|
||||
!cur->request->item_tab[item_index].item_content.file_path.empty();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void item_tab_has_thumb(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].item_content.file_has_thumb;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_type_is_dir(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].type == Item::dir;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_type_is_file(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].type == Item::file;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_type_is_symlink(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].type == Item::symlink;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_is_link_to(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = !cur->request->item_tab[item_index].item_content.link_to.empty();
|
||||
}
|
||||
|
||||
|
||||
void item_tab_link_to(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].item_content.link_to;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_is_link_redirect(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.res = cur->request->item_tab[item_index].item_content.link_redirect == 1;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_file_size(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].item_content.file_size;
|
||||
}
|
||||
|
||||
void item_tab_sort(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].sort_index;
|
||||
}
|
||||
|
||||
void item_tab_has_next(Info & i)
|
||||
{
|
||||
i.res = item_index + 1 < cur->request->item_tab.size();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_meta_str(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
cur->request->item_tab[item_index].item_content.meta.serialize_to_space_stream(i.out, true);
|
||||
}
|
||||
|
||||
|
||||
void item_tab_meta(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
space_value(i, cur->request->item_tab[item_index].item_content.meta);
|
||||
}
|
||||
|
||||
void item_tab_meta_noescape(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
space_value(i, cur->request->item_tab[item_index].item_content.meta, false);
|
||||
}
|
||||
|
||||
void item_tab_meta_tab(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
space_list_tab(i, cur->request->item_tab[item_index].item_content.meta);
|
||||
}
|
||||
|
||||
|
||||
void item_tab_meta_tab_value(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
space_list_tab_value(i, cur->request->item_tab[item_index].item_content.meta, L"item_tab_meta_tab");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void item_tab_meta_tab_has_next(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
space_list_tab_has_next(i, cur->request->item_tab[item_index].item_content.meta, L"item_tab_meta_tab");
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
} // namespace Winix
|
||||
|
||||
|
||||
|
||||
@@ -339,29 +339,6 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("doc_css_more_than_one", doc_css_more_than_one);
|
||||
|
||||
|
||||
/*
|
||||
env
|
||||
*/
|
||||
// ezc_functions.Insert("env_str", env_str);
|
||||
// ezc_functions.Insert("env", env);
|
||||
// ezc_functions.Insert("env_tab", env_tab);
|
||||
// ezc_functions.Insert("env_tab_value", env_tab_value);
|
||||
// ezc_functions.Insert("env_tab_has_next", env_tab_has_next);
|
||||
// ezc_functions.Insert("env_admin_str", env_admin_str);
|
||||
// ezc_functions.Insert("env_admin", env_admin);
|
||||
// ezc_functions.Insert("env_admin_tab", env_admin_tab);
|
||||
// ezc_functions.Insert("env_admin_tab_value", env_admin_tab_value);
|
||||
// ezc_functions.Insert("env_admin_tab_has_next", env_admin_tab_has_next);
|
||||
// ezc_functions.Insert("env_user_admin_env_str", env_user_admin_env_str);
|
||||
// ezc_functions.Insert("env_user_env_str", env_user_env_str);
|
||||
// ezc_functions.Insert("env_user_id", env_user_id);
|
||||
// ezc_functions.Insert("env_user_name", env_user_name);
|
||||
// ezc_functions.Insert("env_user_tab", env_user_tab);
|
||||
// ezc_functions.Insert("env_user_tab_id", env_user_tab_id);
|
||||
// ezc_functions.Insert("env_user_tab_name", env_user_tab_name);
|
||||
// ezc_functions.Insert("env_user_tab_is_current", env_user_tab_is_current);
|
||||
|
||||
|
||||
/*
|
||||
filters
|
||||
*/
|
||||
@@ -429,111 +406,6 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("ipban_tab_is_logging_allowed", ipban_tab_is_logging_allowed);
|
||||
|
||||
|
||||
/*
|
||||
item
|
||||
*/
|
||||
//ezc_functions.Insert("item_is", item_is);
|
||||
//ezc_functions.Insert("item_no_is", item_no_is);
|
||||
// ezc_functions.Insert("item_id", item_id);
|
||||
// ezc_functions.Insert("item_subject", item_subject);
|
||||
// ezc_functions.Insert("item_subject_noescape", item_subject_noescape);
|
||||
// ezc_functions.Insert("item_content_is_empty", item_content_is_empty);
|
||||
// ezc_functions.Insert("item_content", item_content);
|
||||
// ezc_functions.Insert("item_content_noescape", item_content_noescape);
|
||||
// ezc_functions.Insert("item_content_type_is", item_content_type_is);
|
||||
//ezc_functions.Insert("item_privileges", item_privileges);
|
||||
// ezc_functions.Insert("item_dir", item_dir);
|
||||
// ezc_functions.Insert("item_url", item_url);
|
||||
// ezc_functions.Insert("item_url_is", item_url_is);
|
||||
// ezc_functions.Insert("item_url_is_no", item_url_is_no);
|
||||
// ezc_functions.Insert("item_link", item_link);
|
||||
// ezc_functions.Insert("item_filetype_is_none", item_filetype_is_none);
|
||||
// ezc_functions.Insert("item_filetype_is_image", item_filetype_is_image);
|
||||
//ezc_functions.Insert("item_has_static_file", item_has_static_file);
|
||||
// ezc_functions.Insert("item_has_thumb", item_has_thumb);
|
||||
|
||||
// ezc_functions.Insert("item_can_read", item_can_read);
|
||||
// ezc_functions.Insert("item_can_write", item_can_write);
|
||||
// ezc_functions.Insert("item_can_remove", item_can_remove);
|
||||
//ezc_functions.Insert("item_user", item_user);
|
||||
ezc_functions.Insert("item_modification_user", item_modification_user);
|
||||
ezc_functions.Insert("item_users_different", item_users_different);
|
||||
ezc_functions.Insert("item_date_creation", item_date_creation);
|
||||
ezc_functions.Insert("item_date_modification", item_date_modification);
|
||||
ezc_functions.Insert("item_date_creation_nice", item_date_creation_nice);
|
||||
ezc_functions.Insert("item_date_modification_nice",item_date_modification_nice);
|
||||
ezc_functions.Insert("item_dates_equal", item_dates_equal);
|
||||
// ezc_functions.Insert("item_run", item_run);
|
||||
// ezc_functions.Insert("item_guest_name", item_guest_name);
|
||||
// ezc_functions.Insert("item_html_template", item_html_template);
|
||||
ezc_functions.Insert("item_has_html_template", item_has_html_template);
|
||||
// ezc_functions.Insert("item_type_is_dir", item_type_is_dir);
|
||||
// ezc_functions.Insert("item_type_is_file", item_type_is_file);
|
||||
// ezc_functions.Insert("item_type_is_symlink", item_type_is_symlink);
|
||||
ezc_functions.Insert("item_is_link_to", item_is_link_to);
|
||||
ezc_functions.Insert("item_link_to", item_link_to);
|
||||
ezc_functions.Insert("item_is_link_redirect", item_is_link_redirect);
|
||||
ezc_functions.Insert("item_file_size", item_file_size);
|
||||
ezc_functions.Insert("item_sort", item_sort);
|
||||
// ezc_functions.Insert("item_meta_str", item_meta_str);
|
||||
// ezc_functions.Insert("item_meta", item_meta);
|
||||
// ezc_functions.Insert("item_meta_noescape", item_meta_noescape);
|
||||
// ezc_functions.Insert("item_meta_tab", item_meta_tab);
|
||||
// ezc_functions.Insert("item_meta_tab_value", item_meta_tab_value);
|
||||
// ezc_functions.Insert("item_meta_tab_has_next", item_meta_tab_has_next);
|
||||
// ezc_functions.Insert("item_admin_meta_str", item_admin_meta_str);
|
||||
// ezc_functions.Insert("item_admin_meta", item_admin_meta);
|
||||
// ezc_functions.Insert("item_admin_meta_tab", item_admin_meta_tab);
|
||||
// ezc_functions.Insert("item_admin_meta_tab_value", item_admin_meta_tab_value);
|
||||
// ezc_functions.Insert("item_admin_meta_tab_has_next", item_admin_meta_tab_has_next);
|
||||
ezc_functions.Insert("item_can_content_be_html_filtered", item_can_content_be_html_filtered);
|
||||
|
||||
/*
|
||||
ezc_functions.Insert("item_tab", item_tab);
|
||||
ezc_functions.Insert("item_tab_index", item_tab_index);
|
||||
ezc_functions.Insert("item_tab_id", item_tab_id);
|
||||
ezc_functions.Insert("item_tab_subject", item_tab_subject);
|
||||
ezc_functions.Insert("item_tab_subject_noescape", item_tab_subject_noescape);
|
||||
ezc_functions.Insert("item_tab_content", item_tab_content);
|
||||
ezc_functions.Insert("item_tab_content_noescape", item_tab_content_noescape);
|
||||
ezc_functions.Insert("item_tab_print_content", item_tab_print_content);
|
||||
ezc_functions.Insert("item_tab_privileges", item_tab_privileges);
|
||||
ezc_functions.Insert("item_tab_dir", item_tab_dir);
|
||||
ezc_functions.Insert("item_tab_url", item_tab_url);
|
||||
ezc_functions.Insert("item_tab_link", item_tab_link);
|
||||
ezc_functions.Insert("item_tab_filetype_is_none", item_tab_filetype_is_none);
|
||||
ezc_functions.Insert("item_tab_filetype_is_image", item_tab_filetype_is_image);
|
||||
ezc_functions.Insert("item_tab_can_read", item_tab_can_read);
|
||||
ezc_functions.Insert("item_tab_can_write", item_tab_can_write);
|
||||
ezc_functions.Insert("item_tab_user", item_tab_user);
|
||||
ezc_functions.Insert("item_tab_modification_user", item_tab_modification_user);
|
||||
ezc_functions.Insert("item_tab_users_different", item_tab_users_different);
|
||||
ezc_functions.Insert("item_tab_group", item_tab_group);
|
||||
ezc_functions.Insert("item_tab_date_creation", item_tab_date_creation);
|
||||
ezc_functions.Insert("item_tab_date_modification", item_tab_date_modification);
|
||||
ezc_functions.Insert("item_tab_date_creation_nice", item_tab_date_creation_nice);
|
||||
ezc_functions.Insert("item_tab_date_modification_nice", item_tab_date_modification_nice);
|
||||
ezc_functions.Insert("item_tab_dates_equal", item_tab_dates_equal);
|
||||
ezc_functions.Insert("item_tab_run", item_tab_run);
|
||||
ezc_functions.Insert("item_tab_can_use_emacs", item_tab_can_use_emacs);
|
||||
ezc_functions.Insert("item_tab_has_static_file", item_tab_has_static_file);
|
||||
ezc_functions.Insert("item_tab_has_thumb", item_tab_has_thumb);
|
||||
ezc_functions.Insert("item_tab_type_is_dir", item_tab_type_is_dir);
|
||||
ezc_functions.Insert("item_tab_type_is_file", item_tab_type_is_file);
|
||||
ezc_functions.Insert("item_tab_type_is_symlink", item_tab_type_is_symlink);
|
||||
ezc_functions.Insert("item_tab_is_link_to", item_tab_is_link_to);
|
||||
ezc_functions.Insert("item_tab_link_to", item_tab_link_to);
|
||||
ezc_functions.Insert("item_tab_is_link_redirect", item_tab_is_link_redirect);
|
||||
ezc_functions.Insert("item_tab_file_size", item_tab_file_size);
|
||||
ezc_functions.Insert("item_tab_sort", item_tab_sort);
|
||||
ezc_functions.Insert("item_tab_has_next", item_tab_has_next);
|
||||
ezc_functions.Insert("item_tab_meta_str", item_tab_meta_str);
|
||||
ezc_functions.Insert("item_tab_meta", item_tab_meta);
|
||||
ezc_functions.Insert("item_tab_meta_noescape", item_tab_meta_noescape);
|
||||
ezc_functions.Insert("item_tab_meta_tab", item_tab_meta_tab);
|
||||
ezc_functions.Insert("item_tab_meta_tab_value", item_tab_meta_tab_value);
|
||||
ezc_functions.Insert("item_tab_meta_tab_has_next", item_tab_meta_tab_has_next);
|
||||
*/
|
||||
|
||||
/*
|
||||
last
|
||||
|
||||
@@ -229,29 +229,6 @@ namespace TemplatesFunctions
|
||||
void doc_css_more_than_one(Info & i);
|
||||
|
||||
|
||||
/*
|
||||
env
|
||||
*/
|
||||
// void env_str(Info & i);
|
||||
// void env(Info & i);
|
||||
// void env_tab(Info & i);
|
||||
// void env_tab_value(Info & i);
|
||||
// void env_tab_has_next(Info & i);
|
||||
// void env_admin_str(Info & i);
|
||||
// void env_admin(Info & i);
|
||||
// void env_admin_tab(Info & i);
|
||||
// void env_admin_tab_value(Info & i);
|
||||
// void env_admin_tab_has_next(Info & i);
|
||||
// void env_user_admin_env_str(Info & i);
|
||||
// void env_user_env_str(Info & i);
|
||||
// void env_user_id(Info & i);
|
||||
// void env_user_name(Info & i);
|
||||
// void env_user_tab(Info & i);
|
||||
// void env_user_tab_id(Info & i);
|
||||
// void env_user_tab_name(Info & i);
|
||||
// void env_user_tab_is_current(Info & i);
|
||||
|
||||
|
||||
/*
|
||||
filters
|
||||
*/
|
||||
@@ -319,111 +296,6 @@ namespace TemplatesFunctions
|
||||
void ipban_tab_is_logging_allowed(Info & i);
|
||||
|
||||
|
||||
/*
|
||||
item
|
||||
*/
|
||||
//void item_is(Info & i);
|
||||
//void item_no_is(Info & i);
|
||||
//void item_id(Info & i);
|
||||
//void item_subject(Info & i);
|
||||
//void item_subject_noescape(Info & i);
|
||||
//void item_content(Info & i);
|
||||
//void item_content_noescape(Info & i);
|
||||
//void item_content_type_is(Item & item, Info & i);
|
||||
//void item_content_type_is(Info & i);
|
||||
//void item_content_is_empty(Info & i);
|
||||
//void item_privileges(Info & i);
|
||||
//void item_dir(Info & i); // RENAMED TO item.dir_link
|
||||
//void item_url(Info & i);
|
||||
//void item_url_is(Info & i);
|
||||
//void item_url_is_no(Info & i);
|
||||
//void item_link(Info & i);
|
||||
//void item_filetype_is_none(Info & i);
|
||||
//void item_filetype_is_image(Info & i);
|
||||
//void item_has_static_file(Info & i);
|
||||
//void item_has_thumb(Info & i);
|
||||
// void item_can_read(Info & i);
|
||||
// void item_can_write(Info & i);
|
||||
// void item_can_remove(Info & i);
|
||||
//void item_user(Info & i);
|
||||
void item_modification_user(Info & i);
|
||||
void item_users_different(Info & i);
|
||||
void item_date_creation(Info & i);
|
||||
void item_date_modification(Info & i);
|
||||
void item_date_creation_nice(Info & i);
|
||||
void item_date_modification_nice(Info & i);
|
||||
void item_dates_equal(Info & i);
|
||||
//void item_run(Info & i);
|
||||
//void item_guest_name(Info & i);
|
||||
//void item_html_template(Info & i);
|
||||
void item_has_html_template(Info & i);
|
||||
//void item_type_is_dir(Info & i);
|
||||
//void item_type_is_file(Info & i);
|
||||
//void item_type_is_symlink(Info & i);
|
||||
void item_is_link_to(Info & i);
|
||||
void item_link_to(Info & i);
|
||||
void item_is_link_redirect(Info & i);
|
||||
void item_file_size(Info & i);
|
||||
void item_sort(Info & i);
|
||||
//void item_meta_str(Info & i);
|
||||
//void item_meta(Info & i);
|
||||
//void item_meta_noescape(Info & i);
|
||||
// void item_meta_tab(Info & i);
|
||||
// void item_meta_tab_value(Info & i);
|
||||
// void item_meta_tab_has_next(Info & i);
|
||||
// void item_admin_meta_str(Info & i);
|
||||
// void item_admin_meta(Info & i);
|
||||
// void item_admin_meta_tab(Info & i);
|
||||
// void item_admin_meta_tab_value(Info & i);
|
||||
// void item_admin_meta_tab_has_next(Info & i);
|
||||
void item_can_content_be_html_filtered(Info & i);
|
||||
|
||||
/*
|
||||
void item_tab(Info & i);
|
||||
void item_tab_index(Info & i);
|
||||
void item_tab_id(Info & i);
|
||||
void item_tab_subject(Info & i);
|
||||
void item_tab_subject_noescape(Info & i);
|
||||
void item_tab_content(Info & i);
|
||||
void item_tab_content_noescape(Info & i);
|
||||
void item_tab_print_content(Info & i);
|
||||
void item_tab_privileges(Info & i);
|
||||
void item_tab_dir(Info & i);
|
||||
void item_tab_url(Info & i);
|
||||
void item_tab_link(Info & i);
|
||||
void item_tab_filetype_is_none(Info & i);
|
||||
void item_tab_filetype_is_image(Info & i);
|
||||
void item_tab_can_read(Info & i);
|
||||
void item_tab_can_write(Info & i);
|
||||
void item_tab_user(Info & i);
|
||||
void item_tab_modification_user(Info & i);
|
||||
void item_tab_users_different(Info & i);
|
||||
void item_tab_group(Info & i);
|
||||
void item_tab_date_creation(Info & i);
|
||||
void item_tab_date_modification(Info & i);
|
||||
void item_tab_date_creation_nice(Info & i);
|
||||
void item_tab_date_modification_nice(Info & i);
|
||||
void item_tab_dates_equal(Info & i);
|
||||
void item_tab_run(Info & i);
|
||||
void item_tab_can_use_emacs(Info & i);
|
||||
void item_tab_has_static_file(Info & i);
|
||||
void item_tab_has_thumb(Info & i);
|
||||
void item_tab_type_is_dir(Info & i);
|
||||
void item_tab_type_is_file(Info & i);
|
||||
void item_tab_type_is_symlink(Info & i);
|
||||
void item_tab_is_link_to(Info & i);
|
||||
void item_tab_link_to(Info & i);
|
||||
void item_tab_is_link_redirect(Info & i);
|
||||
void item_tab_file_size(Info & i);
|
||||
void item_tab_sort(Info & i);
|
||||
void item_tab_has_next(Info & i);
|
||||
void item_tab_meta_str(Info & i);
|
||||
void item_tab_meta(Info & i);
|
||||
void item_tab_meta_noescape(Info & i);
|
||||
void item_tab_meta_tab(Info & i);
|
||||
void item_tab_meta_tab_value(Info & i);
|
||||
void item_tab_meta_tab_has_next(Info & i);
|
||||
*/
|
||||
|
||||
/*
|
||||
last
|
||||
|
||||
Reference in New Issue
Block a user