2 require_once 'diogenes.common.inc.php';
3 require_once 'diogenes.toplevel.inc.php';
4 require_once 'Plugin/Editor.php';
6 $page = new $globals->toplevel(true
);
7 $page->assign('post',$page->script_self());
9 $action = isset($_REQUEST['action']) ?
$_REQUEST['action'] : '';
10 $barrel = isset($_REQUEST['plug_barrel']) ?
$_REQUEST['plug_barrel'] : '';
12 if ($action == "clean")
14 $globals->plugins
->clean_database($page);
19 $page->assign('greeting',__("Barrel plugins") . " - $barrel");
21 $page->assign('greeting',__("Global plugin settings"));
25 $editor = new Diogenes_Plugin_Editor($barrel, 0);
26 //$editor->hide_params(1);
27 $editor->run($page,'editor_content');
30 $page->assign('msg_clean_database', __('Clean plugins database'));
31 $page->assign('msg_clean_database_text', __("If you are having problems with references to plugins that no longer exist, you can have Diogenes remove such entries from the database."));
32 $page->assign('msg_clean', __("Clean"));
34 $page->assign('msg_enable_disable', __('Enable or disable plugins'));
37 $page->assign('msg_enable_disable_text', __("You can select the plugins you want to enable for this barrel."));
39 $page->assign('msg_enable_disable_text', __("You can select the plugins you want to enable or disable globally, that is the plugins that can be used in the different barrels. Please note that for a plugin to be accessible from a barrel, you will need to activate that plugin for the barrel. To do this, from the <i>List of sites</i> click on 'plugins' next to the barrel of your choice."));
41 $page->display('toplevel-plugins.tpl');