rewritten: sessions management
(Session, SessionContainer, SessionManager) now a Session object don't copy all fields in its copy constructor (only id) the rest fields are set after the object is inserted in SessionContainer added: after successfully login a session id is changed added: plugin.Call() methods with a first argument a pointer to a Session object git-svn-id: svn://ttmath.org/publicrep/winix/trunk@823 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -581,7 +581,7 @@ void Templates::CreateFunctions()
|
||||
ezc_functions.Insert("content", content);
|
||||
|
||||
|
||||
plugin.Call(WINIX_TEMPLATES_CREATEFUNCTIONS, &ezc_functions);
|
||||
plugin.Call((Session*)0, WINIX_TEMPLATES_CREATEFUNCTIONS, &ezc_functions);
|
||||
log << log3 << "Templates: there are " << ezc_functions.Size() << " ezc functions" << logend;
|
||||
}
|
||||
|
||||
@@ -755,7 +755,7 @@ using namespace TemplatesFunctions;
|
||||
ReadIndexTemplates();
|
||||
ReadChangeTemplates();
|
||||
|
||||
plugin.Call(WINIX_ADD_TEMPLATE);
|
||||
plugin.Call((Session*)0, WINIX_ADD_TEMPLATE);
|
||||
|
||||
SetHtmlFilter();
|
||||
|
||||
|
Reference in New Issue
Block a user