2015-08-02 04:47:45 +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('admin', 'dashboard');
|
|
|
|
}
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// POST Method
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
if( $_SERVER['REQUEST_METHOD'] == 'POST' )
|
|
|
|
{
|
|
|
|
$Site->set($_POST);
|
|
|
|
}
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Main
|
|
|
|
// ============================================================================
|
2015-08-02 06:40:24 +02:00
|
|
|
|
|
|
|
$themes = Filesystem::listDirectories(PATH_THEMES);
|
|
|
|
|
|
|
|
// Load each plugin clasess
|
|
|
|
foreach($themes as $themePath) {
|
|
|
|
// include($themePath.DS.'plugin.php');
|
|
|
|
}
|