moved descriptions to help

This commit is contained in:
Roland Gruber 2003-05-14 21:01:17 +00:00
parent 027ba64047
commit 4a1f87ce1e
2 changed files with 68 additions and 51 deletions

View File

@ -31,8 +31,46 @@ $helpArray = array (
// configuration login // configuration login
"200" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Login"), "200" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Login"),
"Text" => _("Please enter the configuration password. This is NOT your LDAP password.". "Text" => _("Please enter the configuration password. This is NOT your LDAP password.".
" It is stored in lam.conf. If this is the first time you log in, enter \"lam\"."), " It is stored in lam.conf. If this is the first time you log in, enter \"lam\".")),
"SeeAlso" => "") "201" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Server Address"),
"Text" => _("This is the Server Address of your LDAP server. Use ldap:// for standard LDAP connections".
" and ldaps:// for encrypted (require server certificates) connections. The port value is optional.<br><br>".
"<b>Examples:</b><br><br> ldap://localhost:389 connects to localhost using a standard LDAP connection on port 389<br>".
"ldaps://141.40.146.133 connects to 141.40.146.133 using an encrypted LDAP connection.<br><br>".
"<br><b>Note:</b><br><br>When using ldaps:// be sure to use exactly the same IP/domain name as in your certificate!")),
"202" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - User/Group/Host suffix"),
"Text" => _("This is the suffix of the LDAP tree from where to search for user/group/host entries.".
" Only entries in these subtrees will be displayed in the user/group/host list. When creating a".
" new accont this will be the DN where it is saved.<br><br><b>Examples:</b><br><br>ou=People,dc=yourcompany,dc=com".
" will read and store all accounts in this subtree.")),
"203" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - UID Number"),
"Text" => _("These are the minimum and maximum numbers to use for user IDs when creating new user accounts.".
"The range has to be different from that of machines. New user accounts will always get the highest number in use plus one.")),
"204" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - GID Number"),
"Text" => _("These are the minimum and maximum numbers to use for group IDs when creating new group accounts.".
"New group accounts will always get the highest number in use plus one.")),
"205" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Machine Number"),
"Text" => _("These are the minimum and maximum numbers to use for machine IDs when creating new accounts for Samba hosts.".
"The range has to be different from that of users. New host accounts will always get the highest number in use plus one.")),
"206" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - List Attributes"),
"Text" => _("This is the list of attributes to show in the user/group/host list.".
" The entries can either be predefined values, \"#value\", or individual ones, \"value:description\".".
"Several entries are seperated by semicolons.<br><br>".
"<b>Example: </b>#homeDirectory;#uid;#cn;#uidNumber;#gidNumber;description:UserDescription<br><br> ".
"<br><u><b>Predefined values:</b></u><br>".
"<br><b>Users: </b>#uid, #uidNumber, #gidNumber, #cn, #host, #givenName, #sn, #homeDirectory, #loginShell, #mail, #gecos".
"<br><b>Groups: </b>#cn, #gidNumber, #memberUID, #member, #description".
"<br><b>Groups: </b>#uid, #cn, #rid, #description")),
"207" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Valid Users"),
"Text" => _("This is a list of valid DN entries of all users that are allowed to login to LDAP Account Manager.".
"The user names have to be separated by semicolons.<br><br>".
"<b>Example: </b>cn=admin,dc=yourdomain,dc=org;cn=manager,dc=yourdomain,dc=org")),
"208" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Maximum List Entries"),
"Text" => _("This is the number of rows to show in the user/group/host list. If more entries are found the list".
" will be split to several pages.")),
"209" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Default Language"),
"Text" => _("Defines the language of the login window and is sets this language the default language.".
" Users can change the language at login."))
/* This is a sample help entry. Just copy this line an modify the vakues between the [] brackets. /* This is a sample help entry. Just copy this line an modify the vakues between the [] brackets.
Help text is located in the array: Help text is located in the array:
"[Helpnumber]" => array ("ext" => "FALSE", "Headline" => _("[Headline]"), "Text" => _("[Text]"), "SeeAlso" => "[SeeAlso link]"), "[Helpnumber]" => array ("ext" => "FALSE", "Headline" => _("[Headline]"), "Text" => _("[Text]"), "SeeAlso" => "[SeeAlso link]"),

View File

@ -106,13 +106,11 @@ echo ("<form action=\"confmain.php\" method=\"post\">\n");
echo ("<fieldset><legend><b>" . _("Server settings") . "</b></legend>"); echo ("<fieldset><legend><b>" . _("Server settings") . "</b></legend>");
echo ("<table align=\"center\" border=\"0\">"); echo ("<table align=\"center\" border=\"0\">");
// serverURL // serverURL
echo ("<tr><td width=\"20%\"><p align=\"right\"><b>" . _("Server Address") . ": </b></p></td>". echo ("<tr><td><p align=\"right\"><b>" . _("Server Address") . ": </b></p></td>".
"<td width=\"30%\"><p align=\"left\">". "<td><p align=\"left\">".
"<input size=50 type=\"text\" name=\"serverurl\" value=\"" . $conf->get_ServerURL() . "\">". "<input size=50 type=\"text\" name=\"serverurl\" value=\"" . $conf->get_ServerURL() . "\">".
"</td>\n"); "</td>\n");
echo ("<td width=\"50%\"><p align=\"left\">". echo ("<td><a href=\"../help.php?HelpNumber=201\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
_("Server Address of LDAP server (e.g. ldap://localhost:389 or ldaps://localhost:636)").
"</p></td></tr>\n");
// new line // new line
echo ("<tr><td>&nbsp</td></tr>"); echo ("<tr><td>&nbsp</td></tr>");
@ -121,23 +119,17 @@ echo ("<tr><td>&nbsp</td></tr>");
echo ("<tr><td><p align=\"right\"><b>". echo ("<tr><td><p align=\"right\"><b>".
_("UserSuffix") . ": </b></p></td>". _("UserSuffix") . ": </b></p></td>".
"<td><input size=50 type=\"text\" name=\"suffusers\" value=\"" . $conf->get_UserSuffix() . "\"></td>\n"); "<td><input size=50 type=\"text\" name=\"suffusers\" value=\"" . $conf->get_UserSuffix() . "\"></td>\n");
echo ("<td><p align=\"left\">". echo ("<td><a href=\"../help.php?HelpNumber=202\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
_("This is the suffix from where to search for users.<br>(e.g. ou=People,dc=yourcompany,dc=com)").
"</p></td></tr>\n");
// group suffix // group suffix
echo ("<tr><td><p align=\"right\"><b>". echo ("<tr><td><p align=\"right\"><b>".
_("GroupSuffix") . ": </b></p></td>". _("GroupSuffix") . ": </b></p></td>".
"<td><input size=50 type=\"text\" name=\"suffgroups\" value=\"" . $conf->get_GroupSuffix() . "\"></td>\n"); "<td><input size=50 type=\"text\" name=\"suffgroups\" value=\"" . $conf->get_GroupSuffix() . "\"></td>\n");
echo ("<td><p align=\"left\">". echo ("<td><a href=\"../help.php?HelpNumber=202\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
_("This is the suffix from where to search for groups.<br>(e.g. ou=group,dc=yourcompany,dc=com)").
"</p></td></tr>\n");
// host suffix // host suffix
echo ("<tr><td><p align=\"right\"><b>". echo ("<tr><td><p align=\"right\"><b>".
_("HostSuffix") . ": </b></p></td>". _("HostSuffix") . ": </b></p></td>".
"<td><input size=50 type=\"text\" name=\"suffhosts\" value=\"" . $conf->get_HostSuffix() . "\"></td>\n"); "<td><input size=50 type=\"text\" name=\"suffhosts\" value=\"" . $conf->get_HostSuffix() . "\"></td>\n");
echo ("<td><p align=\"left\">". echo ("<td><a href=\"../help.php?HelpNumber=202\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
_("This is the suffix from where to search for Samba hosts.<br>(e.g. ou=machines,dc=yourcompany,dc=com)").
"</p></td></tr>\n");
echo ("</table>"); echo ("</table>");
echo ("</fieldset>"); echo ("</fieldset>");
@ -148,36 +140,31 @@ echo ("<table align=\"center\" border=\"0\">");
// minUID // minUID
echo ("<tr><td align=\"right\"><b>". echo ("<tr><td align=\"right\"><b>".
_("Minimum UID number") . ": </b></td>". _("Minimum UID number") . ": </b>".
"<td align=\"left\"><input size=6 type=\"text\" name=\"minUID\" value=\"" . $conf->get_minUID() . "\">\n"); "<input size=6 type=\"text\" name=\"minUID\" value=\"" . $conf->get_minUID() . "\"></td>\n");
// maxUID // maxUID
echo ("&nbsp <b>" . _("Maximum UID number") . ": </b>". echo ("<td align=\"right\"><b>" . _("Maximum UID number") . ": </b>".
"<input size=6 type=\"text\" name=\"maxUID\" value=\"" . $conf->get_maxUID() . "\"></td>\n"); "<input size=6 type=\"text\" name=\"maxUID\" value=\"" . $conf->get_maxUID() . "\"></td>\n");
// UID text // UID text
echo ("<td><p align=\"left\">". echo ("<td><a href=\"../help.php?HelpNumber=203\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
_("These are the minimum and maximum numbers to use for user IDs").
"</p></td></tr>\n");
// minGID // minGID
echo ("<tr><td align=\"right\"><b>". echo ("<tr><td align=\"right\"><b>".
_("Minimum GID number") . ": </b></td>". _("Minimum GID number") . ": </b>".
"<td align=\"left\"><input size=6 type=\"text\" name=\"minGID\" value=\"" . $conf->get_minGID() . "\">\n"); "<input size=6 type=\"text\" name=\"minGID\" value=\"" . $conf->get_minGID() . "\"></td>\n");
// maxGID // maxGID
echo ("&nbsp <b>" . _("Maximum GID number").": </b>". echo ("<td align=\"right\"><b>" . _("Maximum GID number").": </b>".
"<input size=6 type=\"text\" name=\"maxGID\" value=\"" . $conf->get_maxGID() . "\"></td>\n"); "<input size=6 type=\"text\" name=\"maxGID\" value=\"" . $conf->get_maxGID() . "\"></td>\n");
// GID text // GID text
echo ("<td><p align=\"left\">". echo ("<td><a href=\"../help.php?HelpNumber=204\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
_("These are the minimum and maximum numbers to use for group IDs").
"</p></td></tr>\n");
// minMach // minMach
echo ("<tr><td align=\"right\"><b>". echo ("<tr><td align=\"right\"><b>".
_("Minimum Machine number") . ": </b></td>". _("Minimum Machine number") . ": </b>".
"<td align=\"left\"><input size=6 type=\"text\" name=\"minMach\" value=\"" . $conf->get_minMachine() . "\">\n"); "<input size=6 type=\"text\" name=\"minMach\" value=\"" . $conf->get_minMachine() . "\"></td>\n");
// maxMach // maxMach
echo ("&nbsp <b>" . _("Maximum Machine number") . ": </b>". echo ("<td align=\"right\"><b>" . _("Maximum Machine number") . ": </b>".
"<input size=6 type=\"text\" name=\"maxMach\" value=\"" . $conf->get_maxMachine() . "\"></td>\n"); "<input size=6 type=\"text\" name=\"maxMach\" value=\"" . $conf->get_maxMachine() . "\"></td>\n");
// Machine text // Machine text
echo ("<td><p align=\"left\">". echo ("<td><a href=\"../help.php?HelpNumber=205\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
_("These are the minimum and maximum numbers to use for Samba hosts. <br> Do not use the same range as for user IDs.") . "</p></td></tr>\n");
echo ("</table>"); echo ("</table>");
echo ("</fieldset>"); echo ("</fieldset>");
@ -190,19 +177,17 @@ echo ("<table align=\"center\" border=\"0\">");
echo ("<tr><td><p align=\"right\"><b>". echo ("<tr><td><p align=\"right\"><b>".
_("Attributes in User List:") . "</b></p></td>". _("Attributes in User List:") . "</b></p></td>".
"<td><input size=50 type=\"text\" name=\"usrlstattr\" value=\"" . $conf->get_userlistAttributes() . "\"></td>"); "<td><input size=50 type=\"text\" name=\"usrlstattr\" value=\"" . $conf->get_userlistAttributes() . "\"></td>");
// list attributes description echo ("<td><a href=\"../help.php?HelpNumber=206\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>");
echo ("<td rowspan=3><p>".
_("This is the list of attributes to show in the lists. The entries can either be predefined values".
" (e.g. '#cn' or '#gidNumber') or individual ones (e.g. 'cn:Group Name'). The entries are seperated by semicolons.").
"</p></td></tr>");
// user list attributes // user list attributes
echo ("<tr><td><p align=\"right\"><b>". echo ("<tr><td><p align=\"right\"><b>".
_("Attributes in Group List:") . "</b></p></td>". _("Attributes in Group List:") . "</b></p></td>".
"<td><input size=50 type=\"text\" name=\"grplstattr\" value=\"" . $conf->get_grouplistAttributes() . "\"></td></tr>"); "<td><input size=50 type=\"text\" name=\"grplstattr\" value=\"" . $conf->get_grouplistAttributes() . "\"></td>");
echo ("<td><a href=\"../help.php?HelpNumber=206\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>");
// user list attributes // user list attributes
echo ("<tr><td><p align=\"right\"><b>". echo ("<tr><td><p align=\"right\"><b>".
_("Attributes in Host List:") . "</b></p></td>". _("Attributes in Host List:") . "</b></p></td>".
"<td><input size=50 type=\"text\" name=\"hstlstattr\" value=\"" . $conf->get_hostlistAttributes() . "\"></td></tr>"); "<td><input size=50 type=\"text\" name=\"hstlstattr\" value=\"" . $conf->get_hostlistAttributes() . "\"></td>");
echo ("<td><a href=\"../help.php?HelpNumber=206\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>");
// two new lines // two new lines
echo ("<tr><td>&nbsp</td></tr>"); echo ("<tr><td>&nbsp</td></tr>");
echo ("<tr><td>&nbsp</td></tr>"); echo ("<tr><td>&nbsp</td></tr>");
@ -210,14 +195,10 @@ echo ("<tr><td>&nbsp</td></tr>");
echo ("<tr><td><p align=\"right\"><b>". echo ("<tr><td><p align=\"right\"><b>".
_("List of valid users") . ": </b></p></td>". _("List of valid users") . ": </b></p></td>".
"<td><input size=50 type=\"text\" name=\"admins\" value=\"" . $conf->get_Adminstring() . "\"></td>\n"); "<td><input size=50 type=\"text\" name=\"admins\" value=\"" . $conf->get_Adminstring() . "\"></td>\n");
// admin list description echo ("<td><a href=\"../help.php?HelpNumber=207\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><p align=\"left\">".
_("Usernames must be seperated by semicolons")."<br>".
_("(e.g. cn=admin,dc=yourcompany,dc=com;uid=root,ou=people,dc=yourcompany,dc=com)").
"</p></td></tr>\n");
// maximum list entries // maximum list entries
echo ("<tr><td><p align=\"right\"><b>". echo ("<tr><td><p align=\"right\"><b>".
_("Maximum displayed entries") . ": </b></p></td>". _("Maximum list entries") . ": </b></p></td>".
"<td><select name=\"maxlistentries\"><option selected>".$conf->get_MaxListEntries()."</option>"); "<td><select name=\"maxlistentries\"><option selected>".$conf->get_MaxListEntries()."</option>");
if ($conf->get_MaxListEntries() != 10) echo("<option>10</option>"); if ($conf->get_MaxListEntries() != 10) echo("<option>10</option>");
if ($conf->get_MaxListEntries() != 20) echo("<option>20</option>"); if ($conf->get_MaxListEntries() != 20) echo("<option>20</option>");
@ -226,10 +207,7 @@ if ($conf->get_MaxListEntries() != 50) echo("<option>50</option>");
if ($conf->get_MaxListEntries() != 75) echo("<option>75</option>"); if ($conf->get_MaxListEntries() != 75) echo("<option>75</option>");
if ($conf->get_MaxListEntries() != 100) echo("<option>100</option>"); if ($conf->get_MaxListEntries() != 100) echo("<option>100</option>");
echo ("</select></td>\n"); echo ("</select></td>\n");
// maximum list entries description echo ("<td><a href=\"../help.php?HelpNumber=208\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("<td><p align=\"left\">".
_("This is the maximum count of entries which are displayed on one page of the user/host/group lists.").
"</p></td></tr>\n");
echo ("</table>\n"); echo ("</table>\n");
echo ("</fieldset>\n"); echo ("</fieldset>\n");
@ -268,7 +246,8 @@ else
{ {
echo _("Unable to load available languages. For further instructions please contact the Admin of this site.\n"); echo _("Unable to load available languages. For further instructions please contact the Admin of this site.\n");
} }
echo ("</td></tr>\n"); echo ("</td>\n");
echo ("<td><a href=\"../help.php?HelpNumber=209\" target=\"lamhelp\">" . _("Help") . "</a></td></tr>\n");
echo ("</table>\n"); echo ("</table>\n");
echo ("</fieldset>\n"); echo ("</fieldset>\n");