checkPassword($_POST['passwd']))) { $_SESSION["mainconf_password"] = $_POST['passwd']; metaRefresh("mainmanage.php"); exit(); } else { $message = _("The password is invalid! Please try again."); } } echo $_SESSION['header']; ?> <?php echo _("Login"); ?> read(); while ($cssEntry !== false) { if (substr($cssEntry, strlen($cssEntry) - 4, 4) == '.css') { $cssFiles[] = $cssEntry; } $cssEntry = $cssDir->read(); } sort($cssFiles); foreach ($cssFiles as $cssEntry) { echo "\n"; } ?> \n"; echo "\n"; echo "\n"; // include all JavaScript files $jsDirName = dirname(__FILE__) . '/../lib'; $jsDir = dir($jsDirName); $jsFiles = array(); while ($jsEntry = $jsDir->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.')); } ?>
addElement($caption, true); $table->addElement($spacer, true); // print message if login was incorrect or no config profiles are present if (isset($message)) { // $message is set by confmain.php (requires conflogin.php then) $messageField = new htmlStatusMessage('ERROR', $message); $table->addElement($messageField, true); $table->addElement($spacer, true); } // password field $gap = new htmlSpacer('1px', null); $passwordGroup = new htmlGroup(); $passwordGroup->alignment = htmlElement::ALIGN_CENTER; $passwordGroup->addElement(new htmlOutputText(_('Master password'))); $passwordGroup->addElement($gap); $passwordField = new htmlInputField('passwd'); $passwordField->setFieldSize(15); $passwordField->setIsPassword(true); $passwordGroup->addElement($passwordField); $passwordGroup->addElement($gap); $passwordGroup->addElement(new htmlButton('submit', _("Ok"))); $passwordGroup->addElement($gap); $passwordGroup->addElement(new htmlHelpLink('236')); $table->addElement($passwordGroup, true); $tabindex = 1; parseHtml(null, $table, array(), false, $tabindex, 'user'); ?>

configuration