_globalConfig = $config; $this->_storageHelper = $storageHelper; $this->_translations = $translations; $this->_resultLevels['loginSuccess'] = "success"; $this->_resultLevels['loginFailed'] = "danger"; $this->_resultLevels['ldapConnectFailed'] = "danger"; $this->_resultLevels['ldapSearchFailed'] = "danger"; $this->_resultLevels['ldapTlsInitializationFailed'] = "danger"; $this->_resultLevels['bindingToLdapAdminFailed'] = "danger"; $this->_resultLevels['loginRequired'] = "warning"; $this->_resultLevels['oldPasswordIsWrong'] = "danger"; $this->_resultLevels['newPasswordMustNotBeEqualToOldPassword'] = "danger"; $this->_resultLevels['newPasswordAndRepeatDidNotMatch'] = "danger"; $this->_resultLevels['passwordIsTooShort'] = "danger"; $this->_resultLevels['passwordDoesNotContainANumberOrSpecialCharacter'] = "danger"; $this->_resultLevels['passwordDoesNotContainALetter'] = "danger"; $this->_resultLevels['passwordDoesNotContainAnUppercaseLetter'] = "danger"; $this->_resultLevels['passwordDoesNotContainALowercaseLetter'] = "danger"; $this->_resultLevels['passwordChangeLdapError'] = "danger"; $this->_resultLevels['newPasswordMustNotBeOldPassword'] = "danger"; $this->_resultLevels['passwordChangedSuccessfully'] = 'success'; $this->_resultLevels['emailChangedSuccessfully'] = 'success'; $this->_resultLevels['emailChangeLdapError'] = 'danger'; $this->_resultLevels['invalidEmailError'] = 'danger'; $this->_resultLevels['permissionDenied'] = 'danger'; $this->_resultLevels['generateJitsiLinkRoomMustNotBeEmpty'] = 'danger'; $this->_resultLevels['generateJitsiLinkSuccessfull'] = 'success'; $this->_resultLevels['timerSetSuccessfully'] = 'success'; } public function printPage($page, $parameters) { switch ($page) { case 'login': $this->_printLogin(); break; case "manage": $this->_printManagePage(); break; case "t": $this->_printTimerPage($parameters); } } private function _printLogin() { $this->_printHeader(true); ?>

_trId("login.title"); ?>

_printResultAlert(); ?> " name="username" required autofocus> " name="password" required>

_trId("login.footnote"); ?>

_printFooter(); } private function _printManagePage() { $userData = $this->_storageHelper->loadUserdata()[$_SESSION["auth"]["username"]]; $this->_printHeader(); ?>

Curent timer

00:00:00

Manage timer

_printResultAlert(); ?>
" required>
_printTimerJs($_SESSION["auth"]["username"]); $this->_printFooter(); } private function _printTimerPage($username) { $userData = $this->_storageHelper->loadUserdata(); if (!array_key_exists($username, $userData)) { $this->_printNotFoundPage(); } ?>

00:00:00

Not found!

<?= $this->_trId("globals.title"); ?> _printAlert($this->_resultToMessage($_SESSION['lastResult']), $this->_resultLevels[$_SESSION['lastResult']]); } private function _printAlert($content, $level = 'waring', $dismissible = true) { ?>
fade show" role="alert">
_translations['results'][$result]; } private function _trId($id) { $result = $this->_translations; foreach (explode(".", $id) as $sub) { $result = $result[$sub]; } return $result; } }