#include "../../../include/http/pages/createidentitypage.h"\r
#include "../../../include/stringfunctions.h"\r
+#include "../../../include/datetime.h"\r
\r
#ifdef XMEM\r
#include <xmem.h>\r
\r
if(queryvars.find("formaction")!=queryvars.end() && (*queryvars.find("formaction")).second=="create")\r
{\r
- SQLite3DB::Statement st=m_db->Prepare("INSERT INTO tblLocalIdentity(Name,PublishTrustList) VALUES(?,'true');");\r
+ SQLite3DB::Statement st=m_db->Prepare("INSERT INTO tblLocalIdentity(Name,PublishTrustList,DateCreated) VALUES(?,'false',?);");\r
std::string name="";\r
+ DateTime date;\r
+ date.SetToGMTime();\r
\r
if(queryvars.find("name")!=queryvars.end())\r
{\r
}\r
\r
st.Bind(0,name);\r
+ st.Bind(1,date.Format("%Y-%m-%d %H:%M:%S"));\r
st.Step();\r
\r
content+="<h2>Created Identity</h2>";\r
content+="<h2>Create Identity</h2>";\r
content+="<form name=\"frmcreateidentity\" method=\"POST\">";\r
content+="<input type=\"hidden\" name=\"formaction\" value=\"create\">";\r
- content+="Name : <input type=\"text\" name=\"name\">";\r
+ content+="Name : <input type=\"text\" name=\"name\" maxlength=\"40\">";\r
content+=" <input type=\"submit\" value=\"Create\">";\r
content+="</form>";\r
}\r