added: plugin mechanism
files: core/plugin.h core/plugin.cpp core/pluginmsg.h added: directory 'main' with main.cpp (moved from 'core' directory) changed: the way of building nearly everything is in cmslu.so only main() is in cmslu and is dynamically linked with cmslu.so git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@516 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -12,8 +12,9 @@
|
||||
#include "../core/error.h"
|
||||
#include "../core/db.h"
|
||||
#include "../core/data.h"
|
||||
#include "../app/content.h"
|
||||
#include "../core/misc.h"
|
||||
#include "../core/plugin.h"
|
||||
|
||||
|
||||
|
||||
bool Content::Init()
|
||||
@@ -231,9 +232,6 @@ void Content::Make()
|
||||
{
|
||||
if( DirsHaveReadExecPerm() )
|
||||
{
|
||||
#ifdef APPPREPARE
|
||||
AppContent::PrepareApp();
|
||||
#endif
|
||||
|
||||
if( request.method == Request::post )
|
||||
MakePost();
|
||||
@@ -251,15 +249,14 @@ void Content::Make()
|
||||
if( request.result == Request::redirect )
|
||||
return;
|
||||
|
||||
|
||||
if( request.dir_table.empty() )
|
||||
{
|
||||
log << log1 << "Content: there is no a root dir (dir_table is empty -- after calling some standard functions)" << logend;
|
||||
return;
|
||||
}
|
||||
|
||||
plugin.Call(CMSLU_CONTENT_MAKE);
|
||||
templates.Generate();
|
||||
|
||||
|
||||
//request.PrintGetTable();
|
||||
//request.PrintEnv();
|
||||
|
Reference in New Issue
Block a user