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 "\n"; echo _("Configuration wizard"); echo "\n"; echo "\n"; for ($i = 0; $i < sizeof($errors); $i++) { StatusMessage("ERROR", $errors[$i], ""); } echo "



" . _("Back to range settings") . "

\n"; echo "\n"; exit; } } echo $_SESSION['header']; echo "\n"; echo _("Configuration wizard"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "

\n"; echo "\"LDAP\n"; echo "

\n"; echo "
\n"; // formular echo "
\n"; echo "

 

\n"; echo "

" . _("Please enter the UID/GID ranges for your accounts:") . "

\n"; echo "

 

\n"; echo (""); // minUID echo ("\n"); // maxUID echo ("\n"); // UID text echo ("\n"); // minGID echo ("\n"); // maxGID echo ("\n"); // GID text echo ("\n"); // minMach echo ("\n"); // maxMach echo ("\n"); // Machine text echo ("\n"); echo "
". _("Minimum UID number") . ": ". "get_minUID() . "\"> " . _("Maximum UID number") . ": ". "get_maxUID() . "\">" . _("Help") . "
". _("Minimum GID number") . ": ". "get_minGID() . "\"> " . _("Maximum GID number").": ". "get_maxGID() . "\">" . _("Help") . "
". _("Minimum Machine number") . ": ". "get_minMachine() . "\"> " . _("Maximum Machine number") . ": ". "get_maxMachine() . "\">" . _("Help") . "
\n"; echo "


\n"; // next/cancel button echo "

\n"; echo "\n"; echo "\n"; echo "

\n"; echo "
\n"; echo "\n\n"; ?>