Added Blue Gray theme
[squirrelmail.git] / functions / plugin.php
index 6cf3a270b567d7c80dcc8174340adde075d3bbcd..a6371dfa62e1c744e720e055451b2051090fe31e 100644 (file)
  **/
 
 
-   $plugin_php = true;
+   if (defined('plugin_php'))
+      return;
+   define('plugin_php', true);
+
+   global $plugin_general_debug, $squirrelmail_plugin_hooks;
    $plugin_general_debug = false;
+   
+   $squirrelmail_plugin_hooks = array();
 
    // This function adds a plugin
    function use_plugin ($name) {
@@ -71,7 +77,6 @@
 
    if ($plugin_general_debug)
    {
-      global $squirrelmail_plugin_hooks;
       echo "plugin:  Hook list<br>\n";
       foreach ($squirrelmail_plugin_hooks as $Hook => $Plugins)
       {