diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php
index ca845a6a..6fb33df3 100644
--- a/lam/templates/config/confmain.php
+++ b/lam/templates/config/confmain.php
@@ -24,6 +24,8 @@ $Id$
*/
+include_once ("../../lib/config.inc");
+
// start session
session_save_path("../../sess");
session_start();
@@ -211,15 +213,14 @@ echo ("
".
// maximum list entries
echo ("
".
_("Maximum displayed entries") . ":
".
- "".
- "".$conf->get_MaxListEntries()." ".
- "10 ".
- "20 ".
- "30 ".
- "50 ".
- "75 ".
- "100 ".
- " \n");
+ "".$conf->get_MaxListEntries()." ");
+if ($conf->get_MaxListEntries() != 10) echo("10 ");
+if ($conf->get_MaxListEntries() != 20) echo("20 ");
+if ($conf->get_MaxListEntries() != 30) echo("30 ");
+if ($conf->get_MaxListEntries() != 50) echo("50 ");
+if ($conf->get_MaxListEntries() != 75) echo("75 ");
+if ($conf->get_MaxListEntries() != 100) echo("100 ");
+echo (" \n");
// maximum list entries description
echo ("".
_("This is the maximum count of entries which are displayed on one page of the user/host/group lists.").
@@ -252,7 +253,8 @@ if(is_file($languagefile))
echo ("");
for ($i = 0; $i < sizeof($languages); $i++) {
$entry = explode(":", $languages[$i]);
- echo ("" . $entry[2] . " ");
+ if ($_SESSION['config']->get_defaultLanguage() != $languages[$i]) echo("" . $entry[2] . " ");
+ else echo("" . $entry[2] . " ");
}
echo (" ");
}