| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta content="text/html; charset=ISO-8859-15" |
| 5 | http-equiv="content-type"> |
| 6 | <title>LAM - Configuration pages</title> |
| 7 | <link rel="stylesheet" type="text/css" href="style/layout.css"> |
| 8 | <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"> |
| 9 | </head> |
| 10 | <body> |
| 11 | <div style="text-align: center;"> |
| 12 | <h1>Configuration pages</h1> |
| 13 | </div> |
| 14 | <br> |
| 15 | <div style="text-align: center;"><img |
| 16 | style="width: 620px; height: 319px;" alt="configuration" |
| 17 | src="images/lam_config.png"><br> |
| 18 | <div style="text-align: left;"> |
| 19 | <h2>Configuration - Login (conflogin.php):</h2> |
| 20 | This is the start page of the configuration editor. The user can select |
| 21 | a profile for editing or go to the profile management page.<br> |
| 22 | Each account profile is protected with a password which is stored in |
| 23 | the profile.<br> |
| 24 | The list of possible profiles is returned by <span |
| 25 | style="font-style: italic; font-weight: bold;">getConfigProfiles()</span> |
| 26 | in config.inc, the default profile is returned by an object of class <span |
| 27 | style="font-weight: bold; font-style: italic;">CfgMain</span> from |
| 28 | config.inc.<br> |
| 29 | <br> |
| 30 | <br> |
| 31 | <h2>Configuration - Profile management (profmanage.php):</h2> |
| 32 | Here the user can add and modify configuration profiles or change the |
| 33 | configuration master password. <br> |
| 34 | The configuration master password prevents unauthorised users from |
| 35 | changing the profiles. The password is saved in config/config.cfg and |
| 36 | managed via the <span style="font-style: italic; font-weight: bold;">CfgMain</span> |
| 37 | class.<br> |
| 38 | <br> |
| 39 | <br> |
| 40 | <h2>Configuration - Main page (confmain.php):</h2> |
| 41 | This page presents all configuration settings for editing.<br> |
| 42 | Some of the settings are module independent (e.g. server settings, |
| 43 | language, ...) and displayed always.<br> |
| 44 | The others are set up by the account modules. Only settings of |
| 45 | currently selected modules are displayed.<br> |
| 46 | Users may also change the profile password on this page.<br> |
| 47 | <br> |
| 48 | <br> |
| 49 | <h2>Configuration - Module selection (confmodules.php):<br> |
| 50 | </h2> |
| 51 | On this page the user can select which account modules LAM should use.<br> |
| 52 | The list of possible modules is returned by <span |
| 53 | style="font-style: italic; font-weight: bold;">getAvailableModules()</span> |
| 54 | in modules.inc and checked for dependencies/conflicts with <span |
| 55 | style="font-weight: bold; font-style: italic;">check_module_depends()</span> |
| 56 | and <span style="font-weight: bold; font-style: italic;">check_module_conflicts()</span>.<br> |
| 57 | <br> |
| 58 | Each account type needs exactly one <span style="font-style: italic;">base |
| 59 | module</span> |
| 60 | which is the base of a account by providing a structural object class.<br> |
| 61 | <br> |
| 62 | <br> |
| 63 | <h2>Configuration - Save settings (confsave.php):<br> |
| 64 | </h2> |
| 65 | This script checks the input and displays possible error messages or an |
| 66 | overview of the saved settings.<br> |
| 67 | The static settings are set and checked with an object of class <span |
| 68 | style="font-style: italic; font-weight: bold;">Config</span> from |
| 69 | config.inc.<br> |
| 70 | The account modules manage the input validation for their fields and |
| 71 | are also able to return error messages. This is done with <span |
| 72 | style="font-weight: bold; font-style: italic;">checkConfigOptions()</span> |
| 73 | from modules.inc.<br> |
| 74 | <br> |
| 75 | </div> |
| 76 | </div> |
| 77 | </body> |
| 78 | </html> |