added: macro APPPREPARE
void AppFunction(int code); git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@503 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -14,7 +14,7 @@ content.o: ../core/error.h ../core/db.h ../core/group.h
|
||||
content.o: ../core/dircontainer.h ../core/ugcontainer.h ../core/data.h
|
||||
content.o: ../core/dirs.h ../core/users.h ../core/groups.h
|
||||
content.o: ../core/functions.h ../core/lastcontainer.h ../core/mounts.h
|
||||
content.o: ../core/mount.h
|
||||
content.o: ../core/mount.h ../app/content.h
|
||||
createthread.o: content.h ../core/item.h ../templates/templates.h
|
||||
createthread.o: ../../ezc/src/ezc.h ../templates/patterncacher.h
|
||||
createthread.o: ../app/templates.h ../core/request.h ../core/requesttypes.h
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "../core/error.h"
|
||||
#include "../core/db.h"
|
||||
#include "../core/data.h"
|
||||
|
||||
#include "../app/content.h"
|
||||
|
||||
|
||||
|
||||
@@ -174,6 +174,9 @@ void Content::MakeStandardFunction()
|
||||
|
||||
void Content::MakePost()
|
||||
{
|
||||
if( !request.pfunction )
|
||||
SetDefaultFunction();
|
||||
|
||||
if( !request.pfunction )
|
||||
{
|
||||
log << log1 << "Content: MakePost: no function" << logend;
|
||||
@@ -230,6 +233,10 @@ void Content::Make()
|
||||
{
|
||||
if( DirsHaveReadExecPerm() )
|
||||
{
|
||||
#ifdef APPPREPARE
|
||||
AppContent::PrepareApp();
|
||||
#endif
|
||||
|
||||
if( request.method == Request::post )
|
||||
MakePost();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user