From bf6e9f88d8fbd520cf7373fa58ad3c45c76904dd Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 6 Aug 2007 00:39:54 +0000 Subject: - Added modules section to sidebar, conforming to new layout from r1127 - Re-enabled plugins, added openstrands plugin --- lib/general.lib.php | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'lib/general.lib.php') 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 @@ -738,43 +738,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 -- cgit