diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php
index b47beedb..32dd3776 100644
--- a/lam/templates/config/confmain.php
+++ b/lam/templates/config/confmain.php
@@ -85,7 +85,9 @@ if (isset($_POST['cancelSettings'])) {
$errorsToDisplay = array();
// check if button was pressed and if we have to save the settings or go to another tab
-if (isset($_POST['saveSettings']) || isset($_POST['editmodules']) || isset($_POST['edittypes']) || isset($_POST['generalSettingsButton'])) {
+if (isset($_POST['saveSettings']) || isset($_POST['editmodules'])
+ || isset($_POST['edittypes']) || isset($_POST['generalSettingsButton'])
+ || isset($_POST['moduleSettings'])) {
$errorsToDisplay = checkInput();
if (sizeof($errorsToDisplay) == 0) {
// go to final page
@@ -103,6 +105,11 @@ if (isset($_POST['saveSettings']) || isset($_POST['editmodules']) || isset($_POS
metaRefresh("conftypes.php");
exit;
}
+ // go to module settings page
+ elseif (isset($_POST['moduleSettings'])) {
+ metaRefresh("moduleSettings.php");
+ exit;
+ }
}
}
@@ -173,6 +180,18 @@ echo "
\n";
echo ">\n";
echo "
\n";
echo '';
+ // module settings
+ echo "\n";
+ echo "\n";
+ echo ' | ';
+ echo " | ";
+ // spacer
echo " | ";
// save button
echo "\n";
@@ -300,43 +319,6 @@ echo ("");
echo (" ");
-
-// module settings
-$types = $conf->get_ActiveTypes();
-
-// get list of scopes of modules
-$scopes = array();
-for ($m = 0; $m < sizeof($types); $m++) {
- $mods = $conf->get_AccountModules($types[$m]);
- for ($i = 0; $i < sizeof($mods); $i++) $scopes[$mods[$i]][] = $types[$m];
-}
-
-// get module options
-$options = getConfigOptions($scopes);
-// get current setting
-$old_options = $conf->get_moduleSettings();
-
-
-// display module boxes
-$modules = array_keys($options);
-$_SESSION['conf_types'] = array();
-for ($i = 0; $i < sizeof($modules); $i++) {
- if (sizeof($options[$modules[$i]]) < 1) continue;
- echo "\n";
- echo " ";
-}
-
-
echo (" | ';
+ // module settings
+ echo "\n";
+ echo "\n";
+ echo ' | ';
+ echo " | ";
+ // spacer
echo " | ";
// save button
echo "\n";
diff --git a/lam/templates/config/conftypes.php b/lam/templates/config/conftypes.php
index 74686e8f..dcff38bc 100644
--- a/lam/templates/config/conftypes.php
+++ b/lam/templates/config/conftypes.php
@@ -62,7 +62,9 @@ $conf = &$_SESSION['conf_config'];
$errorsToDisplay = checkInput();
// check if button was pressed and if we have to save the settings or go to another tab
-if (isset($_POST['saveSettings']) || isset($_POST['editmodules']) || isset($_POST['edittypes']) || isset($_POST['generalSettingsButton'])) {
+if (isset($_POST['saveSettings']) || isset($_POST['editmodules'])
+ || isset($_POST['edittypes']) || isset($_POST['generalSettingsButton'])
+ || isset($_POST['moduleSettings'])) {
if (sizeof($errorsToDisplay) == 0) {
// check if all types have modules
$activeTypes = $conf->get_ActiveTypes();
@@ -84,11 +86,16 @@ if (isset($_POST['saveSettings']) || isset($_POST['editmodules']) || isset($_POS
metaRefresh("confmodules.php");
exit;
}
- // go to types page
+ // go to general page
elseif (isset($_POST['generalSettingsButton'])) {
metaRefresh("confmain.php");
exit;
}
+ // go to module settings page
+ elseif (isset($_POST['moduleSettings'])) {
+ metaRefresh("moduleSettings.php");
+ exit;
+ }
}
}
@@ -154,6 +161,18 @@ echo " | \n";
echo ">\n";
echo "
\n";
echo '';
+ // module settings
+ echo "\n";
+ echo "\n";
+ echo ' | ';
+ echo " | ";
+ // spacer
echo " | ";
// save button
echo "\n";
diff --git a/lam/templates/config/moduleSettings.php b/lam/templates/config/moduleSettings.php
new file mode 100644
index 00000000..69620119
--- /dev/null
+++ b/lam/templates/config/moduleSettings.php
@@ -0,0 +1,288 @@
+" . _("LDAP Account Manager Configuration") . "\n";
+echo "\n";
+echo "\n";
+for ($i = 0; $i < sizeof($allTypes); $i++){
+ echo "\n";
+}
+echo "\n";
+echo "\n";
+
+echo (" ".
+ " \n \n");
+
+// print error messages
+for ($i = 0; $i < sizeof($errorsToDisplay); $i++) call_user_func_array('StatusMessage', $errorsToDisplay[$i]);
+
+echo ("\n";
+echo "\n";
+echo " |