*/ // If the user update the modules config. if($update){ // Get param from the modules (if exists) $dn = "ou=Modules, $basedn"; $filter = "(objectClass=moduleentry)"; $sr = ldap_search($ds,$dn,$filter); $mainmodules = ldap_get_entries($ds, $sr); // Get current config from this user. $dn = "ou=Modules, uid=$username, ou=People, domain=$domain, ou=Domains, $basedn"; $filter = "(objectClass=moduleentry)"; $sr = ldap_search($ds,$dn,$filter); $modules = ldap_get_entries($ds, $sr); for ($i=0; $i<$mainmodules["count"]; $i++) { $tmpvar = $modules[$i]["module"][0]; if($info[$tmpvar]){ unset ($set); $changedn = "module=$tmpvar," . $dn; $set["force"] = $info[$tmpvar]; ldap_modify ($ds, $changedn, $set); $antparam=2; for ($j=1; $j<$antparam; $j++) { for($k=0;$k<$mainmodules["count"]; $k++){ if ($modules[$i]["module"][0] == $mainmodules[$k]["module"][0]){ if($mainmodules[$k]["combo$j"][0]) { $antparam++; $tmpvar = $modules[$i]["module"][0]; $changedn = "module=$tmpvar, ou=Modules, uid=$username, ou=People, domain=$domain, ou=Domains, $basedn"; $set["param$j"] = $config[$j][$tmpvar]; // This ver. of Limacute only support 1(one) textparm. (Last min feature :) if($textinput[1][$tmpvar]){ $set["param$j"] = $set["param$j"]. "," . $textinput[1][$tmpvar]; } ldap_modify ($ds, $changedn, $set); } } } } } } $status="Config updated"; } // Get config from current user. $dn = "ou=Modules, uid=$username, ou=People, domain=$domain, ou=Domains, $basedn"; $filter = "(objectClass=moduleentry)"; $sr = ldap_search($ds,$dn,$filter); $modules = ldap_get_entries($ds, $sr); // For each module the user can access, // get all params from mainmodules. $filter = "(objectClass=moduleentry)"; for ($i=0; $i<$modules["count"]; $i++) { $tmpvar = $modules[$i]["module"][0]; $dn = "module=$tmpvar,ou=modules, $basedn"; $sr = ldap_search($ds,$dn,$filter); $params[$i] = ldap_get_entries($ds, $sr); $antparam=2; for ($j=1; $j<$antparam; $j++) { if($params[$i][0]["combo$j"]["count"]){ $antparam++; } } $antparam = $antparam-2; $params[$i][0]["ant"]=$antparam; } // Get description from modules. // TODO: Include this code in the code on line 59-74 $dn = "ou=Modules, $basedn"; $filter = "(objectClass=moduleentry)"; $sr = ldap_search($ds,$dn,$filter); $allmodules = ldap_get_entries($ds, $sr); $tmpcolor=$ycolor; // Normal html-output ?>
Module On/Off Info/Configuration User :
 
Force"; } else{ ?>
  Force"; } else{ ?> ]" value="" size="20">  
Force
Help
Select the modules you would like to use by setting them to on or off. Some of the modules have extra settings which let you customize the behaviour for the module. Modules with the 'Force' option set, are set by the postmaster on your domain and you can not alter theese settings. Contact postmaster@ if you have a good reason not to use that module.
Status: