From d798c1fc96e261b8fd64a8aa44283dcd88e28b86 Mon Sep 17 00:00:00 2001 From: shish Date: Wed, 16 May 2007 21:23:01 +0000 Subject: [PATCH] List loaded extensions yay for using secret globals \o/ git-svn-id: file:///home/shish/svn/shimmie2/trunk@100 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/et/main.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/et/main.php b/ext/et/main.php index 70dc19a4..02ee8d6a 100644 --- a/ext/et/main.php +++ b/ext/et/main.php @@ -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 = "