Try to automatically locate plugins, show loaded plugins on web interface

This commit is contained in:
Ron Pedde
2007-04-04 20:34:29 +00:00
parent c37e33f5c1
commit a4dea03121
7 changed files with 134 additions and 30 deletions

View File

@@ -35,6 +35,17 @@
</tbody>
</table>
<br />
<table id="plugin" cellspacing="0">
<col style="width: 20ex;" />
<col />
<thead>
<tr><th>Plugin</th><th>Version</th></tr>
</thead>
<tbody>
<tr><td></td><td></tr></tr>
</tbody>
</table>
<br />
<table id="stat" cellspacing="0">
<col style="width: 20ex;" />
<col />

View File

@@ -51,6 +51,19 @@ var Updater = {
row.push(Element.textContent(element.childNodes[2]));
threadTable.addTbodyRow(row);
});
// Monkey see, monkey do
var plugin = $A(request.responseXML.getElementsByTagName('plugin'));
var pluginTable = new Table('plugin');
pluginTable.removeTBodyRows();
plugin.each(function(element) {
row = [];
info = Element.textContent(element.childNodes[0]).split('/',2);
row.push(info[0]);
row.push(info[1]);
pluginTable.addTbodyRow(row);
});
// $('session_count').replaceChild(document.createTextNode(users + ' Connected Users'),$('session_count').firstChild);
if (!Updater.stop) {
Updater.wait();