List loaded extensions
yay for using secret globals \o/ git-svn-id: file:///home/shish/svn/shimmie2/trunk@100 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
6c071f95c9
commit
d798c1fc96
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,7 @@ class ET extends Extension {
|
|||
private function build_data_form() {
|
||||
global $database;
|
||||
global $config;
|
||||
global $_event_listeners; // yay for using secret globals \o/
|
||||
|
||||
$data = "";
|
||||
|
||||
|
@ -55,6 +56,12 @@ class ET extends Extension {
|
|||
$data .= "Users: ".($database->db->GetOne("SELECT COUNT(*) FROM users"))."\n";
|
||||
$data .= "Tags: ".($database->db->GetOne("SELECT COUNT(*) FROM tags"))."\n";
|
||||
|
||||
$els = array();
|
||||
foreach($_event_listeners as $el) {
|
||||
$els[] = get_class($el);
|
||||
}
|
||||
$data .= "Extensions: ".join(", ", $els)."\n";
|
||||
|
||||
$html = "
|
||||
<form action='http://shimmie.shishnet.org/register.php' method='POST'>
|
||||
<input type='hidden' name='registration_api' value='1'>
|
||||
|
|
Reference in a new issue