]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_stats.cpp
Now with added ANGRY MONKEYS.
[user/henk/code/inspircd.git] / src / modules / m_httpd_stats.cpp
index 83bcc97aaf7dfb0f41deae7712b37bbf75272150..1feeb9d246a16019c46309c254868faa29cae0d3 100644 (file)
@@ -102,19 +102,18 @@ class ModuleHttpStats : public Module
 
                        if ((http->GetURI() == "/stats") || (http->GetURI() == "/stats/"))
                        {
-                               log(DEBUG,"HTTP URL!");
-
                                data << "<!DOCTYPE html PUBLIC \
                                        \"-//W3C//DTD XHTML 1.1//EN\" \
                                        \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n\
                                        <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">";
 
                                data << "<head>";
+                               data << "<link rel='stylesheet' href='" << this->stylesheet << "' type='text/css' />";
                                data << "<title>InspIRCd server statisitics for " << Srv->GetServerName() << " (" << Srv->GetServerDescription() << ")</title>";
                                data << "</head><body>";
                                data << "<h1>InspIRCd server statisitics for " << Srv->GetServerName() << " (" << Srv->GetServerDescription() << ")</h1>";
 
-                               data << "<div id='TOTALS'>";
+                               data << "<div class='totals'>";
                                data << "<h2>Totals</h2>";
                                data << "<table>";
                                data << "<tr><td>Users</td><td>" << clientlist.size() << "</td></tr>";
@@ -124,7 +123,7 @@ class ModuleHttpStats : public Module
                                data << "</table>";
                                data << "</div>";
 
-                               data << "<div id='MODULES'>";
+                               data << "<div class='modules'>";
                                data << "<h2>Modules</h2>";
                                data << "<table>";
                                for (int i = 0; i <= MODCOUNT; i++)
@@ -135,10 +134,10 @@ class ModuleHttpStats : public Module
                                data << "</table>";
                                data << "</div>";
 
-                               data << "<div id='CHANNELS'>";
+                               data << "<div class='channels'>";
                                data << "<h2>Channels</h2>";
                                data << "<table>";
-                               data << "<tr><th>Users</th><th>Name</th><th>@</th><th>%</th><th>+</th></tr>";
+                               data << "<tr><th>Users</th><th>Name</th><th>@</th><th>%</th><th>+</th><th>Topic</th></tr>";
 
                                /* If the list has changed since last time it was displayed, re-sort it
                                 * this time only (not every time, as this would be moronic)
@@ -156,6 +155,7 @@ class ModuleHttpStats : public Module
                                                data << "<td>" << c->GetOppedUsers()->size() << "</td>";
                                                data << "<td>" << c->GetHalfoppedUsers()->size() << "</td>";
                                                data << "<td>" << c->GetVoicedUsers()->size() << "</td>";
+                                               data << "<td>" << c->topic << "</td>";
                                                data << "</tr>";
                                        }
                                }
@@ -163,6 +163,13 @@ class ModuleHttpStats : public Module
                                data << "</table>";
                                data << "</div>";
 
+
+
+
+
+                               data << "<div class='validion'>";
+                               data << "<p><a href='http://validator.w3.org/check?uri=referer'><img src='http://www.w3.org/Icons/valid-xhtml11' alt='Valid XHTML 1.1' height='31' width='88' /></a></p>";
+                               data << "</div>";
                                
                                data << "</body>";
                                data << "</html>";