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"; } ?>
configuration 

isWritable()) { StatusMessage('WARN', 'The config file is not writable.', 'Your changes cannot be saved until you make the file writable for the webserver user.'); } ?>
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'); ?>