bludit/bl-kernel/admin/controllers/install-plugin.php

30 lines
1.2 KiB
PHP
Raw Normal View History

2015-06-11 04:27:04 +02:00
<?php defined('BLUDIT') or die('Bludit CMS.');
// ============================================================================
// Check role
// ============================================================================
if ($Login->role()!=='admin') {
Alert::set($Language->g('You do not have sufficient permissions'));
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'];
activatePlugin($pluginClassName);
Redirect::page('plugins#'.$pluginClassName);