. * * @category Settings * @package StatusNet * @author Brion Vibber * @copyright 2010 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ if (!defined('STATUSNET')) { exit(1); } /** * Plugins settings * * @category Admin * @package StatusNet * @author Brion Vibber * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ class PluginsadminpanelAction extends AdminPanelAction { /** * Returns the page title * * @return string page title */ function title() { // TRANS: Tab and title for plugins admin panel. return _('Plugins'); } /** * Instructions for using this form. * * @return string instructions */ function getInstructions() { // TRANS: Instructions at top of plugin admin page. return _('Additional plugins can be enabled and configured manually. ' . 'See the online plugin ' . 'documentation for more details.'). '
'. ''. '
'; } /** * Show the plugins admin panel form * * @return void */ function showForm() { $this->elementStart('fieldset', array('id' => 'settings_plugins_default')); // TRANS: Admin form section header $this->element('legend', null, _('Default plugins'), 'default'); $this->showPlugins(); $this->elementEnd('fieldset'); } /** * Show a list of all plugins listed in 'plugindata.out.php' */ protected function showPlugins() { require_once INSTALLDIR.'/plugindata.out.php'; $plugins = array_keys(common_plugindata()); natsort($plugins); if ($plugins) { $list = new PluginList($plugins, $this); $list->show(); } else { $this->element('p', null, _('No plugins found.')); } } }