changed: rename cmslu to winix
changed: html templates are a part of winix now and the user can provide special html templates for its site added: locales added: html templates are using HtmlFilter now (locales) changed: now we have html templates for each language git-svn-id: svn://ttmath.org/publicrep/winix/trunk@560 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -35,6 +35,7 @@ Notify notify;
|
||||
Plugin plugin;
|
||||
|
||||
|
||||
|
||||
void signal_term(int)
|
||||
{
|
||||
req_controller.SaveSessions();
|
||||
@@ -62,7 +63,6 @@ void print_syntax()
|
||||
|
||||
|
||||
|
||||
|
||||
int main(int argv, char ** argc)
|
||||
{
|
||||
std::srand(std::time(0));
|
||||
@@ -74,8 +74,6 @@ int main(int argv, char ** argc)
|
||||
}
|
||||
|
||||
data.config_file = argc[1];
|
||||
|
||||
|
||||
|
||||
if( !config.ReadConfig(true) ) /* errors to stdout */
|
||||
return 2;
|
||||
@@ -107,9 +105,12 @@ int main(int argv, char ** argc)
|
||||
if( !req_controller.Init() )
|
||||
return 1;
|
||||
|
||||
if( !notify.Init(data.templates) )
|
||||
// !! teraz mamy dwa katalogi z templetami
|
||||
if( !notify.Init() )
|
||||
return 2;
|
||||
|
||||
notify.ReadTemplates();
|
||||
|
||||
signal(SIGTERM, signal_term);
|
||||
signal(SIGINT, signal_term);
|
||||
signal(SIGHUP, signal_hup);
|
||||
|
Reference in New Issue
Block a user