_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); ?>