Commit | Line | Data |
---|---|---|
6855525e JL |
1 | <?php |
2 | require_once 'diogenes.common.inc.php'; | |
3 | require_once 'diogenes.toplevel.inc.php'; | |
4 | require_once 'Plugin/Editor.php'; | |
5 | ||
6 | $page = new $globals->toplevel(true); | |
7 | $page->assign('post',$page->script_self()); | |
8 | ||
9 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; | |
10 | $barrel = isset($_REQUEST['plug_barrel']) ? $_REQUEST['plug_barrel'] : ''; | |
11 | ||
12 | if ($action == "clean") | |
13 | { | |
14 | $globals->plugins->clean_database($page); | |
15 | } | |
16 | ||
17 | if ($barrel) | |
18 | { | |
19 | $page->assign('greeting',__("Barrel plugins") . " - $barrel"); | |
20 | } else { | |
21 | $page->assign('greeting',__("Global plugin settings")); | |
22 | } | |
23 | ||
24 | /* plugin editor */ | |
25 | $editor = new Diogenes_Plugin_Editor($barrel, 0); | |
56aefc1e | 26 | //$editor->hide_params(1); |
6855525e JL |
27 | $editor->run($page,'editor_content'); |
28 | ||
6855525e JL |
29 | // translations |
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")); | |
33 | ||
34 | $page->assign('msg_enable_disable', __('Enable or disable plugins')); | |
35 | if ($barrel) | |
36 | { | |
37 | $page->assign('msg_enable_disable_text', __("You can select the plugins you want to enable for this barrel.")); | |
38 | } else { | |
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.")); | |
40 | } | |
41 | $page->display('toplevel-plugins.tpl'); | |
42 | ||
43 | ?> |