2015-08-02 19:05:20 -03:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Check role
|
|
|
|
// ============================================================================
|
|
|
|
|
2018-05-20 21:48:43 +02:00
|
|
|
checkRole(array('admin'));
|
2015-08-02 19:05:20 -03:00
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Functions
|
|
|
|
// ============================================================================
|
|
|
|
|
2015-08-02 21:49:12 -03:00
|
|
|
// ============================================================================
|
|
|
|
// Main before POST
|
|
|
|
// ============================================================================
|
|
|
|
|
2015-08-02 19:05:20 -03:00
|
|
|
// ============================================================================
|
|
|
|
// POST Method
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
2015-08-02 21:49:12 -03:00
|
|
|
// Main after POST
|
2015-08-02 19:05:20 -03:00
|
|
|
// ============================================================================
|
2018-11-08 20:59:06 -03:00
|
|
|
$themeDirectory = $layout['parameters'];
|
2015-08-02 19:05:20 -03:00
|
|
|
|
2018-11-08 20:59:06 -03:00
|
|
|
// Activate theme
|
|
|
|
activateTheme($themeDirectory);
|
2015-08-02 19:05:20 -03:00
|
|
|
|
2017-06-05 22:36:09 +02:00
|
|
|
// Redirect
|
|
|
|
Redirect::page('themes');
|