include_once __ROOT__ . '/classes/admin/admin_groupmanagement.php'; $title = $translation->GetTranslation('groups'); $groupmanagementClass = new Admin_Groupmanagement($sqlConnection, $translation, $config, $user, $lib, $output); $text = $groupmanagementClass->GetPage($action); break; case 'logout': // call the logout and redirect to the $user->Logout(); header("Location: index.php"); die; case 'preferences': // Load the preferences-class (preferences-management) include_once __ROOT__ . '/classes/admin/admin_preferences.php'; $title = $translation->GetTranslation('preferences'); $adminClass = new Admin_Preferences($sqlConnection, $translation, $config, $user, $lib, $output); $text = $adminClass->GetPage($action); break; case 'files': // Load the files-class (file-management) include_once __ROOT__ . '/classes/admin/admin_files.php'; $title = $translation->GetTranslation('files'); $adminClass = new Admin_Files($sqlConnection, $translation, $config, $user, $lib, $output); $text = $adminClass->GetPage($action); break; case 'pagestructure': // Load the pagestructure-class (manage & edit all pages) include_once __ROOT__ . '/classes/admin/admin_pagestructure.php'; $title = $translation->GetTranslation('pagestructure'); $adminClass = new Admin_PageStructure($sqlConnection, $translation, $config, $user, $lib, $output); $text = $adminClass->GetPage($action); break;
$text = page_sitestyle(); } elseif ($extern_page == 'users') { $title = $admin_lang['users']; $text = page_users(); } elseif ($extern_page == 'logout') { //include('./system/user_pages.php'); //page_logout(); $user->Logout(); header("Location: index.php"); die; } elseif ($extern_page == 'preferences') { include 'classes/admin/admin_preferences.php'; $title = $admin_lang['preferences']; //$text = page_preferences(); $admin_page = new Admin_Preferences($sqlConnection, $admin_lang, $config); $text = $admin_page->GetPage($extern_action); } elseif ($extern_page == 'files') { $title = $admin_lang['files']; include 'classes/admin/admin_files.php'; $admin_page = new Admin_Files($sqlConnection, $admin_lang, $user, $config, $lib); $text = $admin_page->GetPage($extern_action); } elseif ($extern_page == 'pagestructure') { $title = $admin_lang['pagestructure']; include 'classes/admin/admin_pagestructure.php'; $admin_page = new Admin_PageStructure($sqlConnection, $admin_lang, $user, $config); $text = $admin_page->GetPage($extern_action); } elseif ($extern_page == 'groups') { $title = $admin_lang['groups']; include 'classes/admin/admin_groups.php'; $admin_page = new Admin_Groups(); $text = $admin_page->GetPage($extern_action, $admin_lang);