password != $_SESSION['confwiz_masterpwd']) { require("../config/conflogin.php"); exit; } // check if user clicked on buttons if ($_POST['submit'] || $_POST['cancel'] || $_POST['back']) { unset($error); unset($ret); if ($_POST['cancel']) { @unlink("../../config/" . $_SESSION['confwiz_config']->file . ".conf"); metarefresh('../config/conflogin.php'); } elseif ($_POST['back']) { metarefresh('server.php?back=true'); } else { // set input values $errors = array(); if (!$_SESSION['confwiz_config']->set_UserSuffix($_POST['usersuffix'])) { $error = _("UserSuffix is invalid!"); } if (!$_SESSION['confwiz_config']->set_GroupSuffix($_POST['groupsuffix'])) { $error = _("GroupSuffix is invalid!"); } if (!$_SESSION['confwiz_config']->set_HostSuffix($_POST['hostsuffix'])) { $error = _("HostSuffix is invalid!"); } if ($_SESSION['confwiz_config']->is_samba3() && !$_SESSION['confwiz_config']->set_DomainSuffix($_POST['domainsuffix'])) { $error = _("DomainSuffix is invalid!"); } if (!$_SESSION['confwiz_config']->set_pwdhash($_POST['pwdhash'])) { $error = _("Password hash is invalid!"); } if (!$_SESSION['confwiz_config']->set_cacheTimeout($_POST['cachetimeout'])) { $error = _("Cache timeout is invalid!"); } $_SESSION['confwiz_config']->save(); // print error message if needed if (sizeof($errors) > 0) { echo $_SESSION['header']; echo "\n"; echo "