function setup() { $this->pluginid = isset($_GET['plugin']) ? $_GET['plugin'] : null; $pi = new plugin_indexer(); $plist = $pi->getList(); sort($plist); $this->smarty->assign('pluginlist', $plist); $this->errors = @$pi->getEnableds(true); $this->fp_plugins = $pi->enabledlist; }
function plugin_get($id = null) { $pluginlister = new plugin_indexer(); return $pluginlister->getList(); }