forked from marekmurawski/ace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.php
More file actions
28 lines (25 loc) · 831 Bytes
/
uninstall.php
File metadata and controls
28 lines (25 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
* Wolf CMS - Content Management Simplified. <http://www.wolfcms.org>
* Copyright (C) 2008-2010 Martijn van der Kleijn <martijn.niji@gmail.com>
*
* Ace filter for Wolf CMS
* Code editor and syntax highlighter based on Ajax.org Cloud9 Editor.
*
* @package Plugins
* @subpackage ace
*
* @author Marek Murawski <http://marekmurawski.pl>
* @copyright Marek Murawski, 2012
* @license http://www.gnu.org/licenses/gpl.html GPLv3 license
* @license Ace http://opensource.org/licenses/BSD-3-Clause BSD
*
*/
/* Security measure */
if (!defined('IN_CMS')) { exit(); }
if (Plugin::deleteAllSettings('ace') === false) {
Flash::set('error', __('Unable to delete plugin settings.'));
redirect(get_url('setting'));
}
Flash::set('success', __('Successfully uninstalled plugin.'));
redirect(get_url('setting'));