mirror of
https://github.com/anope/anope.git
synced 2026-07-09 19:43:14 +02:00
@@ -16,7 +16,7 @@ class ModuleWebCPanel : public Module
|
||||
Panel panel;
|
||||
PrimitiveExtensibleItem<Anope::string> id, ip;
|
||||
|
||||
StaticFileServer style_css, logo_png, favicon_ico;
|
||||
StaticFileServer style_css, logo_png, cubes_png, favicon_ico;
|
||||
|
||||
WebCPanel::Index index;
|
||||
WebCPanel::Logout logout;
|
||||
@@ -44,7 +44,7 @@ class ModuleWebCPanel : public Module
|
||||
public:
|
||||
ModuleWebCPanel(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR),
|
||||
panel(this, "webcpanel"), id(this, "webcpanel_id"), ip(this, "webcpanel_ip"),
|
||||
style_css("style.css", "/static/style.css", "text/css"), logo_png("logo.png", "/static/logo.png", "image/png"), favicon_ico("favicon.ico", "/favicon.ico", "image/x-icon"),
|
||||
style_css("style.css", "/static/style.css", "text/css"), logo_png("logo.png", "/static/logo.png", "image/png"), cubes_png("cubes.png", "/static/cubes.png", "image/png"), favicon_ico("favicon.ico", "/favicon.ico", "image/x-icon"),
|
||||
index("/"), logout("/logout"), _register("/register"), confirm("/confirm"),
|
||||
nickserv_info("NickServ", "/nickserv/info"), nickserv_cert("NickServ", "/nickserv/cert"), nickserv_access("NickServ", "/nickserv/access"), nickserv_alist("NickServ", "/nickserv/alist"),
|
||||
chanserv_info("ChanServ", "/chanserv/info"), chanserv_set("ChanServ", "/chanserv/set"), chanserv_access("ChanServ", "/chanserv/access"), chanserv_akick("ChanServ", "/chanserv/akick"),
|
||||
@@ -65,6 +65,7 @@ class ModuleWebCPanel : public Module
|
||||
|
||||
provider->RegisterPage(&this->style_css);
|
||||
provider->RegisterPage(&this->logo_png);
|
||||
provider->RegisterPage(&this->cubes_png);
|
||||
provider->RegisterPage(&this->favicon_ico);
|
||||
|
||||
provider->RegisterPage(&this->index);
|
||||
@@ -192,6 +193,7 @@ class ModuleWebCPanel : public Module
|
||||
{
|
||||
provider->UnregisterPage(&this->style_css);
|
||||
provider->UnregisterPage(&this->logo_png);
|
||||
provider->UnregisterPage(&this->cubes_png);
|
||||
provider->UnregisterPage(&this->favicon_ico);
|
||||
|
||||
provider->UnregisterPage(&this->index);
|
||||
|
||||
Reference in New Issue
Block a user