hide cache setting

This commit is contained in:
Roland Gruber 2010-11-20 19:23:29 +00:00
parent 2efbc6d370
commit f54095f82e
1 changed files with 4 additions and 4 deletions

View File

@ -278,7 +278,7 @@ $tabindex++;
echo ("<tr><td colspan=3>&nbsp;</td></tr>"); echo ("<tr><td colspan=3>&nbsp;</td></tr>");
// LDAP cache timeout // LDAP cache timeout
echo ("<tr><td align=\"right\">". /*echo ("<tr><td align=\"right\">".
_("Cache timeout") . " </td>". _("Cache timeout") . " </td>".
"<td><select tabindex=\"$tabindex\" name=\"cachetimeout\">\n<option selected>".$conf->get_cacheTimeout()."</option>\n"); "<td><select tabindex=\"$tabindex\" name=\"cachetimeout\">\n<option selected>".$conf->get_cacheTimeout()."</option>\n");
if ($conf->get_cacheTimeout() != 0) echo("<option>0</option>\n"); if ($conf->get_cacheTimeout() != 0) echo("<option>0</option>\n");
@ -291,7 +291,7 @@ echo ("</select></td>\n");
$tabindex++; $tabindex++;
echo "<td>"; echo "<td>";
printHelpLink(getHelp('', '214'), '214'); printHelpLink(getHelp('', '214'), '214');
echo "</td></tr>\n"; echo "</td></tr>\n";*/
// LDAP search limit // LDAP search limit
$searchLimitOptions = array( $searchLimitOptions = array(
@ -582,9 +582,9 @@ function checkInput() {
$errors[] = array("ERROR", _("Server address is invalid!")); $errors[] = array("ERROR", _("Server address is invalid!"));
} }
$conf->setUseTLS($_POST['useTLS']); $conf->setUseTLS($_POST['useTLS']);
if (!$conf->set_cacheTimeout($_POST['cachetimeout'])) { /* if (!$conf->set_cacheTimeout($_POST['cachetimeout'])) {
$errors[] = array("ERROR", _("Cache timeout is invalid!")); $errors[] = array("ERROR", _("Cache timeout is invalid!"));
} }*/
$conf->set_searchLimit($_POST['searchLimit']); $conf->set_searchLimit($_POST['searchLimit']);
if (isLAMProVersion()) { if (isLAMProVersion()) {
$conf->setAccessLevel($_POST['accessLevel']); $conf->setAccessLevel($_POST['accessLevel']);