Anope IRC Services  Version 2.0
register.cpp
Go to the documentation of this file.
1 /*
2  * (C) 2003-2014 Anope Team
3  * Contact us at team@anope.org
4  *
5  * Please read COPYING and README for further details.
6  */
7 
8 #include "../webcpanel.h"
9 
10 bool WebCPanel::Register::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply)
11 {
13 
14  replacements["TITLE"] = page_title;
15 
16  if (Config->GetModule("nickserv")->Get<bool>("forceemail", "yes"))
17  replacements["FORCE_EMAIL"] = "yes";
18 
19  TemplateFileServer page("register.html");
20 
21  page.Serve(server, page_name, client, message, reply, replacements);
22  return true;
23 }
24 
void Serve(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &, Replacements &)
Definition: Config.cs:26
bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) anope_override
Definition: register.cpp:10
Anope::string page_title
Definition: webcpanel.cpp:11