summaryrefslogtreecommitdiff
path: root/modules/webcpanel/static_fileserver.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-01-02 11:02:14 -0500
committerAdam <Adam@anope.org>2014-01-02 11:03:33 -0500
commit004c4cbe5f4c37cf455cb6d0caa434fbbb3406ea (patch)
tree0e6675dfe28a829f5786b0b2f993566c61662de7 /modules/webcpanel/static_fileserver.h
parent072202c181943901c727782e64881adadf13d7dd (diff)
Move modules out of extras that dont have external dependencies
Diffstat (limited to 'modules/webcpanel/static_fileserver.h')
-rw-r--r--modules/webcpanel/static_fileserver.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/webcpanel/static_fileserver.h b/modules/webcpanel/static_fileserver.h
new file mode 100644
index 000000000..184c8661d
--- /dev/null
+++ b/modules/webcpanel/static_fileserver.h
@@ -0,0 +1,19 @@
+/*
+ * (C) 2003-2014 Anope Team
+ * Contact us at team@anope.org
+ *
+ * Please read COPYING and README for further details.
+ */
+
+#include "modules/httpd.h"
+
+/* A basic file server. Used for serving static content on disk. */
+class StaticFileServer : public HTTPPage
+{
+ Anope::string file_name;
+ public:
+ StaticFileServer(const Anope::string &f_n, const Anope::string &u, const Anope::string &c_t);
+
+ bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) anope_override;
+};
+