diff options
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r-- | lib/general.lib.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index 3d60014f..5ce40831 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -739,43 +739,6 @@ function invert_boolean($value) { } // invert_boolean /** - * get_plugins - * This returns a list of the plugins and their information - */ -function get_plugins() { - - /* Init our vars */ - $plugins = array(); - - /* Open the dir */ - $handle = opendir(conf('prefix') . '/modules/plugins'); - - if (!is_resource($handle)) { - debug_event('plugins','Error: Unable to read plugins directory','1'); - } - - while ($file = readdir($handle)) { - if (substr($file,-10,10) != 'plugin.php') { continue; } - - /* Make sure it isn't a subdir */ - if (!is_dir($file)) { - - /* Get the Basename */ - $plugin_name = basename($file,'.plugin.php'); - - /* Load it */ - $plugin = new Plugin($plugin_name); - $plugins[$plugin_name] = $plugin; - } // if its not a subdir - - } // end while - - - return $plugins; - -} // get_plugins - -/** * unhtmlentities * This is required to make thing work.. but holycrap is it ugly */ |