X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fhttp%2Fpages%2Fpeertrustpage.cpp;h=ee087f38ea019bb822e7ade8cf6cb429b0b655ed;hb=3dc3ac3cfe10b7196a7977e9c041c29fa141c35e;hp=667595d126c42572369f84445588ad9ff73e2554;hpb=52c0819bfc1d083c6e0738f75f0d7eeba521295a;p=fms.git diff --git a/src/http/pages/peertrustpage.cpp b/src/http/pages/peertrustpage.cpp index 667595d..ee087f3 100644 --- a/src/http/pages/peertrustpage.cpp +++ b/src/http/pages/peertrustpage.cpp @@ -91,8 +91,22 @@ const std::string PeerTrustPage::GeneratePage(const std::string &method, const s StringFunctions::Convert(ltlt[i],localtrustlisttrust); StringFunctions::Convert(identityids[i],identityid); - update.Bind(0,localmessagetrust); - update.Bind(1,localtrustlisttrust); + if(lmt[i]!="") + { + update.Bind(0,localmessagetrust); + } + else + { + update.Bind(0); + } + if(ltlt[i]!="") + { + update.Bind(1,localtrustlisttrust); + } + else + { + update.Bind(1); + } update.Bind(2,identityid); update.Step(); update.Reset(); @@ -144,13 +158,17 @@ const std::string PeerTrustPage::GeneratePage(const std::string &method, const s content+="Message Trust is how much you trust the identity to post good messages. Trust List Trust is how much weight you want the trust list of that identity to have when calculating the total. The local trust levels are set by you, and the peer trust levels are calculated by a weighted average using other identities' trust lists."; content+="
"; content+="
"; - content+=""; + content+=""; content+=""; content+="
"; content+="
"; content+="
"; content+=""; content+=""; + if(namesearch!="") + { + content+=""; + } content+=""; content+=""; content+=""; @@ -279,7 +297,7 @@ const std::string PeerTrustPage::GeneratePage(const std::string &method, const s content+=""; } - content+=""; + content+=""; content+="
NameLocal Message Trust
"; content+="
";