32 lines
1.3 KiB
PHP
32 lines
1.3 KiB
PHP
|
<?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');
|
||
|
}
|
||
|
|
||
|
// ============================================================================
|
||
|
// Functions
|
||
|
// ============================================================================
|
||
|
|
||
|
// ============================================================================
|
||
|
// Main before POST
|
||
|
// ============================================================================
|
||
|
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||
|
changePluginsPosition(explode(',',$_POST['plugin-list']));
|
||
|
Redirect::page('plugins-position');
|
||
|
}
|
||
|
// ============================================================================
|
||
|
// POST Method
|
||
|
// ============================================================================
|
||
|
|
||
|
// ============================================================================
|
||
|
// Main after POST
|
||
|
// ============================================================================
|
||
|
|
||
|
// Title of the page
|
||
|
$layout['title'] .= ' - '.$Language->g('Plugins');
|