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