password != $_SESSION['confwiz_masterpwd']) { require("../config/conflogin.php"); exit; } // check if user clicked on cancel button if ($_POST['cancel']) { @unlink("../../config/" . $_SESSION['confwiz_config']->file . ".conf"); metarefresh('../config/conflogin.php'); exit; } // check if user clicked on next button if ($_POST['submit']) { $errors = array(); if (!$_SESSION['confwiz_config']->set_userlistAttributes($_POST['usrlstattr'])) { $errors[] = _("User list attributes are invalid!"); } if (!$_SESSION['confwiz_config']->set_grouplistAttributes($_POST['grplstattr'])) { $errors[] = _("Group list attributes are invalid!"); } if (!$_SESSION['confwiz_config']->set_hostlistAttributes($_POST['hstlstattr'])) { $errors[] = _("Host list attributes are invalid!"); } // if no errors save and go back to optional.php if (sizeof($errors) < 1) { $_SESSION['confwiz_config']->save(); $_SESSION['confwiz_optional']['lists'] = 'done'; metarefresh('optional.php'); } else { // errors occured echo $_SESSION['header']; echo "\n"; echo "