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_scriptpath($_POST['scriptpath'])) { $errors[] = _("Script path is invalid!"); } if (!$_SESSION['confwiz_config']->set_scriptserver($_POST['scriptserver'])) { $errors[] = _("Script server is invalid!"); } if (!$_SESSION['confwiz_config']->set_pdftext($_POST['pdf_usertext'])) { $errors[] = _("Saving PDF text failed!"); } // if no errors save and go back to optional.php if (sizeof($errors) < 1) { $_SESSION['confwiz_config']->save(); $_SESSION['confwiz_optional']['daemon'] = 'done'; metarefresh('optional.php'); } else { // errors occured echo $_SESSION['header']; echo "\n"; echo "