added: notifications to users' emails
(core/notify.h core/notify.cpp) templatesnotify directory all notifications are managed by a second thread git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@512 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -41,6 +41,16 @@ void mount_param_thread_with_info(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void mount_is_thread(Info & i)
|
||||
{
|
||||
i.result = data.mounts.CurrentMountType() == Mount::thread;
|
||||
}
|
||||
|
||||
void mount_is_cms(Info & i)
|
||||
{
|
||||
i.result = data.mounts.CurrentMountType() == Mount::cms;
|
||||
}
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
|
||||
|
@@ -37,6 +37,7 @@ Ezc::Pattern pat_item_info;
|
||||
Ezc::Pattern pat_item_tab_info;
|
||||
Ezc::Pattern pat_dir_last_info;
|
||||
|
||||
|
||||
Ezc::Functions functions;
|
||||
|
||||
|
||||
@@ -379,7 +380,8 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("mount_param_withinfo", mount_param_withinfo);
|
||||
functions.Insert("mount_param_thread_with_header", mount_param_thread_with_header);
|
||||
functions.Insert("mount_param_thread_with_info", mount_param_thread_with_info);
|
||||
|
||||
functions.Insert("mount_is_thread", mount_is_thread);
|
||||
functions.Insert("mount_is_cms", mount_is_cms);
|
||||
|
||||
|
||||
// !! tymczasowa
|
||||
@@ -459,6 +461,7 @@ void Templates::Read()
|
||||
pat_dir_last_info.Directory(data.templates);
|
||||
pat_dir_last_info.ParseFile("dir_last_info.html");
|
||||
|
||||
|
||||
CreateFunctions();
|
||||
|
||||
#ifdef APPTEMPLATES
|
||||
@@ -478,3 +481,5 @@ void Templates::Generate()
|
||||
generator.Generate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@@ -33,6 +33,7 @@ namespace TemplatesFunctions
|
||||
extern Ezc::Pattern pat_item_info;
|
||||
extern Ezc::Pattern pat_item_tab_info;
|
||||
extern Ezc::Pattern pat_dir_last_info;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
@@ -66,7 +67,7 @@ namespace TemplatesFunctions
|
||||
void item_content_noescape(Info & i);
|
||||
void item_print_content(Info & i);
|
||||
void item_privileges(Info & i);
|
||||
void item_dir(Info & i); // the same as full_dir()
|
||||
void item_dir(Info & i);
|
||||
void item_url(Info & i);
|
||||
void item_link(Info & i);
|
||||
void item_can_read(Info & i);
|
||||
@@ -213,6 +214,7 @@ namespace TemplatesFunctions
|
||||
void thread_tab_last_item_user(Info & i);
|
||||
void thread_can_create(Info & i);
|
||||
|
||||
|
||||
/*
|
||||
mount
|
||||
*/
|
||||
@@ -220,6 +222,9 @@ namespace TemplatesFunctions
|
||||
void mount_param_withinfo(Info & i);
|
||||
void mount_param_thread_with_header(Info & i);
|
||||
void mount_param_thread_with_info(Info & i);
|
||||
void mount_is_thread(Info & i);
|
||||
void mount_is_cms(Info & i);
|
||||
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
@@ -236,8 +241,10 @@ public:
|
||||
void Read();
|
||||
void Generate();
|
||||
|
||||
void CreateFunctions();
|
||||
|
||||
private:
|
||||
|
||||
void CreateFunctions();
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user