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:
@@ -44,6 +44,7 @@ void Request::Clear()
|
||||
headers.str("");
|
||||
page.str("");
|
||||
debug.str("");
|
||||
notify.str("");
|
||||
|
||||
env_request_method = &char_empty;
|
||||
env_request_uri = &char_empty;
|
||||
@@ -75,6 +76,9 @@ void Request::Clear()
|
||||
thread.Clear();
|
||||
|
||||
thread_tab.clear();
|
||||
|
||||
notify_code = 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -283,18 +287,8 @@ void Request::ReadParameters()
|
||||
|
||||
void Request::StandardLog()
|
||||
{
|
||||
time_t t = std::time(0);
|
||||
std::tm * loct = std::localtime(&t);
|
||||
|
||||
char buffer[70];
|
||||
sprintf(buffer, "%d.%02d.%02d %02d:%02d:%02d ", int(loct->tm_year + 1900),
|
||||
int(loct->tm_mon + 1),
|
||||
int(loct->tm_mday),
|
||||
int(loct->tm_hour),
|
||||
int(loct->tm_min),
|
||||
int(loct->tm_sec));
|
||||
|
||||
log << log1 << buffer << env_remote_addr << ' ' << env_request_method << ' ' << env_request_uri << ' ' << env_http_user_agent << logend;
|
||||
log.PutDate(log1);
|
||||
log << env_remote_addr << ' ' << env_request_method << ' ' << env_request_uri << ' ' << env_http_user_agent << logend;
|
||||
}
|
||||
|
||||
|
||||
@@ -357,6 +351,9 @@ void Request::SendAll()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool Request::IsParam(const char * s)
|
||||
{
|
||||
std::vector<std::string*>::iterator i;
|
||||
|
Reference in New Issue
Block a user