mirror of
git://git.acid.vegas/anope.git
synced 2024-11-15 12:16:41 +00:00
24 lines
630 B
C++
24 lines
630 B
C++
|
/*
|
||
|
* (C) 2003-2022 Anope Team
|
||
|
* Contact us at team@anope.org
|
||
|
*
|
||
|
* Please read COPYING and README for further details.
|
||
|
*/
|
||
|
|
||
|
#include "../webcpanel.h"
|
||
|
|
||
|
bool WebCPanel::Register::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply)
|
||
|
{
|
||
|
TemplateFileServer::Replacements replacements;
|
||
|
|
||
|
replacements["TITLE"] = page_title;
|
||
|
|
||
|
if (Config->GetModule("nickserv")->Get<bool>("forceemail", "yes"))
|
||
|
replacements["FORCE_EMAIL"] = "yes";
|
||
|
|
||
|
TemplateFileServer page("register.html");
|
||
|
|
||
|
page.Serve(server, page_name, client, message, reply, replacements);
|
||
|
return true;
|
||
|
}
|