version 0.3.32
[fms.git] / include / http / pages / showimagepage.h
index 15aa304..4492242 100644 (file)
@@ -3,10 +3,13 @@
 \r
 #include "../ipagehandler.h"\r
 \r
+#include <map>\r
+#include <set>\r
+\r
 class ShowImagePage:public IPageHandler\r
 {\r
 public:\r
-       ShowImagePage(SQLite3DB::DB *db):IPageHandler(m_db)                     {}\r
+       ShowImagePage(SQLite3DB::DB *db);\r
 \r
        void handleRequest(Poco::Net::HTTPServerRequest &request, Poco::Net::HTTPServerResponse &response);\r
 \r
@@ -17,6 +20,7 @@ private:
        const std::string GeneratePage(const std::string &method, const std::map<std::string,std::string> &queryvars) {return "";}\r
 \r
        static std::map<std::string,std::vector<char> > m_imagecache;\r
+       static std::set<std::string> m_imagewhitelist;\r
 \r
 };\r
 \r