password)) {
require('mainlogin.php');
exit();
}
echo $_SESSION['header'];
?>
password = $_POST['masterpassword'];
$cfg->save();
$msg = _("New master password set successfully.");
unset($_SESSION["mainconf_password"]);
}
else $error = _("Master passwords are different or empty!");
}
else {
$msg = _("No changes were made.");
}
// print messages
if ($error || $msg) {
if ($error) StatusMessage("ERROR", "", $error);
if ($msg) {
StatusMessage("INFO", "", $msg);
// back to login page
echo "" . _("Back to login") . "
";
exit();
}
}
else exit;
}
?>