removed: Done class (core/done.h, core/done.cpp)
removed: from Session: done, done_status, timers git-svn-id: svn://ttmath.org/publicrep/winix/trunk@594 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -3,16 +3,15 @@
|
||||
adduser.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
adduser.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
adduser.o: ../core/httpsimpleparser.h ../core/log.h ../core/request.h
|
||||
adduser.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
adduser.o: ../core/item.h ../core/error.h ../core/log.h ../core/user.h
|
||||
adduser.o: ../core/rebus.h ../core/function.h ../core/thread.h
|
||||
adduser.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
adduser.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
adduser.o: ../core/postmultiparser.h ../core/ticket.h
|
||||
adduser.o: ../core/requesttypes.h ../core/session.h ../core/item.h
|
||||
adduser.o: ../core/error.h ../core/log.h ../core/user.h ../core/rebus.h
|
||||
adduser.o: ../core/function.h ../core/thread.h ../core/compress.h
|
||||
adduser.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
adduser.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
dir.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
dir.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
dir.o: ../core/httpsimpleparser.h ../core/log.h ../core/request.h
|
||||
dir.o: ../core/requesttypes.h ../core/session.h ../core/done.h ../core/item.h
|
||||
dir.o: ../core/requesttypes.h ../core/session.h ../core/item.h
|
||||
dir.o: ../core/error.h ../core/log.h ../core/user.h ../core/rebus.h
|
||||
dir.o: ../core/function.h ../core/thread.h ../core/compress.h
|
||||
dir.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
@@ -29,19 +28,10 @@ doc.o: ../core/ugcontainer.h ../core/log.h ../core/groups.h ../core/group.h
|
||||
doc.o: ../core/functions.h ../core/function.h ../core/lastcontainer.h
|
||||
doc.o: ../core/mounts.h ../core/mount.h ../core/error.h ../core/rebus.h
|
||||
doc.o: ../core/loadavg.h ../core/request.h ../core/requesttypes.h
|
||||
doc.o: ../core/session.h ../core/done.h ../core/thread.h ../core/compress.h
|
||||
doc.o: ../core/session.h ../core/thread.h ../core/compress.h
|
||||
doc.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
doc.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
doc.o: ../core/misc.h
|
||||
done.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
done.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
done.o: ../core/httpsimpleparser.h ../core/log.h ../core/request.h
|
||||
done.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
done.o: ../core/item.h ../core/error.h ../core/log.h ../core/user.h
|
||||
done.o: ../core/rebus.h ../core/function.h ../core/thread.h
|
||||
done.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
done.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
done.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
|
||||
item.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
item.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
item.o: ../core/httpsimpleparser.h ../core/log.h ../core/data.h
|
||||
@@ -50,8 +40,8 @@ item.o: ../core/user.h ../core/ugcontainer.h ../core/log.h ../core/groups.h
|
||||
item.o: ../core/group.h ../core/functions.h ../core/function.h
|
||||
item.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h
|
||||
item.o: ../core/error.h ../core/rebus.h ../core/loadavg.h ../core/request.h
|
||||
item.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
item.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
item.o: ../core/requesttypes.h ../core/session.h ../core/thread.h
|
||||
item.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
item.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
item.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
|
||||
last.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
@@ -63,20 +53,19 @@ last.o: ../core/groups.h ../core/group.h ../core/functions.h
|
||||
last.o: ../core/function.h ../core/lastcontainer.h ../core/mounts.h
|
||||
last.o: ../core/mount.h ../core/error.h ../core/rebus.h ../core/loadavg.h
|
||||
last.o: ../core/request.h ../core/requesttypes.h ../core/session.h
|
||||
last.o: ../core/done.h ../core/thread.h ../core/compress.h
|
||||
last.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
last.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
last.o: ../core/misc.h
|
||||
last.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
last.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
last.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
|
||||
localefilter.o: localefilter.h ../core/locale.h ../confparser/confparser.h
|
||||
localefilter.o: ../core/misc.h ../core/item.h
|
||||
ls.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
ls.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
ls.o: ../core/httpsimpleparser.h ../core/log.h ../core/request.h
|
||||
ls.o: ../core/requesttypes.h ../core/session.h ../core/done.h ../core/item.h
|
||||
ls.o: ../core/error.h ../core/log.h ../core/user.h ../core/rebus.h
|
||||
ls.o: ../core/function.h ../core/thread.h ../core/compress.h
|
||||
ls.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
ls.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
ls.o: ../core/requesttypes.h ../core/session.h ../core/item.h ../core/error.h
|
||||
ls.o: ../core/log.h ../core/user.h ../core/rebus.h ../core/function.h
|
||||
ls.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
ls.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
ls.o: ../core/postmultiparser.h ../core/ticket.h
|
||||
misc.o: ../core/data.h ../core/dirs.h ../core/item.h ../core/dircontainer.h
|
||||
misc.o: ../core/users.h ../core/user.h ../core/ugcontainer.h ../core/log.h
|
||||
misc.o: ../core/groups.h ../core/group.h ../core/functions.h
|
||||
@@ -107,13 +96,13 @@ priv.o: ../core/user.h ../core/ugcontainer.h ../core/log.h ../core/groups.h
|
||||
priv.o: ../core/group.h ../core/functions.h ../core/function.h
|
||||
priv.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h
|
||||
priv.o: ../core/error.h ../core/rebus.h ../core/loadavg.h ../core/request.h
|
||||
priv.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
priv.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
priv.o: ../core/requesttypes.h ../core/session.h ../core/thread.h
|
||||
priv.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
priv.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
priv.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
|
||||
rebus.o: ../core/request.h ../core/requesttypes.h ../core/session.h
|
||||
rebus.o: ../core/done.h ../core/item.h ../core/error.h ../core/log.h
|
||||
rebus.o: ../core/user.h ../core/rebus.h ../core/function.h ../core/thread.h
|
||||
rebus.o: ../core/item.h ../core/error.h ../core/log.h ../core/user.h
|
||||
rebus.o: ../core/rebus.h ../core/function.h ../core/thread.h
|
||||
rebus.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
rebus.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
rebus.o: ../core/postmultiparser.h ../core/ticket.h ../core/data.h
|
||||
@@ -132,7 +121,7 @@ sys.o: ../core/ugcontainer.h ../core/log.h ../core/groups.h ../core/group.h
|
||||
sys.o: ../core/functions.h ../core/function.h ../core/lastcontainer.h
|
||||
sys.o: ../core/mounts.h ../core/mount.h ../core/error.h ../core/rebus.h
|
||||
sys.o: ../core/loadavg.h ../core/request.h ../core/requesttypes.h
|
||||
sys.o: ../core/session.h ../core/done.h ../core/thread.h ../core/compress.h
|
||||
sys.o: ../core/session.h ../core/thread.h ../core/compress.h
|
||||
sys.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
sys.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
sys.o: ../core/misc.h
|
||||
@@ -145,11 +134,10 @@ templates.o: ../core/log.h ../core/groups.h ../core/group.h
|
||||
templates.o: ../core/functions.h ../core/function.h ../core/lastcontainer.h
|
||||
templates.o: ../core/mounts.h ../core/mount.h ../core/error.h ../core/rebus.h
|
||||
templates.o: ../core/loadavg.h ../core/request.h ../core/requesttypes.h
|
||||
templates.o: ../core/session.h ../core/done.h ../core/thread.h
|
||||
templates.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
templates.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
templates.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
|
||||
templates.o: ../core/plugin.h ../core/request.h ../core/data.h
|
||||
templates.o: ../core/session.h ../core/thread.h ../core/compress.h
|
||||
templates.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
templates.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
templates.o: ../core/misc.h ../core/plugin.h ../core/request.h ../core/data.h
|
||||
templates.o: ../core/pluginmsg.h
|
||||
thread.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
thread.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
@@ -160,10 +148,9 @@ thread.o: ../core/groups.h ../core/group.h ../core/functions.h
|
||||
thread.o: ../core/function.h ../core/lastcontainer.h ../core/mounts.h
|
||||
thread.o: ../core/mount.h ../core/error.h ../core/rebus.h ../core/loadavg.h
|
||||
thread.o: ../core/request.h ../core/requesttypes.h ../core/session.h
|
||||
thread.o: ../core/done.h ../core/thread.h ../core/compress.h
|
||||
thread.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
thread.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
thread.o: ../core/misc.h
|
||||
thread.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
thread.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
thread.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
|
||||
ticket.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
ticket.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
ticket.o: ../core/httpsimpleparser.h ../core/log.h ../core/data.h
|
||||
@@ -173,19 +160,17 @@ ticket.o: ../core/groups.h ../core/group.h ../core/functions.h
|
||||
ticket.o: ../core/function.h ../core/lastcontainer.h ../core/mounts.h
|
||||
ticket.o: ../core/mount.h ../core/error.h ../core/rebus.h ../core/loadavg.h
|
||||
ticket.o: ../core/request.h ../core/requesttypes.h ../core/session.h
|
||||
ticket.o: ../core/done.h ../core/thread.h ../core/compress.h
|
||||
ticket.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
ticket.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
ticket.o: ../core/misc.h
|
||||
ticket.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
ticket.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
ticket.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
|
||||
upload.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
upload.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
upload.o: ../core/httpsimpleparser.h ../core/log.h ../core/request.h
|
||||
upload.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
upload.o: ../core/item.h ../core/error.h ../core/log.h ../core/user.h
|
||||
upload.o: ../core/rebus.h ../core/function.h ../core/thread.h
|
||||
upload.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
upload.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
upload.o: ../core/postmultiparser.h ../core/ticket.h
|
||||
upload.o: ../core/requesttypes.h ../core/session.h ../core/item.h
|
||||
upload.o: ../core/error.h ../core/log.h ../core/user.h ../core/rebus.h
|
||||
upload.o: ../core/function.h ../core/thread.h ../core/compress.h
|
||||
upload.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
upload.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/ticket.h
|
||||
uptime.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
uptime.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
uptime.o: ../core/httpsimpleparser.h ../core/log.h ../core/data.h
|
||||
@@ -202,18 +187,17 @@ user.o: ../core/user.h ../core/ugcontainer.h ../core/log.h ../core/groups.h
|
||||
user.o: ../core/group.h ../core/functions.h ../core/function.h
|
||||
user.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h
|
||||
user.o: ../core/error.h ../core/rebus.h ../core/loadavg.h ../core/request.h
|
||||
user.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
user.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
user.o: ../core/requesttypes.h ../core/session.h ../core/thread.h
|
||||
user.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
user.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
user.o: ../core/postmultiparser.h ../core/ticket.h ../core/misc.h
|
||||
who.o: templates.h patterncacher.h ../core/item.h misc.h localefilter.h
|
||||
who.o: ../core/locale.h ../confparser/confparser.h ckeditorgetparser.h
|
||||
who.o: ../core/httpsimpleparser.h ../core/log.h ../core/sessioncontainer.h
|
||||
who.o: ../core/session.h ../core/done.h ../core/item.h ../core/error.h
|
||||
who.o: ../core/log.h ../core/user.h ../core/rebus.h
|
||||
who.o: ../core/requestcontroller.h ../content/content.h
|
||||
who.o: ../templates/templates.h ../core/thread.h ../core/ticket.h
|
||||
who.o: ../core/done.h ../core/sessionmanager.h ../core/sessioncontainer.h
|
||||
who.o: ../core/session.h ../core/item.h ../core/error.h ../core/log.h
|
||||
who.o: ../core/user.h ../core/rebus.h ../core/requestcontroller.h
|
||||
who.o: ../content/content.h ../templates/templates.h ../core/thread.h
|
||||
who.o: ../core/ticket.h ../core/sessionmanager.h ../core/sessioncontainer.h
|
||||
who.o: ../core/functionparser.h ../core/requesttypes.h ../core/data.h
|
||||
who.o: ../core/dirs.h ../core/dircontainer.h ../core/users.h
|
||||
who.o: ../core/ugcontainer.h ../core/groups.h ../core/group.h
|
||||
@@ -230,7 +214,7 @@ winix.o: ../core/user.h ../core/ugcontainer.h ../core/log.h ../core/groups.h
|
||||
winix.o: ../core/group.h ../core/functions.h ../core/function.h
|
||||
winix.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h
|
||||
winix.o: ../core/error.h ../core/rebus.h ../core/loadavg.h ../core/request.h
|
||||
winix.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
winix.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
winix.o: ../core/requesttypes.h ../core/session.h ../core/thread.h
|
||||
winix.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
winix.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
|
||||
winix.o: ../core/postmultiparser.h ../core/ticket.h
|
||||
|
||||
@@ -1 +1 @@
|
||||
o = adduser.o dir.o doc.o done.o item.o last.o localefilter.o ls.o misc.o mount.o patterncacher.o priv.o rebus.o sys.o templates.o thread.o ticket.o upload.o uptime.o user.o who.o winix.o
|
||||
o = adduser.o dir.o doc.o item.o last.o localefilter.o ls.o misc.o mount.o patterncacher.o priv.o rebus.o sys.o templates.o thread.o ticket.o upload.o uptime.o user.o who.o winix.o
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
/*
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "templates.h"
|
||||
#include "../core/request.h"
|
||||
#include "../core/misc.h"
|
||||
|
||||
|
||||
|
||||
namespace TemplatesFunctions
|
||||
{
|
||||
|
||||
|
||||
|
||||
void done_is_error(Info & i)
|
||||
{
|
||||
i.result = request.session->done_status != WINIX_ERR_OK;
|
||||
}
|
||||
|
||||
|
||||
void done_status(Info & i)
|
||||
{
|
||||
i.out << static_cast<int>( request.session->done_status );
|
||||
}
|
||||
|
||||
|
||||
void done_status_no_item(Info & i)
|
||||
{
|
||||
i.result = request.session->done_status == WINIX_ERR_NO_ITEM;
|
||||
}
|
||||
|
||||
|
||||
void done_status_incorrect_dir(Info & i)
|
||||
{
|
||||
i.result = request.session->done_status == WINIX_ERR_INCORRECT_DIR;
|
||||
}
|
||||
|
||||
|
||||
void done_added_item(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::added_item;
|
||||
}
|
||||
|
||||
|
||||
void done_edited_item(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::edited_item;
|
||||
}
|
||||
|
||||
|
||||
void done_deleted_item(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::deleted_item;
|
||||
}
|
||||
|
||||
|
||||
void done_privileged_item(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::privileged_item;
|
||||
}
|
||||
|
||||
|
||||
void done_loggedout(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::loggedout;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void done_added_dir(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::added_dir;
|
||||
}
|
||||
|
||||
|
||||
void done_deleted_dir(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::deleted_dir;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void done_defaulted_dir(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::defaulted_dir;
|
||||
}
|
||||
|
||||
|
||||
void done_reloaded_templates(Info & i)
|
||||
{
|
||||
i.result = request.session->done == Done::reloaded_templates;
|
||||
}
|
||||
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -303,68 +303,6 @@ void item_guest_name(Info & i)
|
||||
|
||||
|
||||
|
||||
void item_old_id(Info & i)
|
||||
{
|
||||
i.out << request.session->item.id;
|
||||
}
|
||||
|
||||
|
||||
void item_old_subject(Info & i)
|
||||
{
|
||||
HtmlEscape(i.out, request.session->item.subject);
|
||||
}
|
||||
|
||||
|
||||
void item_old_subject_noescape(Info & i)
|
||||
{
|
||||
i.out << request.session->item.subject;
|
||||
}
|
||||
|
||||
|
||||
void item_old_content(Info & i)
|
||||
{
|
||||
HtmlEscape(i.out, request.session->item.content);
|
||||
}
|
||||
|
||||
|
||||
void item_old_content_noescape(Info & i)
|
||||
{
|
||||
i.out << request.session->item.content;
|
||||
}
|
||||
|
||||
|
||||
void item_old_privileges(Info & i)
|
||||
{
|
||||
i.out << std::setbase(8) << request.session->item.privileges << std::setbase(10);
|
||||
}
|
||||
|
||||
|
||||
void item_old_dir(Info & i)
|
||||
{
|
||||
std::string path;
|
||||
|
||||
if( data.dirs.MakePath(request.session->item.parent_id, path) )
|
||||
HtmlEscape(i.out, path);
|
||||
else
|
||||
i.out << "/the path does not exist/";
|
||||
}
|
||||
|
||||
|
||||
void item_old_url(Info & i)
|
||||
{
|
||||
HtmlEscape(i.out, request.session->item.url);
|
||||
}
|
||||
|
||||
|
||||
void item_old_link(Info & i)
|
||||
{
|
||||
HtmlEscape(i.out, data.base_url);
|
||||
item_old_dir(i);
|
||||
item_old_url(i);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -219,16 +219,6 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("item_run", item_run);
|
||||
functions.Insert("item_guest_name", item_guest_name);
|
||||
|
||||
functions.Insert("item_old_id", item_old_id);
|
||||
functions.Insert("item_old_subject", item_old_subject);
|
||||
functions.Insert("item_old_subject_noescape", item_old_subject_noescape);
|
||||
functions.Insert("item_old_content", item_old_content);
|
||||
functions.Insert("item_old_content_noescape", item_old_content_noescape);
|
||||
functions.Insert("item_old_privileges", item_old_privileges);
|
||||
functions.Insert("item_old_dir", item_old_dir);
|
||||
functions.Insert("item_old_url", item_old_url);
|
||||
functions.Insert("item_old_link", item_old_link);
|
||||
|
||||
functions.Insert("item_tab", item_tab);
|
||||
functions.Insert("item_tab_id", item_tab_id);
|
||||
functions.Insert("item_tab_subject", item_tab_subject);
|
||||
@@ -322,25 +312,6 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("priv_show_form_chmod", priv_show_form_chmod);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
done
|
||||
*/
|
||||
functions.Insert("done_is_error", done_is_error);
|
||||
functions.Insert("done_status", done_status);
|
||||
functions.Insert("done_status_no_item", done_status_no_item);
|
||||
functions.Insert("done_status_incorrect_dir", done_status_incorrect_dir);
|
||||
functions.Insert("done_added_item", done_added_item);
|
||||
functions.Insert("done_edited_item", done_edited_item);
|
||||
functions.Insert("done_deleted_item", done_deleted_item);
|
||||
functions.Insert("done_privileged_item", done_privileged_item);
|
||||
functions.Insert("done_loggedout", done_loggedout);
|
||||
functions.Insert("done_added_dir", done_added_dir);
|
||||
functions.Insert("done_deleted_dir", done_deleted_dir);
|
||||
functions.Insert("done_defaulted_dir", done_defaulted_dir);
|
||||
functions.Insert("done_reloaded_templates", done_reloaded_templates);
|
||||
|
||||
|
||||
/*
|
||||
others
|
||||
*/
|
||||
|
||||
@@ -130,16 +130,6 @@ namespace TemplatesFunctions
|
||||
void item_run(Info & i);
|
||||
void item_guest_name(Info & i);
|
||||
|
||||
void item_old_id(Info & i);
|
||||
void item_old_subject(Info & i);
|
||||
void item_old_subject_noescape(Info & i);
|
||||
void item_old_content(Info & i);
|
||||
void item_old_content_noescape(Info & i);
|
||||
void item_old_privileges(Info & i);
|
||||
void item_old_dir(Info & i);
|
||||
void item_old_url(Info & i);
|
||||
void item_old_link(Info & i);
|
||||
|
||||
void item_tab(Info & i);
|
||||
void item_tab_id(Info & i);
|
||||
void item_tab_subject(Info & i);
|
||||
@@ -232,26 +222,6 @@ namespace TemplatesFunctions
|
||||
void priv_show_form_chmod(Info & i);
|
||||
|
||||
|
||||
/*
|
||||
done
|
||||
*/
|
||||
void done_is_error(Info & i);
|
||||
void done_status(Info & i);
|
||||
void done_status_no_item(Info & i);
|
||||
void done_status_incorrect_dir(Info & i);
|
||||
|
||||
void done_added_item(Info & i);
|
||||
void done_edited_item(Info & i);
|
||||
void done_deleted_item(Info & i);
|
||||
void done_privileged_item(Info & i);
|
||||
|
||||
void done_added_dir(Info & i);
|
||||
void done_deleted_dir(Info & i);
|
||||
void done_defaulted_dir(Info & i);
|
||||
|
||||
void done_loggedout(Info & i);
|
||||
void done_reloaded_templates(Info & i);
|
||||
|
||||
/*
|
||||
who
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -31,7 +31,7 @@ void user_name(Info & i)
|
||||
if( !request.session->puser )
|
||||
return;
|
||||
|
||||
i.out << request.session->puser->name;
|
||||
HtmlEscape(i.out, request.session->puser->name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user