diff options
Diffstat (limited to 'actions/admin/plugins/disable.php')
-rw-r--r-- | actions/admin/plugins/disable.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/actions/admin/plugins/disable.php b/actions/admin/plugins/disable.php new file mode 100644 index 000000000..6fd85b0eb --- /dev/null +++ b/actions/admin/plugins/disable.php @@ -0,0 +1,29 @@ +<?php + /** + * Disable plugin action. + * + * @package Elgg + * @subpackage Core + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Marcus Povey + * @copyright Curverider Ltd 2008 + * @link http://elgg.org/ + */ + + require_once("../../../engine/start.php"); + + // block non-admin users + admin_gatekeeper(); + + // Get the user + $plugin = get_input('plugin'); + + // Disable + if (disable_plugin($plugin)) + system_message(sprintf(elgg_echo('admin:plugins:disable:yes'), $plugin)); + else + system_message(sprintf(elgg_echo('admin:plugins:disable:no'), $plugin)); + + header("Location: {$CONFIG->wwwroot}admin/plugins/"); + exit; +?>
\ No newline at end of file |