{\r
DateTime date;\r
date.SetToGMTime();\r
+ date.SetHour(0);\r
+ date.SetMinute(0);\r
+ date.SetSecond(0);\r
+ date.Normalize();\r
\r
SQLite3DB::Statement st=m_db->Prepare("SELECT LocalIdentityID FROM tblLocalIdentity WHERE PublishFreesite='true' AND (LastInsertedFreesite IS NULL OR LastInsertedFreesite<?);");\r
st.Bind(0,date.Format("%Y-%m-%d"));\r
st.Step();\r
}\r
\r
- std::string output=StringFunctions::Replace(htmltemplate,"[CONTENT]",content);\r
- return StringFunctions::Replace(output,"[IDENTITYNAME]",SanitizeOutput(name));\r
+ return StringFunctions::Replace(htmltemplate,"[CONTENT]",content);\r
\r
}\r
\r
htmltemplate.append(data.begin(),data.end());\r
\r
htmltemplate=StringFunctions::Replace(htmltemplate,"[LINKS]",GenerateLinks(publishtrustlist,publishboardlist));\r
+ htmltemplate=StringFunctions::Replace(htmltemplate,"[IDENTITYNAME]",SanitizeOutput(name));\r
\r
pages["index.htm"]=GenerateIndex(htmltemplate,localidentityid,name);\r
if(publishtrustlist)\r