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



" . _("Back to list 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 which attributes should be displayed in the list views.") . "

\n"; echo "

" . _("This can be a list of predefined attributes which have a description and are translated or you can write your own description.") . " " . _("Predefined attributes are of type \"#attribute\".") . " " . _("If you want to input your own description it would look like this: \"attribute:description\".") . "
" . _("The entries are separated by semicolons.") . "


" . _("Example") . ": #homeDirectory;#uid;#uidNumber;#gidNumber;mail:Mail address


" . _("Predefined values") . ":

" . _("Users") . ": #uid, #uidNumber, #gidNumber, #cn, #host, #givenName, #sn, #homeDirectory, #loginShell, #mail, #gecos". "
" . _("Groups") . ": #cn, #gidNumber, #memberUID, #member, #description". "
" . _("Hosts") . ": #uid, #cn, #rid, #description" . "

\n"; echo "

 

\n"; echo (""); // user list attributes echo ("". ""); echo ("\n"); // group list attributes echo ("". ""); echo ("\n"); // host list attributes echo ("". ""); echo ("\n"); echo "
". _("Attributes in User List") . ":get_userlistAttributes() . "\">
". _("Attributes in Group List") . ":get_grouplistAttributes() . "\">
". _("Attributes in Host List") . ":get_hostlistAttributes() . "\">
\n"; echo "


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

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

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