projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.2.4
[fms.git]
/
src
/
http
/
pages
/
addpeerpage.cpp
diff --git
a/src/http/pages/addpeerpage.cpp
b/src/http/pages/addpeerpage.cpp
index
7b4d706
..
d97d596
100644
(file)
--- a/
src/http/pages/addpeerpage.cpp
+++ b/
src/http/pages/addpeerpage.cpp
@@
-21,9
+21,10
@@
const std::string AddPeerPage::GeneratePage(const std::string &method, const std
if(publickey!="" && publickey.find("SSK@")==0 && publickey[publickey.size()-1]=='/')
\r
{
\r
date.SetToGMTime();
\r
if(publickey!="" && publickey.find("SSK@")==0 && publickey[publickey.size()-1]=='/')
\r
{
\r
date.SetToGMTime();
\r
- SQLite3DB::Statement st=m_db->Prepare("INSERT INTO tblIdentity(PublicKey,DateAdded
) VALUES(
?,?);");
\r
+ SQLite3DB::Statement st=m_db->Prepare("INSERT INTO tblIdentity(PublicKey,DateAdded
,AddedMethod) VALUES(?,
?,?);");
\r
st.Bind(0,publickey);
\r
st.Bind(1,date.Format("%Y-%m-%d %H:%M:%S"));
\r
st.Bind(0,publickey);
\r
st.Bind(1,date.Format("%Y-%m-%d %H:%M:%S"));
\r
+ st.Bind(2,"manually");
\r
st.Step();
\r
st.Reset();
\r
}
\r
st.Step();
\r
st.Reset();
\r
}
\r