\n";
echo (" " . _("Server settings") . " \n");
echo ("");
// serverURL
echo ("" . _("Server address") . " *: ".
"".
" get_ServerURL() . "\">".
" \n");
echo "";
printHelpLink(getHelp('', '201'), '201');
echo " \n";
$tabindex++;
// use TLS
echo "" . _("Activate TLS") . ": \n";
echo "\n";
echo "";
$useTLS = $conf->getUseTLS();
if (isset($useTLS) && ($useTLS == 'yes')) {
echo "" . _("yes") . " ";
echo "" . _("no") . " ";
}
else {
echo "" . _("yes") . " ";
echo "" . _("no") . " ";
}
echo " \n";
echo " \n";
echo "";
printHelpLink(getHelp('', '201'), '201');
echo " \n";
$tabindex++;
// new line
echo (" ");
// tree suffix
echo ("".
_("Tree suffix") . ": ".
" get_Suffix('tree') . "\"> \n");
echo "";
printHelpLink(getHelp('', '203'), '203');
echo " \n";
$tabindex++;
// new line
echo (" ");
// LDAP cache timeout
echo ("".
_("Cache timeout") . ": ".
"\n".$conf->get_cacheTimeout()." \n");
if ($conf->get_cacheTimeout() != 0) echo("0 \n");
if ($conf->get_cacheTimeout() != 1) echo("1 \n");
if ($conf->get_cacheTimeout() != 2) echo("2 \n");
if ($conf->get_cacheTimeout() != 5) echo("5 \n");
if ($conf->get_cacheTimeout() != 10) echo("10 \n");
if ($conf->get_cacheTimeout() != 15) echo("15 \n");
echo (" \n");
$tabindex++;
echo "";
printHelpLink(getHelp('', '214'), '214');
echo " \n";
// LDAP search limit
$searchLimitOptions = array(
array(0, '-'), array(100, 100), array(500, 500),
array(1000, 1000), array(5000, 5000), array(10000, 10000),
array(50000, 50000), array(100000, 100000)
);
echo ("".
_("LDAP search limit") . ": ".
"\n");
for ($i = 0; $i < sizeof($searchLimitOptions); $i++) {
$selected = "";
if ($searchLimitOptions[$i][0] == $conf->get_searchLimit()) {
$selected = "selected";
}
echo "" . $searchLimitOptions[$i][1] . " ";
}
echo (" \n");
$tabindex++;
echo "";
printHelpLink(getHelp('', '222'), '222');
echo " \n";
// access level is only visible in Pro version
if (isLAMProVersion()) {
// new line
echo (" ");
// access level
echo ("".
_("Access level") . ": ".
"\n");
if ($conf->getAccessLevel() == LAMConfig::ACCESS_ALL) {
echo("" . _('Write access') . " \n");
}
else {
echo("" . _('Write access') . " \n");
}
if ($conf->getAccessLevel() == LAMConfig::ACCESS_PASSWORD_CHANGE) {
echo("" . _('Change passwords') . " \n");
}
else {
echo("" . _('Change passwords') . " \n");
}
if ($conf->getAccessLevel() == LAMConfig::ACCESS_READ_ONLY) {
echo("" . _('Read only') . " \n");
}
else {
echo("" . _('Read only') . " \n");
}
echo (" \n");
$tabindex++;
echo "";
printHelpLink(getHelp('', '215'), '215');
echo " \n";
}
echo ("
");
echo (" ");
echo (" ");
echo (" " . _("Language settings") . " \n");
echo ("\n");
// language
echo ("");
echo ("" . _("Default language") . ": \n");
// read available languages
$languagefile = "../../config/language";
if(is_file($languagefile))
{
$file = fopen($languagefile, "r");
$i = 0;
while(!feof($file))
{
$line = fgets($file, 1024);
if($line == "\n" || $line[0] == "#" || $line == "") continue; // ignore comment and empty lines
$languages[$i] = chop($line);
$i++;
}
fclose($file);
// generate language list
echo ("");
for ($i = 0; $i < sizeof($languages); $i++) {
$entry = explode(":", $languages[$i]);
if ($conf->get_defaultLanguage() != $languages[$i]) echo("" . $entry[2] . " \n");
else echo("" . $entry[2] . " \n");
}
echo (" \n");
$tabindex++;
}
else
{
echo _("Unable to load available languages. Setting English as default language. For further instructions please contact the Admin of this site.");
}
echo (" \n");
echo "";
printHelpLink(getHelp('', '209'), '209');
echo " \n";
echo ("
\n");
echo (" \n");
echo (" \n");
// lamdaemon settings
echo (" " . _("Lamdaemon settings") . " \n");
echo ("\n");
echo ("".
_("Server list") . ": ".
" get_scriptServers(false) . "\"> \n");
$tabindex++;
echo "";
printHelpLink(getHelp('', '218'), '218');
echo " \n";
echo ("".
_("Path to external script") . ": ".
" get_scriptPath() . "\"> \n");
$tabindex++;
echo "";
printHelpLink(getHelp('', '210'), '210');
echo " \n";
echo "". _("Rights for the home directory") . ": \n";
$owr = "";
$oww = "";
$owe = "";
$grr = "";
$grw = "";
$gre = "";
$otr = "";
$otw = "";
$ote = "";
$chmod = $conf->get_scriptRights();
if (checkChmod("read","owner", $chmod)) $owr = 'checked';
if (checkChmod("write","owner", $chmod)) $oww = 'checked';
if (checkChmod("execute","owner", $chmod)) $owe = 'checked';
if (checkChmod("read","group", $chmod)) $grr = 'checked';
if (checkChmod("write","group", $chmod)) $grw = 'checked';
if (checkChmod("execute","group", $chmod)) $gre = 'checked';
if (checkChmod("read","other", $chmod)) $otr = 'checked';
if (checkChmod("write","other", $chmod)) $otw = 'checked';
if (checkChmod("execute","other", $chmod)) $ote = 'checked';
echo "\n";
echo "";
$tabindex++;
echo " ";
printHelpLink(getHelp('', '219'), '219');
echo " \n";
echo ("
\n");
echo (" \n");
echo (" \n");
// security setings
echo (" " . _("Security settings") . " \n");
echo ("\n");
// login method
echo ("".
_("Login method") . ": ".
"\n");
if ($conf->getLoginMethod() == LAMConfig::LOGIN_LIST) {
echo("" . _('Fixed list') . " \n");
}
else {
echo("" . _('Fixed list') . " \n");
}
if ($conf->getLoginMethod() == LAMConfig::LOGIN_SEARCH) {
echo("" . _('LDAP search') . " \n");
}
else {
echo("" . _('LDAP search') . " \n");
}
echo (" \n");
$tabindex++;
echo "";
printHelpLink(getHelp('', '220'), '220');
echo " \n";
// admin list
$adminText = implode("\n", explode(";", $conf->get_Adminstring()));
echo "\n";
echo "".
_("List of valid users") . " *: ".
" \n";
echo "";
printHelpLink(getHelp('', '207'), '207');
echo " \n";
$tabindex++;
// login search suffix
echo "\n";
echo "".
_("LDAP suffix") . " *: ".
" getLoginSearchSuffix() . "\" size=50> \n";
echo "";
printHelpLink(getHelp('', '221'), '221');
echo " \n";
$tabindex++;
// login search filter
echo "\n";
echo "".
_("LDAP filter") . " *: ".
" getLoginSearchFilter() . "\" size=50> \n";
echo "";
printHelpLink(getHelp('', '221'), '221');
echo " \n";
$tabindex++;
echo (" \n");
// new password
echo ("".
_("New password") . ": ".
" \n");
$tabindex++;
echo "";
printHelpLink(getHelp('', '212'), '212');
echo " \n";
// reenter password
echo ("".
_("Reenter password") . ": ".
" \n");
$tabindex++;
echo ("
\n");
echo (" \n");
echo ("* = ". _("required") . "
");
echo ("
\n");
echo '