diff options
author | Adam <Adam@anope.org> | 2014-01-02 11:02:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-01-02 11:03:33 -0500 |
commit | 004c4cbe5f4c37cf455cb6d0caa434fbbb3406ea (patch) | |
tree | 0e6675dfe28a829f5786b0b2f993566c61662de7 /modules/extra/webcpanel/pages/hostserv/request.cpp | |
parent | 072202c181943901c727782e64881adadf13d7dd (diff) |
Move modules out of extras that dont have external dependencies
Diffstat (limited to 'modules/extra/webcpanel/pages/hostserv/request.cpp')
-rw-r--r-- | modules/extra/webcpanel/pages/hostserv/request.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/extra/webcpanel/pages/hostserv/request.cpp b/modules/extra/webcpanel/pages/hostserv/request.cpp deleted file mode 100644 index ee6356214..000000000 --- a/modules/extra/webcpanel/pages/hostserv/request.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* - * (C) 2003-2014 Anope Team - * Contact us at team@anope.org - * - * Please read COPYING and README for further details. - */ - -#include "../../webcpanel.h" - -WebCPanel::HostServ::Request::Request(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage (cat, u) -{ -} - -bool WebCPanel::HostServ::Request::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply, NickAlias *na, TemplateFileServer::Replacements &replacements) -{ - if (message.post_data.count("req") > 0) - { - std::vector<Anope::string> params; - params.push_back(HTTPUtils::URLDecode(message.post_data["req"])); - - WebPanel::RunCommand(na->nc->display, na->nc, "HostServ", "hostserv/request", params, replacements, "CMDR"); - } - - if (na->HasVhost()) - { - if (na->GetVhostIdent().empty() == false) - replacements["VHOST"] = na->GetVhostIdent() + "@" + na->GetVhostHost(); - else - replacements["VHOST"] = na->GetVhostHost(); - } - if (ServiceReference<Command>("Command", "hostserv/request")) - replacements["CAN_REQUEST"] = "YES"; - TemplateFileServer page("hostserv/request.html"); - page.Serve(server, page_name, client, message, reply, replacements); - return true; -} |