X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fhttp%2Fipagehandler.h;h=66e15b888d19545d9da47acae64f90b060eb93f3;hb=14fff12d9df0ee30e2df4bf9d22c2e83065816df;hp=be707e5791ce47bbcc6cc678edc31de7cdf70a87;hpb=b9c3763a932cebaa015a27fe111017f6f34dfbaa;p=fms.git diff --git a/include/http/ipagehandler.h b/include/http/ipagehandler.h index be707e5..66e15b8 100644 --- a/include/http/ipagehandler.h +++ b/include/http/ipagehandler.h @@ -26,8 +26,11 @@ private: virtual const std::string GeneratePage(const std::string &method, const std::map &queryvars)=0; protected: + // splits apart data into name,data pairs in args map + void HandleMultiPartData(const std::string &contenttypeheader, char *data, const long datalen, std::map &args); // converts from basename[#] query args into a vector where the vector pos is the index pos # void CreateArgArray(const std::map &vars, const std::string &basename, std::vector &args); + const std::string CreateTrueFalseDropDown(const std::string &name, const std::string &selected); // replaces html control characters with elements (i.e. < becomes <) const std::string SanitizeOutput(const std::string &input);