Debian Codegraph @

docs/devel/profile_editor.htm

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="en"><head>
3
4
5 <meta content="text/html; charset=ISO-8859-15" http-equiv="content-type"><title>Profile editor</title>
6
7 <link rel="stylesheet" type="text/css" href="style/layout.css">
8 <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body>
9 <h1 style="text-align: center;">Profile editor<br>
10 </h1>
11 <div style="text-align: center;"><img alt="" src="images/lam_profedit.png" style="width: 354px; height: 236px;"><br>
12 </div>
13 <div style="text-align: center;"><br>
14 <div style="text-align: left;">The <span style="font-style: italic;">profile
15 editor</span> allows the user to set default values for new accounts.<br>
16 These defaults are saved as files in <span style="font-weight: bold;">config/profiles</span>.<br>
17 <br>
18 <h2>Profilemain.php<br>
19 </h2>
20 This is the start page of the <span style="font-style: italic;">profile
21 editor</span>. The user can select to add/modify/remove selected
22 account profiles.<br>
23 <br>
24 The list of existing account profiles is returned by <span style="font-weight: bold;">getAccountProfiles()</span> in <span style="font-style: italic;">modules.inc</span>. It includes all
25 profile names without file extensions.<br>
26 <br>
27 <h2>Profilepage.php<br>
28 </h2>
29 This script is used to display the account profile to the user. <br>
30 <br>
31 The profile options include the LDAP OU suffix and options provided by
32 the account modules.<br>
33 <br>
34 The values for the OU selection are read with <span style="font-weight: bold;">type->getSuffixList()</span>.<br>
35 <br>
36 The <span style="font-style: italic;">account modules</span> provide
37 all other profile options. The profile editor displays a separate
38 fieldset for each module containing its options.<br>
39 The function <span style="font-weight: bold;">print_option()</span>
40 manages the display of the different option types (checkbox, select,
41 ...). The type of each option is saved in <span style="font-weight: bold;">$_SESSION['profile_types']</span>.<br>
42 See the <a href="phpdoc/modules/baseModule.html">modules specification</a>
43 for a complete list of supported types.<br>
44 <br>
45 The profiles have unique names under which they are saved. If a profile
46 with the same name already exists it will be overwritten.<br>
47 <br>
48 When the user selects to save the profile then
49 profilepage.php will check the input for correctness.<br>
50 First the values are converted to the correct type (checkbox -&gt;
51 Boolean) by checking <span style="font-weight: bold;">$_SESSION['profile_types']</span>.
52 Then LAM will replace all "\'" with&nbsp; "'" if <span style="font-style: italic;">magic_quotes_gpc</span> is on. Now the
53 input data is checked for correctness by calling <span style="font-weight: bold;">checkProfileOptions()</span>.<br>
54 The <span style="font-style: italic;">account modules</span> return a
55 list of
56 error messages if one or more options are incorrect. If there are
57 errors they will be displayed, otherwise the profile is
58 saved by calling <span style="font-weight: bold;">saveAccountProfile()</span>.<br>
59 <br>
60 <h2>Profiledelete.php</h2>
61 When the user selected to delete a profile in <span style="font-style: italic;">profilemain.php</span> he is redirected to
62 this page.<br>
63 <br>
64 LAM will ask once again if the user is sure to delete the profile. If
65 this is the case the profile will be deleted with <span style="font-weight: bold;">delAccountProfile()</span> from <span style="font-style: italic;">profiles.inc</span>.<br>
66 <br>
67 <br>
68 <br>
69 <br>
70 </div>
71 </div>
72 </body></html>