diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-01-05 20:58:48 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-01-05 20:58:48 +0100 |
commit | 9672d9f3bf51a5b383078874035796c6ac776eb1 (patch) | |
tree | 387e9888d1ed8bde4e65c62f62ae48d38743eff9 /lib/plugins/plugin/classes/ap_enable.class.php | |
parent | 02630b1988d1137ac7559a37d0d04c0673c9fe64 (diff) | |
download | rpg-9672d9f3bf51a5b383078874035796c6ac776eb1.tar.gz rpg-9672d9f3bf51a5b383078874035796c6ac776eb1.tar.bz2 |
removed the old plugin manager
Diffstat (limited to 'lib/plugins/plugin/classes/ap_enable.class.php')
-rw-r--r-- | lib/plugins/plugin/classes/ap_enable.class.php | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/plugins/plugin/classes/ap_enable.class.php b/lib/plugins/plugin/classes/ap_enable.class.php deleted file mode 100644 index a25c7ede8..000000000 --- a/lib/plugins/plugin/classes/ap_enable.class.php +++ /dev/null @@ -1,51 +0,0 @@ -<?php - -class ap_enable extends ap_manage { - - var $enabled = array(); - - function process() { - global $plugin_protected; - global $INPUT; - - $count_enabled = $count_disabled = 0; - - $this->enabled = $INPUT->arr('enabled'); - - foreach ($this->manager->plugin_list as $plugin) { - if (in_array($plugin, $plugin_protected)) continue; - - $new = in_array($plugin, $this->enabled); - $old = !plugin_isdisabled($plugin); - - if ($new != $old) { - switch ($new) { - // enable plugin - case true : - if(plugin_enable($plugin)){ - msg(sprintf($this->lang['enabled'],$plugin),1); - $count_enabled++; - }else{ - msg(sprintf($this->lang['notenabled'],$plugin),-1); - } - break; - case false: - if(plugin_disable($plugin)){ - msg(sprintf($this->lang['disabled'],$plugin),1); - $count_disabled++; - }else{ - msg(sprintf($this->lang['notdisabled'],$plugin),-1); - } - break; - } - } - } - - // refresh plugins, including expiring any dokuwiki cache(s) - if ($count_enabled || $count_disabled) { - $this->refresh(); - } - } - -} - |