2016-11-19 16:13:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
addTitle($_locale['admin']);
|
|
|
|
|
|
|
|
if (!isset($seo[1])) $seo[1] = '';
|
|
|
|
|
|
|
|
switch ($seo[1])
|
|
|
|
{
|
|
|
|
|
|
|
|
case 'upload':
|
|
|
|
include 'data/upload.php';
|
|
|
|
exit;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'settings':
|
|
|
|
if ($user['userLevel'] < 3) redirect();
|
|
|
|
addTitle($_locale['site_settings']);
|
|
|
|
include 'includes/admin/settings.php';
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'plugins':
|
|
|
|
if ($user['userLevel'] < 3) redirect();
|
|
|
|
addTitle($_locale['plugin_manager']);
|
|
|
|
include 'includes/admin/plugins.php';
|
|
|
|
break;
|
|
|
|
|
|
|
|
case $_set['subEntry']:
|
|
|
|
if ($user['userLevel'] < 2) redirect();
|
|
|
|
addTitle($_locale['entry_editor']);
|
|
|
|
include 'includes/admin/entry.php';
|
|
|
|
break;
|
|
|
|
|
|
|
|
case $_set['subPage']:
|
|
|
|
if ($user['userLevel'] < 3) redirect();
|
|
|
|
addTitle($_locale['page_editor']);
|
|
|
|
include 'includes/admin/page.php';
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
include 'includes/admin/dashboard.php';
|
|
|
|
break;
|
2016-06-18 10:07:35 +02:00
|
|
|
}
|