2015-06-11 04:27:04 +02:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Check role
|
|
|
|
// ============================================================================
|
|
|
|
|
2017-09-09 00:33:14 +02:00
|
|
|
if ($Login->role()!=='admin') {
|
|
|
|
Alert::set($Language->g('You do not have sufficient permissions'));
|
2017-05-27 19:46:46 +02:00
|
|
|
Redirect::page('dashboard');
|
2015-06-11 04:27:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Functions
|
|
|
|
// ============================================================================
|
|
|
|
|
2015-08-03 02:49:12 +02:00
|
|
|
// ============================================================================
|
|
|
|
// Main before POST
|
|
|
|
// ============================================================================
|
|
|
|
|
2015-06-11 04:27:04 +02:00
|
|
|
// ============================================================================
|
|
|
|
// POST Method
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
2015-08-03 02:49:12 +02:00
|
|
|
// Main after POST
|
2015-06-11 04:27:04 +02:00
|
|
|
// ============================================================================
|
2015-06-12 06:00:04 +02:00
|
|
|
$pluginClassName = $layout['parameters'];
|
2017-09-09 00:33:14 +02:00
|
|
|
activatePlugin($pluginClassName);
|
2018-03-09 12:26:32 +01:00
|
|
|
Redirect::page('plugins#'.$pluginClassName);
|