X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fhttp%2Fpages%2Fpeertrustpage.h;h=0fb6dd326a83655196c7cb0ba9bfe755cd97113d;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=851296f6586562d2197d587b32fbcfb11f3a2abf;hpb=b4f4686250878cdf4fcb2986a2ea6546cba867d1;p=fms.git diff --git a/include/http/pages/peertrustpage.h b/include/http/pages/peertrustpage.h index 851296f..0fb6dd3 100644 --- a/include/http/pages/peertrustpage.h +++ b/include/http/pages/peertrustpage.h @@ -2,15 +2,15 @@ #define _peertrustpage_ #include "../ipagehandler.h" -#include "../../idatabase.h" -class PeerTrustPage:public IPageHandler,public IDatabase +class PeerTrustPage:public IPageHandler { public: - PeerTrustPage(const std::string &templatestr):IPageHandler(templatestr) {} + PeerTrustPage(SQLite3DB::DB *db, const std::string &templatestr):IPageHandler(db,templatestr,"peertrust.htm") {} + + IPageHandler *New() { return new PeerTrustPage(m_db,m_template); } private: - const bool WillHandleURI(const std::string &uri); const std::string GeneratePage(const std::string &method, const std::map &queryvars); const std::string GetClassString(const std::string &trustlevel);