2015-06-12 01:00:04 -03:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Check role
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
if($Login->role()!=='admin') {
|
2015-07-20 00:14:12 -03:00
|
|
|
Alert::set($Language->g('you-do-not-have-sufficient-permissions'));
|
2015-06-12 01:00:04 -03:00
|
|
|
Redirect::page('admin', 'dashboard');
|
|
|
|
}
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Functions
|
|
|
|
// ============================================================================
|
|
|
|
|
2015-08-02 21:49:12 -03:00
|
|
|
// ============================================================================
|
|
|
|
// Main after POST
|
|
|
|
// ============================================================================
|
|
|
|
|
2015-06-12 01:00:04 -03:00
|
|
|
// ============================================================================
|
|
|
|
// POST Method
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
2015-08-02 21:49:12 -03:00
|
|
|
// Main after POST
|
2015-06-12 01:00:04 -03:00
|
|
|
// ============================================================================
|
|
|
|
$pluginClassName = $layout['parameters'];
|
|
|
|
|
|
|
|
$Plugin = new $pluginClassName;
|
|
|
|
$Plugin->uninstall();
|
|
|
|
|
2015-11-28 11:47:03 -03:00
|
|
|
Redirect::page('admin', 'plugins');
|