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_minUID($_POST['minUID'])) { $errors[] = _("Minimum UID number is invalid!"); } if (!$_SESSION['confwiz_config']->set_maxUID($_POST['maxUID'])) { $errors[] = _("Maximum UID number is invalid!"); } if (!$_SESSION['confwiz_config']->set_minGID($_POST['minGID'])) { $errors[] = _("Minimum GID number is invalid!"); } if (!$_SESSION['confwiz_config']->set_maxGID($_POST['maxGID'])) { $errors[] = _("Maximum GID number is invalid!"); } if (!$_SESSION['confwiz_config']->set_minMachine($_POST['minMach'])) { $errors[] = _("Minimum Machine number is invalid!"); } if (!$_SESSION['confwiz_config']->set_maxMachine($_POST['maxMach'])) { $errors[] = _("Maximum Machine number is invalid!"); } // if no errors save and go back to optional.php if (sizeof($errors) < 1) { $_SESSION['confwiz_config']->save(); $_SESSION['confwiz_optional']['ranges'] = 'done'; metarefresh('optional.php'); } else { // errors occured echo $_SESSION['header']; echo "\n"; echo "