From 56f9bb83a81a9cfa2e427efc8cd4691541fd9ee9 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 2 Feb 2007 23:00:15 +0000 Subject: [PATCH] Add (disabled) plugin version printout git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12213 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/configtest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/configtest.php b/src/configtest.php index 4362b32d..4ad4afe3 100644 --- a/src/configtest.php +++ b/src/configtest.php @@ -348,6 +348,21 @@ if (isset($plugins[0])) { $plugin_load_error = 'Some output is produced when plugins are loaded. Usually this means there is an error in one of the plugin setup or configuration files. The output was: '.htmlspecialchars($output); do_err($plugin_load_error); } + /** + * Print plugin versions + */ +/* DISABLED FOR NOW: takes a lot of screen real estate and not all plugins currently + support the _info() function + echo $IND . "Plugin versions...
\n"; + foreach ($plugins as $name) { + $function = $name . '_info'; + if (function_exists($function)) { + $info = $function(); + if (!empty($info['version'])) + echo $IND . $IND . $name . ' ' . $info['version'] . "
\n"; + } + } +*/ /** * This hook was added in 1.5.2 and 1.4.10. Each plugins should print an error * message and return TRUE if there are any errors in its setup/configuration. -- 2.25.1