1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 22:56:38 +02:00
Files
anope/modules/extra/webcpanel/template_fileserver.h
T
Adam 5007b72b28 Update copyright to 2013. This was done with:
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-2012 Anope Team/-2013 Anope Team/i' {} \;
2013-01-09 04:20:55 -05:00

28 lines
644 B
C++

/*
* (C) 2003-2013 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#include "../httpd.h"
/* A basic file server. Used for serving non-static non-binary content on disk. */
class TemplateFileServer
{
Anope::string file_name;
public:
struct Replacements : std::multimap<Anope::string, Anope::string>
{
Anope::string& operator[](const Anope::string &key)
{
return insert(std::make_pair(key, ""))->second;
}
};
TemplateFileServer(const Anope::string &f_n);
void Serve(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, Replacements &);
};