added: Rebus
(when no logged user wants to send a message then he is asked a question) git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@521 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
1 parent
c62d48160a
commit
2ca44ec361
25 files changed
+509
-193
No files matched your search
+68
-55
@@ -2,113 +2,126 @@
|
||||
|
||||
dir.o: templates.h patterncacher.h ../core/item.h ../core/request.h
|
||||
dir.o: ../core/requesttypes.h ../core/session.h ../core/done.h ../core/item.h
|
||||
dir.o: ../core/error.h ../core/log.h ../core/user.h ../core/function.h
|
||||
dir.o: ../core/thread.h ../core/compress.h ../core/acceptencodingparser.h
|
||||
dir.o: ../core/acceptbaseparser.h ../core/data.h ../core/dirs.h
|
||||
dir.o: ../core/dircontainer.h ../core/users.h ../core/ugcontainer.h
|
||||
dir.o: ../core/groups.h ../core/group.h ../core/functions.h
|
||||
dir.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h ../core/db.h
|
||||
dir.o: ../core/log.h ../core/misc.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
|
||||
dir.o: ../core/data.h ../core/dirs.h ../core/dircontainer.h ../core/users.h
|
||||
dir.o: ../core/ugcontainer.h ../core/groups.h ../core/group.h
|
||||
dir.o: ../core/functions.h ../core/lastcontainer.h ../core/mounts.h
|
||||
dir.o: ../core/mount.h ../core/db.h ../core/log.h ../core/misc.h
|
||||
doc.o: templates.h patterncacher.h ../core/item.h ../core/data.h
|
||||
doc.o: ../core/dirs.h ../core/item.h ../core/dircontainer.h ../core/users.h
|
||||
doc.o: ../core/user.h ../core/ugcontainer.h ../core/log.h ../core/groups.h
|
||||
doc.o: ../core/group.h ../core/functions.h ../core/function.h
|
||||
doc.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h
|
||||
doc.o: ../core/request.h ../core/requesttypes.h ../core/session.h
|
||||
doc.o: ../core/done.h ../core/error.h ../core/thread.h ../core/compress.h
|
||||
doc.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
doc.o: ../core/misc.h
|
||||
doc.o: ../core/rebus.h ../core/request.h ../core/requesttypes.h
|
||||
doc.o: ../core/session.h ../core/done.h ../core/error.h ../core/thread.h
|
||||
doc.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
doc.o: ../core/acceptbaseparser.h ../core/misc.h
|
||||
done.o: templates.h patterncacher.h ../core/item.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/function.h ../core/thread.h ../core/compress.h
|
||||
done.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
done.o: ../core/misc.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/misc.h
|
||||
item.o: templates.h patterncacher.h ../core/item.h ../core/data.h
|
||||
item.o: ../core/dirs.h ../core/item.h ../core/dircontainer.h ../core/users.h
|
||||
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/request.h ../core/requesttypes.h ../core/session.h
|
||||
item.o: ../core/done.h ../core/error.h ../core/thread.h ../core/compress.h
|
||||
item.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
item.o: ../core/misc.h
|
||||
item.o: ../core/rebus.h ../core/request.h ../core/requesttypes.h
|
||||
item.o: ../core/session.h ../core/done.h ../core/error.h ../core/thread.h
|
||||
item.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
item.o: ../core/acceptbaseparser.h ../core/misc.h
|
||||
last.o: templates.h patterncacher.h ../core/item.h ../core/lastcontainer.h
|
||||
last.o: ../core/data.h ../core/dirs.h ../core/item.h ../core/dircontainer.h
|
||||
last.o: ../core/users.h ../core/user.h ../core/ugcontainer.h ../core/log.h
|
||||
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/request.h ../core/requesttypes.h
|
||||
last.o: ../core/session.h ../core/done.h ../core/error.h ../core/thread.h
|
||||
last.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
last.o: ../core/acceptbaseparser.h ../core/misc.h
|
||||
last.o: ../core/mount.h ../core/rebus.h ../core/request.h
|
||||
last.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
last.o: ../core/error.h ../core/thread.h ../core/compress.h
|
||||
last.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
last.o: ../core/misc.h
|
||||
mount.o: templates.h patterncacher.h ../core/item.h ../core/data.h
|
||||
mount.o: ../core/dirs.h ../core/item.h ../core/dircontainer.h ../core/users.h
|
||||
mount.o: ../core/user.h ../core/ugcontainer.h ../core/log.h ../core/groups.h
|
||||
mount.o: ../core/group.h ../core/functions.h ../core/function.h
|
||||
mount.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h
|
||||
mount.o: ../core/rebus.h
|
||||
patterncacher.o: patterncacher.h ../core/item.h ../core/data.h ../core/dirs.h
|
||||
patterncacher.o: ../core/item.h ../core/dircontainer.h ../core/users.h
|
||||
patterncacher.o: ../core/user.h ../core/ugcontainer.h ../core/log.h
|
||||
patterncacher.o: ../core/groups.h ../core/group.h ../core/functions.h
|
||||
patterncacher.o: ../core/function.h ../core/lastcontainer.h ../core/mounts.h
|
||||
patterncacher.o: ../core/mount.h ../core/log.h
|
||||
patterncacher.o: ../core/mount.h ../core/rebus.h ../core/log.h
|
||||
priv.o: templates.h patterncacher.h ../core/item.h ../core/data.h
|
||||
priv.o: ../core/dirs.h ../core/item.h ../core/dircontainer.h ../core/users.h
|
||||
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/request.h ../core/requesttypes.h ../core/session.h
|
||||
priv.o: ../core/done.h ../core/error.h ../core/thread.h ../core/compress.h
|
||||
priv.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
priv.o: ../core/misc.h
|
||||
priv.o: ../core/rebus.h ../core/request.h ../core/requesttypes.h
|
||||
priv.o: ../core/session.h ../core/done.h ../core/error.h ../core/thread.h
|
||||
priv.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
priv.o: ../core/acceptbaseparser.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/compress.h ../core/acceptencodingparser.h
|
||||
rebus.o: ../core/acceptbaseparser.h ../core/data.h ../core/dirs.h
|
||||
rebus.o: ../core/dircontainer.h ../core/users.h ../core/ugcontainer.h
|
||||
rebus.o: ../core/groups.h ../core/group.h ../core/functions.h
|
||||
rebus.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h templates.h
|
||||
rebus.o: patterncacher.h ../core/item.h
|
||||
sys.o: templates.h patterncacher.h ../core/item.h ../core/data.h
|
||||
sys.o: ../core/dirs.h ../core/item.h ../core/dircontainer.h ../core/users.h
|
||||
sys.o: ../core/user.h ../core/ugcontainer.h ../core/log.h ../core/groups.h
|
||||
sys.o: ../core/group.h ../core/functions.h ../core/function.h
|
||||
sys.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h
|
||||
sys.o: ../core/request.h ../core/requesttypes.h ../core/session.h
|
||||
sys.o: ../core/done.h ../core/error.h ../core/thread.h ../core/compress.h
|
||||
sys.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
sys.o: ../core/misc.h
|
||||
sys.o: ../core/rebus.h ../core/request.h ../core/requesttypes.h
|
||||
sys.o: ../core/session.h ../core/done.h ../core/error.h ../core/thread.h
|
||||
sys.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
sys.o: ../core/acceptbaseparser.h ../core/misc.h
|
||||
templates.o: templates.h patterncacher.h ../core/item.h ../core/data.h
|
||||
templates.o: ../core/dirs.h ../core/item.h ../core/dircontainer.h
|
||||
templates.o: ../core/users.h ../core/user.h ../core/ugcontainer.h
|
||||
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/request.h
|
||||
templates.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
templates.o: ../core/error.h ../core/thread.h ../core/compress.h
|
||||
templates.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
templates.o: ../core/misc.h ../core/plugin.h ../core/request.h ../core/data.h
|
||||
templates.o: ../core/pluginmsg.h
|
||||
templates.o: ../core/mounts.h ../core/mount.h ../core/rebus.h
|
||||
templates.o: ../core/request.h ../core/requesttypes.h ../core/session.h
|
||||
templates.o: ../core/done.h ../core/error.h ../core/thread.h
|
||||
templates.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
templates.o: ../core/acceptbaseparser.h ../core/misc.h ../core/plugin.h
|
||||
templates.o: ../core/request.h ../core/data.h ../core/pluginmsg.h
|
||||
thread.o: templates.h patterncacher.h ../core/item.h ../core/data.h
|
||||
thread.o: ../core/dirs.h ../core/item.h ../core/dircontainer.h
|
||||
thread.o: ../core/users.h ../core/user.h ../core/ugcontainer.h ../core/log.h
|
||||
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/request.h ../core/requesttypes.h
|
||||
thread.o: ../core/session.h ../core/done.h ../core/error.h ../core/thread.h
|
||||
thread.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
thread.o: ../core/acceptbaseparser.h ../core/misc.h
|
||||
thread.o: ../core/mount.h ../core/rebus.h ../core/request.h
|
||||
thread.o: ../core/requesttypes.h ../core/session.h ../core/done.h
|
||||
thread.o: ../core/error.h ../core/thread.h ../core/compress.h
|
||||
thread.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
thread.o: ../core/misc.h
|
||||
user.o: templates.h patterncacher.h ../core/item.h ../core/data.h
|
||||
user.o: ../core/dirs.h ../core/item.h ../core/dircontainer.h ../core/users.h
|
||||
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/request.h ../core/requesttypes.h ../core/session.h
|
||||
user.o: ../core/done.h ../core/error.h ../core/thread.h ../core/compress.h
|
||||
user.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
user.o: ../core/misc.h
|
||||
user.o: ../core/rebus.h ../core/request.h ../core/requesttypes.h
|
||||
user.o: ../core/session.h ../core/done.h ../core/error.h ../core/thread.h
|
||||
user.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
user.o: ../core/acceptbaseparser.h ../core/misc.h
|
||||
who.o: templates.h patterncacher.h ../core/item.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/requestcontroller.h
|
||||
who.o: ../content/content.h ../templates/templates.h ../core/thread.h
|
||||
who.o: ../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
|
||||
who.o: ../core/functions.h ../core/function.h ../core/lastcontainer.h
|
||||
who.o: ../core/mounts.h ../core/mount.h ../core/request.h ../core/thread.h
|
||||
who.o: ../core/compress.h ../core/acceptencodingparser.h
|
||||
who.o: ../core/acceptbaseparser.h ../core/misc.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/sessionmanager.h
|
||||
who.o: ../core/sessioncontainer.h ../core/functionparser.h
|
||||
who.o: ../core/requesttypes.h ../core/data.h ../core/dirs.h
|
||||
who.o: ../core/dircontainer.h ../core/users.h ../core/ugcontainer.h
|
||||
who.o: ../core/groups.h ../core/group.h ../core/functions.h
|
||||
who.o: ../core/function.h ../core/lastcontainer.h ../core/mounts.h
|
||||
who.o: ../core/mount.h ../core/request.h ../core/thread.h ../core/compress.h
|
||||
who.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
|
||||
who.o: ../core/misc.h
|
||||
@@ -1 +1 @@
|
||||
o = dir.o doc.o done.o item.o last.o mount.o patterncacher.o priv.o sys.o templates.o thread.o user.o who.o
|
||||
o = dir.o doc.o done.o item.o last.o mount.o patterncacher.o priv.o rebus.o sys.o templates.o thread.o user.o who.o
|
||||
@@ -207,6 +207,10 @@ void item_run(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void item_guest_name(Info & i)
|
||||
{
|
||||
HtmlEscape(i.out, request.item.guest_name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -136,6 +136,7 @@ Ezc::Pattern * p = 0;
|
||||
switch( request.status )
|
||||
{
|
||||
case Error::ok:
|
||||
case Error::rebus_bad_answer:
|
||||
p = content_for_function();
|
||||
break;
|
||||
|
||||
@@ -231,6 +232,7 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("item_date_modification", item_date_modification);
|
||||
functions.Insert("item_dates_equal", item_dates_equal);
|
||||
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);
|
||||
@@ -360,7 +362,6 @@ void Templates::CreateFunctions()
|
||||
thread
|
||||
*/
|
||||
functions.Insert("thread_is", thread_is);
|
||||
functions.Insert("thread_show_edit_subject", thread_show_edit_subject);
|
||||
functions.Insert("thread_tab", thread_tab);
|
||||
functions.Insert("thread_tab_url", thread_tab_url);
|
||||
functions.Insert("thread_tab_subject", thread_tab_subject);
|
||||
@@ -382,6 +383,13 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("mount_is_cms", mount_is_cms);
|
||||
|
||||
|
||||
/*
|
||||
rebus
|
||||
*/
|
||||
functions.Insert("rebus_question", rebus_question);
|
||||
|
||||
|
||||
|
||||
|
||||
plugin.Call(CMSLU_TEMPLATES_CREATEFUNCTIONS, &functions);
|
||||
}
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
namespace TemplatesFunctions
|
||||
{
|
||||
using Ezc::Info;
|
||||
|
||||
extern bool thread_show_edit_subject_var;
|
||||
|
||||
|
||||
extern PatternCacher pattern_cacher;
|
||||
extern Ezc::Functions functions;
|
||||
extern Ezc::Pattern pat_item_info;
|
||||
@@ -74,6 +72,7 @@ namespace TemplatesFunctions
|
||||
void item_date_modification(Info & i);
|
||||
void item_dates_equal(Info & i);
|
||||
void item_run(Info & i);
|
||||
void item_guest_name(Info & i);
|
||||
|
||||
// !! wprowadzic item_old_is ?
|
||||
void item_old_id(Info & i);
|
||||
@@ -200,7 +199,6 @@ namespace TemplatesFunctions
|
||||
thread
|
||||
*/
|
||||
void thread_is(Info & i);
|
||||
void thread_show_edit_subject(Info & i);
|
||||
void thread_tab(Info & i);
|
||||
void thread_tab_url(Info & i);
|
||||
void thread_tab_subject(Info & i);
|
||||
@@ -221,6 +219,12 @@ namespace TemplatesFunctions
|
||||
void mount_is_thread(Info & i);
|
||||
void mount_is_cms(Info & i);
|
||||
|
||||
|
||||
/*
|
||||
rebus
|
||||
*/
|
||||
void rebus_question(Info & i);
|
||||
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
|
||||
+4
-13
@@ -23,18 +23,6 @@ void thread_is(Info & i)
|
||||
}
|
||||
|
||||
|
||||
bool thread_show_edit_subject_var = false; // !! tymczasowe rozwiazanie, cos lepszego wymyslec
|
||||
|
||||
|
||||
void thread_show_edit_subject(Info & i)
|
||||
{
|
||||
i.result = thread_show_edit_subject_var;
|
||||
|
||||
thread_show_edit_subject_var = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static size_t thread_tab_index;
|
||||
|
||||
@@ -74,7 +62,10 @@ void thread_tab_subject(Info & i)
|
||||
|
||||
if( dir )
|
||||
{
|
||||
HtmlEscape(i.out, dir->subject);
|
||||
if( !dir->subject.empty() )
|
||||
HtmlEscape(i.out, dir->subject);
|
||||
else
|
||||
HtmlEscape(i.out, dir->url);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user