$plugin_php = true;
$plugin_general_debug = false;
+
+ $squirrelmail_plugin_hooks = array();
// This function adds a plugin
function use_plugin ($name) {
{
if ($plugin_general_debug)
echo "plugin: ---- Executing $function to init plugin<br>\n";
- $function();
+ $function($plugin_general_debug);
}
elseif ($plugin_general_debug)
echo "plugin: -- Init function $function doesn't exist.<br>\n";
use_plugin($name);
}
+ if ($plugin_general_debug)
+ {
+ echo "plugin: Hook list<br>\n";
+ foreach ($squirrelmail_plugin_hooks as $Hook => $Plugins)
+ {
+ foreach ($Plugins as $Name => $Func)
+ {
+ echo "[$Hook][$Name] = $Func<br>\n";
+ }
+ }
+ }
+
?>