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



" . _("Back to lamdaemon and PDF 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"; // lamdaemon echo "

Lamdaemon.pl:

\n"; echo "

" . _("If you want to manage quotas and homedirectories with LAM you need to setup lamdaemon.pl.") . "
" . _("This is the server and path where the lamdaemon.pl script is stored. LDAP Account Manager will make a SSH connection to this server with username and password provided at login.") . "

" . _("Use it at your own risk and read the documentation for lamdaemon before you use it!") . "

\n"; echo (""); echo ("". "\n"); echo ("\n"); echo ("". "\n"); echo ("\n"); echo "
". _("Server of external script") . ": get_scriptServer() . "\">
". _("Path to external script") . ": get_scriptPath() . "\">
\n"; echo "


\n"; // PDF text echo "

" . _("PDF text") . ":

\n"; echo "

" . _("This text will appear on top of every user PDF file.") . "

\n"; echo (""); echo ""; echo "\n"; echo ("\n"); echo "
\n"; echo "


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

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

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