getProfiles(); foreach ($profileNames as $profileName) { $profile = $serverProfilePersistenceManager->loadProfile($profileName); if (!$profile->hasPasswordSet()) { $profileNamesWithoutPassword[] = $profileName; } } } catch (LAMException $e) { logNewMessage(LOG_ERR, 'Unable to read server profiles: ' . $e->getTitle()); } printHeaderContents(_("Login"), '../..'); if (count($profileNames) < 1) { $message = new htmlStatusMessage('INFO', _("No server profiles found. Please create one.")); } if ($profileNamesWithoutPassword !== []) { $message = new htmlStatusMessage('INFO', _("There is at least one server profile without password. Please click on the manage server profiles link to set a password."), htmlspecialchars(implode(', ', $profileNamesWithoutPassword))); } ?>
help
menu  


add($message); $row->addVerticalSpacer('2rem'); } $box = new htmlResponsiveRow(); if (count($profileNames) > 0) { $box->add(new htmlOutputText(_("Please enter your password to change the server preferences:"))); $box->addVerticalSpacer('1.5rem'); $conf = new LAMCfgMain(); $selectedProfile = []; if (!empty($_COOKIE["lam_default_profile"]) && in_array($_COOKIE["lam_default_profile"], $profileNames)) { $selectedProfile[] = $_COOKIE["lam_default_profile"]; } else { $selectedProfile[] = $conf->default; } $box->add(new htmlResponsiveSelect('filename', $profileNames, $selectedProfile, _('Profile name'))); $passwordInput = new htmlResponsiveInputField(_('Password'), 'passwd', '', '200'); $passwordInput->setIsPassword(true); $passwordInput->setCSSClasses(['lam-initial-focus']); $box->add($passwordInput); $box->addVerticalSpacer('1rem'); $button = new htmlButton('submit', _("Ok")); $button->setCSSClasses(['lam-primary']); $box->addLabel($button); $box->add(new htmlOutputText(''), 0, 6); $box->addVerticalSpacer('1.5rem'); $box->add(new htmlHorizontalLine()); $box->addVerticalSpacer('1.5rem'); } $manageLink = new htmlLink(_("Manage server profiles"), 'profmanage.php'); $box->add($manageLink, 12, 12, 12, 'text-center'); $boxDiv = new htmlDiv(null, $box); $boxDiv->setCSSClasses(['roundedShadowBox', 'limitWidth', 'text-center']); $row->add($boxDiv); // back link $row->addVerticalSpacer('2rem'); $backLink = new htmlLink(_("Back to login"), '../login.php'); $row->add($backLink, 12, 12, 12, 'text-left'); parseHtml(null, new htmlDiv(null, $row, ['centeredTable']), [], false, 'user'); ?>