checkPassword($_POST['passwd']))) { $_SESSION["mainconf_password"] = $_POST['passwd']; metaRefresh("mainmanage.php"); exit(); } else { $message = _("The password is invalid! Please try again."); } } echo $_SESSION['header']; printHeaderContents(_("Login"), '../..'); ?> read()) { if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue; $jsFiles[] = $jsEntry; } sort($jsFiles); foreach ($jsFiles as $jsEntry) { echo "\n"; } ?>

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(array('lam-initial-focus')); $passwordGroup->addElement($passwordField); $passwordGroup->addElement(new htmlHelpLink('236')); $passwordDiv = new htmlDiv(null, $passwordGroup); $passwordDiv->setCSSClasses(array('nowrap')); $row = new htmlResponsiveRow($label, $passwordDiv); $group->addElement($row); // button $group->addElement($spacer); $okButton = new htmlButton('submit', _("Ok")); $row = new htmlResponsiveRow(); $row->add($okButton, 12); $row->setCSSClasses(array('')); $group->addElement($row); $div = new htmlDiv(null, $group); $div->setCSSClasses(array('centeredTable')); $tabindex = 1; parseHtml(null, $div, array(), false, $tabindex, 'user'); ?>

configuration