summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 20:52:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 20:52:03 +0000
commit150aaa6f9d8f88816437c9e89c19c77a5764e9d7 (patch)
tree240b882e9bbbcd96349ef3dd5e95ed2e03719c6b /src/modules
parent3860724f05d61b58c1fe27a1dcdd0d15d2e64cb2 (diff)
Topic support in channel list - NOTE THIS ISNT SAFE AGAINST XSS YET
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4351 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_httpd_stats.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index fada1f572..1feeb9d24 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -113,7 +113,7 @@ class ModuleHttpStats : public Module
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>";
@@ -123,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++)
@@ -134,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)
@@ -155,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>";
}
}
@@ -166,7 +167,7 @@ class ModuleHttpStats : public Module
- data << "<div id='validion'>";
+ 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>";