function ShowUsers($filter)
 {
     require_once PATH_ACCESS . '/UserManager.php';
     require_once PATH_ACCESS . '/GroupManager.php';
     require_once PATH_ACCESS . '/GlobalSettingsManager.php';
     $globalSettingsManager = new globalSettingsManager();
     $userManager = new UserManager();
     $groupManager = new GroupManager();
     try {
         $groups = $groupManager->getTableData();
         //$users = $userManager->getTableData();
         isset($_GET['sitePointer']) ? $showPage = $_GET['sitePointer'] + 0 : ($showPage = 1);
         $nextPointer = $showPage * 10 - 10;
         $users = $userManager->getUsersSorted($nextPointer, $filter);
     } catch (Exception $e) {
         $this->logs->log('ADMIN', 'MODERATE', sprintf('Error while getting Data from MySQL:%s in %s', $e->getMessage(), __METHOD__));
         $this->userInterface->dieError($this->messages['error']['get_data_failed']);
     }
     foreach ($users as &$user) {
         $is_named = false;
         foreach ($groups as $gn) {
             if ($gn['ID'] == $user['GID']) {
                 $user['groupname'] = $gn['name'];
                 $is_named = true;
                 break;
             }
         }
         $is_named or $user['groupname'] = 'Error: This group is non-existent!';
     }
     $foreignLanguages = $globalSettingsManager->getForeignLanguages();
     $foreignLanguages_exploded = explode("|", $foreignLanguages);
     $navbar = navBar($showPage, 'SystemUsers', 'System', 'ForeignLanguage', '3', $filter);
     $this->ForeignLanguageInterface->ShowUsers($users, $foreignLanguages_exploded, $navbar);
 }
 function ShowSingleUser($uid)
 {
     require_once PATH_ACCESS . '/UserManager.php';
     require_once PATH_ACCESS . '/GroupManager.php';
     require_once PATH_ACCESS . '/GlobalSettingsManager.php';
     $globalSettingsManager = new globalSettingsManager();
     $userManager = new UserManager();
     $groupManager = new GroupManager();
     try {
         $users = $userManager->getSingleUser($uid);
     } catch (Exception $e) {
         $this->logs->log('ADMIN', 'MODERATE', sprintf('Error while getting Data from MySQL:%s in %s', $e->getMessage(), __METHOD__));
         $this->userInterface->dieError($this->messages['error']['get_data_failed']);
     }
     $specialCourses = $globalSettingsManager->getSpecialCourses();
     $specialCourses_exploded = explode("|", $specialCourses);
     $this->SpecialCourseInterface->ShowUsers($users, $specialCourses_exploded, '');
 }