From f5da4b395438cf5e461455e63323a83dc0d82db0 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 11 Jul 2006 14:58:07 +0000 Subject: Basic html output other than chickens git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4338 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd_stats.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index a421ed366..dc93a9dd4 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -29,11 +29,14 @@ using namespace std; class ModuleHttpStats : public Module { Server* Srv; + std::string stylesheet; public: void ReadConfig() { + ConfigReader c; + this->stylesheet = c.ReadValue("httpstats", "stylesheet", 0); } ModuleHttpStats(Server* Me) : Module::Module(Me) @@ -50,7 +53,13 @@ class ModuleHttpStats : public Module { log(DEBUG,"HTTP URL!"); - data << "

Chickens

"; + data << ""; + data << "InspIRCd server statisitics for " << Srv->GetServerName() << " (" << Srv->GetServerDescription() << ")"; + data << ""; + data << "

InspIRCd server statisitics for " << Srv->GetServerName() << " (" << Srv->GetServerDescription() << ")

"; + + data << ""; + data << ""; HTTPRequest* http = (HTTPRequest*)event->GetData(); HTTPDocument response(http->sock, &data, 200, "X-Powered-By: m_http_stats.so\r\n"); -- cgit v1.2.3