version 0.3.6
[fms.git] / src / http / pages / boardspage.cpp
index 4adab89..8b2866e 100644 (file)
@@ -1,6 +1,8 @@
 #include "../../../include/http/pages/boardspage.h"\r
 #include "../../../include/stringfunctions.h"\r
-#include "../../../include/datetime.h"\r
+\r
+#include <Poco/DateTime.h>\r
+#include <Poco/DateTimeFormatter.h>\r
 \r
 #ifdef XMEM\r
        #include <xmem.h>\r
@@ -41,8 +43,7 @@ const std::string BoardsPage::GeneratePage(const std::string &method, const std:
        std::string startrowstr="0";\r
        std::string boardsearch="";\r
        std::string sql="";\r
-       DateTime now;\r
-       now.SetToGMTime();\r
+       Poco::DateTime now;\r
 \r
        if(queryvars.find("formaction")!=queryvars.end())\r
        {\r
@@ -58,7 +59,7 @@ const std::string BoardsPage::GeneratePage(const std::string &method, const std:
                        SQLite3DB::Statement addst=m_db->Prepare("INSERT INTO tblBoard(BoardName,BoardDescription,DateAdded,AddedMethod) VALUES(?,?,?,?);");\r
                        addst.Bind(0,boardname);\r
                        addst.Bind(1,boarddescription);\r
-                       addst.Bind(2,now.Format("%Y-%m-%d %H:%M:%S"));\r
+                       addst.Bind(2,Poco::DateTimeFormatter::format(now,"%Y-%m-%d %H:%M:%S"));\r
                        addst.Bind(3,"Added manually");\r
                        addst.Step();\r
                }\r
@@ -257,10 +258,10 @@ const std::string BoardsPage::GeneratePage(const std::string &method, const std:
        content+="</tr>";\r
        content+="</table>";\r
        content+="<p class=\"paragraph\">";\r
-       content+="* If you uncheck this box, any new messages you download that are posted to this board will be discarded.";\r
+       content+="* If you uncheck this box, any new messages you download that are posted to this board will be discarded.  When multiple local identities are used, it is best not to discard messages from any boards, as identifying which identities are the same person is much easier when their message lists are missing messages from the same boards.";\r
        content+="</p>";\r
 \r
-       return "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n"+StringFunctions::Replace(m_template,"[CONTENT]",content);\r
+       return StringFunctions::Replace(m_template,"[CONTENT]",content);\r
 }\r
 \r
 const bool BoardsPage::WillHandleURI(const std::string &uri)\r