checkPassword($_POST['passwd'])) { $_SESSION["mainconf_password"] = $_POST['passwd']; metaRefresh("mainmanage.php"); exit(); } else { $message = _("The password is invalid! Please try again."); } } if (isset($_SESSION['header'])) { echo $_SESSION['header']; } printHeaderContents(_("Login"), '../..'); ?>
help
menu  

isWritable()) { StatusMessage('WARN', _('The config file is not writable.'), _('Your changes cannot be saved until you make the file writable for the webserver user.')); } if (!empty($_GET['invalidLicense']) && ($_GET['invalidLicense'] == '1')) { StatusMessage('WARN', _('Invalid licence'), _('Please setup your licence data.')); } if (!empty($_GET['invalidLicense']) && ($_GET['invalidLicense'] == '2')) { StatusMessage('WARN', _('Expired licence'), _('Please setup your licence data.')); } ?>
add(new htmlOutputText(_("Please enter the master password to change the general preferences:")), 12); $group->addElement($row); // print message if login was incorrect or no config profiles are present if (isset($message)) { $messageField = new htmlStatusMessage('ERROR', $message); $row = new htmlResponsiveRow(); $row->add($messageField, 12); $group->addElement($spacer); $group->addElement($row); } $group->addElement($spacer); // password input $label = new htmlOutputText(_('Master password')); $passwordGroup = new htmlGroup(); $passwordField = new htmlInputField('passwd'); $passwordField->setFieldSize(15); $passwordField->setIsPassword(true); $passwordField->setCSSClasses(['lam-initial-focus']); $passwordGroup->addElement($passwordField); $passwordGroup->addElement(new htmlHelpLink('236')); $passwordDiv = new htmlDiv(null, $passwordGroup); $passwordDiv->setCSSClasses(['nowrap']); $row = new htmlResponsiveRow($label, $passwordDiv); $group->addElement($row); // button $group->addElement($spacer); $okButton = new htmlButton('submit', _("Ok")); $okButton->setCSSClasses(['lam-primary']); $row = new htmlResponsiveRow(); $row->add($okButton, 12); $row->setCSSClasses(['']); $group->addElement($row); $div = new htmlDiv(null, $group); $div->setCSSClasses(['centeredTable']); parseHtml(null, $div, [], false, 'user'); ?>