no more external help links

documented get_help()
This commit is contained in:
Roland Gruber 2008-02-03 18:37:05 +00:00
parent 55b2a0729f
commit 7e5c281adf
5 changed files with 131 additions and 142 deletions

View File

@ -54,9 +54,9 @@ $helpArray = array (
// configuration wizard
// configuration login
// config profile management
"200" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Login"),
"200" => array ("Headline" => _("Configuration wizard") . " - " . _("Login"),
"Text" => _("Please enter the configuration password. This is NOT your LDAP password. It is stored in your .conf-file. If this is the first time you log in, enter \"lam\".")),
"201" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Server address"),
"201" => array ("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") .
@ -68,109 +68,109 @@ $helpArray = array (
_("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") . " - " . _("LDAP suffix"),
"202" => array ("Headline" => _("Configuration wizard") . " - " . _("LDAP suffix"),
"Text" => _("This is the suffix of the LDAP tree from where to search for LDAP entries. Only entries in this subtree will be displayed in the account list. When creating a new accont this will be the DN where it is saved.") .
"<br><br><b>".
_("Example").
":</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") . " - " . _("Tree suffix"),
"203" => array ("Headline" => _("Configuration wizard") . " - " . _("Tree suffix"),
"Text" => _("This is the suffix for the LDAP tree viewer.") .
"<br><br><b>".
_("Example").
":</b><br><br>".
_("dc=yourcompany,dc=com")),
"206" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("List attributes"),
"206" => array ("Headline" => _("Configuration wizard") . " - " . _("List attributes"),
"Text" => _("This is the list of attributes to show in the account list. The entries can either be predefined values, \"#attribute\", or individual ones, \"attribute:description\". Several entries are separated by semicolons.") .
"<br><br><br><big><b>" .
_("Example") . ": </b></big>#homeDirectory;#uid;#uidNumber;#gidNumber;mail:Mail address<br><br>" .
"<br><big><b>" . _("Predefined values") . ":</b></big><br><br><br>" . $entry206Example),
"207" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Valid users"),
"207" => array ("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. Please enter one DN per line.") .
"<br><br><b>" .
_("Example") .
": </b>cn=admin,dc=yourdomain,dc=org;cn=manager,dc=yourdomain,dc=org"),
"208" => array ("ext" => "FALSE", "Headline" => _("Maximum list entries"),
"208" => array ("Headline" => _("Maximum list entries"),
"Text" => _("This is the number of rows to show in the account list. If more entries are found the list will be split into several pages.")),
"209" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Default language"),
"209" => array ("Headline" => _("Configuration wizard") . " - " . _("Default language"),
"Text" => _("This defines the language of the login window and sets this language as the default language. Users can change the language at login.")),
"210" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Script path"),
"210" => array ("Headline" => _("Configuration wizard") . " - " . _("Script path"),
"Text" => _("This is the absolute path to an external script for setting quotas and creating home directories.")),
"212" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Change password"),
"212" => array ("Headline" => _("Configuration wizard") . " - " . _("Change password"),
"Text" => _("If you want to change the current preferences password, please enter it here.")),
"214" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Cache timeout"),
"214" => array ("Headline" => _("Configuration wizard") . " - " . _("Cache timeout"),
"Text" => _("This is the time in minutes which LAM caches its LDAP searches. Shorter times will stress LDAP more but decrease the possibility that changes are not identified.")),
"216" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Text for user PDF"),
"216" => array ("Headline" => _("Configuration wizard") . " - " . _("Text for user PDF"),
"Text" => _("This text will appear on top of every user PDF file.")),
"217" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Account types and modules"),
"217" => array ("Headline" => _("Configuration wizard") . " - " . _("Account types and modules"),
"Text" => _("Here you can select which plugins you want to use for account management.") . "<br><br>"
. _("Account types define which sorts of LDAP entries (e.g. users and groups) should be managed. The account modules define which properties (e.g. Unix and Samba) can be edited.")),
"218" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Script servers"),
"218" => array ("Headline" => _("Configuration wizard") . " - " . _("Script servers"),
"Text" => _("This is a list of the servers where the lamdaemon scripts are stored. LDAP Account Manager will make a SSH connection to the servers with the user name and password provided at login. Multiple servers are separated by semicolons. You can append a descriptive name after a colon.") . "<br><br>"
. _("Example") . ": <b>127.0.0.1:LOCAL;192.168.0.2:Servername;</b>"),
"219" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Rights for the home directory"),
"219" => array ("Headline" => _("Configuration wizard") . " - " . _("Rights for the home directory"),
"Text" => _("This defines the rights for the home directories which are created by lamdaemon.")),
"230" => array ("ext" => "FALSE", "Headline" => _("Profile management") . " - " . _("Add profile"),
"230" => array ("Headline" => _("Profile management") . " - " . _("Add profile"),
"Text" => _("Please enter the name of the new profile and the password to change its settings. Profile names may contain letters, numbers and -/_.")),
"231" => array ("ext" => "FALSE", "Headline" => _("Profile management") . " - " . _("Rename profile"),
"231" => array ("Headline" => _("Profile management") . " - " . _("Rename profile"),
"Text" => _("Please enter the new name of the profile. The name may contain letters, numbers and -/_.")),
"232" => array ("ext" => "FALSE", "Headline" => _("Profile management") . " - " . _("Delete profile"),
"232" => array ("Headline" => _("Profile management") . " - " . _("Delete profile"),
"Text" => _("This will delete the selected profile.")),
"233" => array ("ext" => "FALSE", "Headline" => _("Profile management") . " - " . _("Set profile password"),
"233" => array ("Headline" => _("Profile management") . " - " . _("Set profile password"),
"Text" => _("This changes the password of the selected profile.")),
"234" => array ("ext" => "FALSE", "Headline" => _("Profile management") . " - " . _("Change default profile"),
"234" => array ("Headline" => _("Profile management") . " - " . _("Change default profile"),
"Text" => _("This changes the profile which is selected by default at login.")),
"235" => array ("ext" => "FALSE", "Headline" => _("Change master password"),
"235" => array ("Headline" => _("Change master password"),
"Text" => _("If you want to change your master configuration password, please enter it here.")),
"236" => array ("ext" => "FALSE", "Headline" => _("Master password"),
"236" => array ("Headline" => _("Master password"),
"Text" => _("Please enter the master configuration password. This is NOT your LDAP password. It is stored in your config.cfg file. If this is the first time you log in, enter \"lam\".")),
"237" => array ("ext" => "FALSE", "Headline" => _("Configuration wizard") . " - " . _("Base module"),
"237" => array ("Headline" => _("Configuration wizard") . " - " . _("Base module"),
"Text" => _("Every account type needs exactly one base module. This module provides a structural object class.")),
"238" => array ("ext" => "FALSE", "Headline" => _("Session timeout"),
"238" => array ("Headline" => _("Session timeout"),
"Text" => _("This is the time (in minutes) of inactivity after which a user is automatically logged off.")),
"239" => array ("ext" => "FALSE", "Headline" => _("Log level"),
"239" => array ("Headline" => _("Log level"),
"Text" => _("Please select your prefered log level. Messages with a lower level will not be logged.")),
"240" => array ("ext" => "FALSE", "Headline" => _("Log destination"),
"240" => array ("Headline" => _("Log destination"),
"Text" => _("Here you can select where LAM should save its log messages. System logging will go to Syslog on Unix systems and event log on Windows. You can also select an extra file.")),
"241" => array ("ext" => "FALSE", "Headline" => _("Allowed hosts"),
"241" => array ("Headline" => _("Allowed hosts"),
"Text" => _("This is a list of IP addresses from hosts who may access LAM. You can use \"*\" as wildcard (e.g. 192.168.0.*).")),
"250" => array ("ext" => "FALSE", "Headline" => _("Account lists - Filters"),
"250" => array ("Headline" => _("Account lists - Filters"),
"Text" => _("Here you can input small filter expressions (e.g. 'value' or 'v*'). LAM will filter case-insensitive.")),
// 300 - 399
// Roland Gruber
// profile editor, file upload
"301" => array ("ext" => "FALSE", "Headline" => _("RDN identifier"),
"301" => array ("Headline" => _("RDN identifier"),
"Text" => _("This is the identifier for the relative DN value. It must be one of the given allowed LDAP attributes (e.g. user accounts usually use \"uid\" while groups use \"cn\").")),
"360" => array ("ext" => "FALSE", "Headline" => _("Profile name"),
"360" => array ("Headline" => _("Profile name"),
"Text" => _("Name under which the profile will be saved. If a profile with the same name exists, it will be overwritten.")),
"361" => array ("ext" => "FALSE", "Headline" => _("DN suffix"),
"361" => array ("Headline" => _("DN suffix"),
"Text" => _("The account will be saved under this LDAP suffix.")),
// 400 - 499
// account pages
"401" => array ("ext" => "FALSE", "Headline" => _("Load profile"),
"401" => array ("Headline" => _("Load profile"),
"Text" => _("Here you can load an account profile to set default settings for your account. The \"default\" profile is automatically loaded for new accounts.")),
"403" => array ("ext" => "FALSE", "Headline" => _("Create PDF file"),
"403" => array ("Headline" => _("Create PDF file"),
"Text" => _("Here you can select a PDF structure and export the account to a PDF file.")),
// 500 - 599
// Roland Gruber
// LAM Pro
"501" => array ("ext" => "FALSE", "Headline" => _("LDAP suffix"),
"501" => array ("Headline" => _("LDAP suffix"),
"Text" => _("LAM will search for accounts in this part of the LDAP tree.")),
"502" => array ("ext" => "FALSE", "Headline" => _("LDAP user and password"),
"502" => array ("Headline" => _("LDAP user and password"),
"Text" => _("LAM will use this LDAP DN and password to search for accounts. It is sufficient to specify an account with read rights. If nothing is inserted then LAM will try to connect anonymously.")),
"503" => array ("ext" => "FALSE", "Headline" => _("LDAP search attribute"),
"503" => array ("Headline" => _("LDAP search attribute"),
"Text" => _("This is needed to find the LDAP DNs of your user accounts. E.g. if you use \"uid\" and your user inputs \"miller\" then LAM will search for an account with uid=miller.")),
"504" => array ("ext" => "FALSE", "Headline" => _("Login attribute label"),
"504" => array ("Headline" => _("Login attribute label"),
"Text" => _("This text should shortly describe your selected LDAP search attribute (e.g. email or user name).")),
"505" => array ("ext" => "FALSE", "Headline" => _("Login caption"),
"505" => array ("Headline" => _("Login caption"),
"Text" => _("This text is displayed on top of the self service login page. You can also input HTML code here.")),
"506" => array ("ext" => "FALSE", "Headline" => _("Main page caption"),
"506" => array ("Headline" => _("Main page caption"),
"Text" => _("This text is displayed on top of the self service main page. You can also input HTML code here.")),
"507" => array ("ext" => "FALSE", "Headline" => _("Add new group"),
"507" => array ("Headline" => _("Add new group"),
"Text" => _("Adds a new group element to the list of self service options. Use this to structure the input fields.")),
"508" => array ("ext" => "FALSE", "Headline" => _("Add input field"),
"508" => array ("Headline" => _("Add input field"),
"Text" => _("Adds a new self service option to the selected group element.")),
"520" => array ("ext" => "FALSE", "Headline" => _("Generate random password"),
"520" => array ("Headline" => _("Generate random password"),
"Text" => _("This will set a random password and display it on the screen or send it the user via mail.") .
'<br><br>' . _('If you decide to send the password via mail then the mail template "config/passwordMailTemplate.txt" will be used.') .
'<br><br><b>' . _('Format') . ': </b><ul>' .
@ -181,31 +181,24 @@ $helpArray = array (
// 600 - 699
// Roland Gruber
// OU-editor, domain page
"601" => array ("ext" => "FALSE", "Headline" => _("OU-Editor") . " - " . _("New organizational unit"),
"601" => array ("Headline" => _("OU-Editor") . " - " . _("New organizational unit"),
"Text" => _("This will create a new organizational unit under the selected one.")),
"602" => array ("ext" => "FALSE", "Headline" => _("OU-Editor") . " - " . _("Delete organizational unit"),
"602" => array ("Headline" => _("OU-Editor") . " - " . _("Delete organizational unit"),
"Text" => _("This will delete the selected organizational unit. The OU has to be empty."))
);
/* This is a sample help entry. Just copy this line an modify the values between the [] brackets.
"[HelpNumber]" => array ("ext" => "FALSE", "Headline" => _("[Headline]"), "Text" => _("[Text]"), "SeeAlso" => array('link' => "[SeeAlso link]", 'text' => '[link text]')),
"999" => array ("ext" => "FALSE", "Headline" => _("This is a sample entry"), "Text" => _("Sample text"), "SeeAlso" => array('link' => "http://lam.sf.net", 'text' => 'Project page')),
"[HelpNumber]" => array ("Headline" => _("[Headline]"), "Text" => _("[Text]"), "SeeAlso" => array('link' => "[SeeAlso link]", 'text' => '[link text]')),
"999" => array ("Headline" => _("This is a sample entry"), "Text" => _("Sample text"), "SeeAlso" => array('link' => "http://lam.sf.net", 'text' => 'Project page')),
If help text is located in an extra file then the file must be stored in help directory.
The link has to be the path to the file if it is stored in a subdirectory and the filename with a leading slash.
"[HelpNumber]" => array ("ext" => "TRUE", "Link" => "[path/FileName]),
"999" => array ("ext" => "TRUE", "Link" => "extra.htm),
Syntax:
=======
HelpNumber: numeric value
ext: FALSE if help entry is located in this file, TRUE if external help page
Headline: topic of help entry
Text: help text (ext = FALSE)
SeeAlso: URL to additional information (ext = FALSE, optional)

View File

@ -731,13 +731,26 @@ abstract class baseModule {
}
/**
* This function return the help entry array for a specific help id. Normally this->meta can be used.
* This function returns the help entry array for a specific help id.
* The result is an hashtable with the following keys:<br>
* <ul>
* <li><b>Headline (required)</b><br>
* The headline of this help entry. Can consist of any alpha-numeric characters. No HTML/CSS elements are allowed.</li>
* <li><b>Text (required)</b><br>
* The text of the help entry which may contain any alpha-numeric characters.</li>
* <li><b>SeeAlso (optional)</b><br>
* A reference to anonther related web site. It must be an array containing a field called "text" with the link text
* that should be displayed and a field called "link" which is the link target.</li>
* </ul>
* <br>
* <b>Example:</b><br>
* <br>
* array('Headline' => 'This is the head line', 'Text' => 'Help content', 'SeeAlso' => array('text' => 'LAM homepage', 'link' => 'http://lam.sf.net'))
*
* @param string $id The id string for the help entry needed.
* @param string $scope The scope for which the help entry should be retrieved. May be empty when
* there is now difference of the help entry depending on the actual scope.
*
* @return array The desired help entry.
*
* @see baseModule::get_metaData()
*/
function get_help($id) {
if(isset($this->meta['help'][$id])) {

View File

@ -341,72 +341,72 @@ class sambaAccount extends baseModule {
// help Entries
$return['help'] = array (
"displayName" => array(
"ext" => "FALSE", "Headline" => _("Display name"),
"Headline" => _("Display name"),
"Text" => _("This is the account's full name on Windows systems.")),
"password" => array(
"ext" => "FALSE", "Headline" => _("Samba password"),
"Headline" => _("Samba password"),
"Text" => _("This is the account's Windows password.")),
"resetPassword" => array(
"ext" => "FALSE", "Headline" => _("Reset password"),
"Headline" => _("Reset password"),
"Text" => _("This will reset the host's password to a default value.")),
"pwdUnix" => array(
"ext" => "FALSE", "Headline" => _("Use Unix password"),
"Headline" => _("Use Unix password"),
"Text" => _("If checked Unix password will also be used as Samba password.")),
"pwdUnixUpload" => array(
"ext" => "FALSE", "Headline" => _("Use Unix password"),
"Headline" => _("Use Unix password"),
"Text" => _("If set to \"true\" Unix password will also be used as Samba password.")),
"noPassword" => array(
"ext" => "FALSE", "Headline" => _("Use no password"),
"Headline" => _("Use no password"),
"Text" => _("If checked no password will be used.")),
"noPasswordUpload" => array(
"ext" => "FALSE", "Headline" => _("Use no password"),
"Headline" => _("Use no password"),
"Text" => _("If set to \"true\" no password will be used.")),
"noExpire" => array(
"ext" => "FALSE", "Headline" => _("Password does not expire"),
"Headline" => _("Password does not expire"),
"Text" => _("If checked password does not expire. (Setting X-Flag)")),
"noExpireUpload" => array(
"ext" => "FALSE", "Headline" => _("Password does not expire"),
"Headline" => _("Password does not expire"),
"Text" => _("If set to \"true\" password does not expire. (Setting X-Flag)")),
"deactivated" => array(
"ext" => "FALSE", "Headline" => _("Account is deactivated"),
"Headline" => _("Account is deactivated"),
"Text" => _("If checked account will be deactivated. (Setting D-Flag)")),
"deactivatedUpload" => array(
"ext" => "FALSE", "Headline" => _("Account is deactivated"),
"Headline" => _("Account is deactivated"),
"Text" => _("If set to \"true\" account will be deactivated. (Setting D-Flag)")),
"pwdCanChange" => array(
"ext" => "FALSE", "Headline" => _("User can change password"),
"Headline" => _("User can change password"),
"Text" => _("Date after the user is able to change his password. Format: DD-MM-YYYY")),
"pwdMustChange" => array ("ext" => "FALSE", "Headline" => _("User must change password"),
"pwdMustChange" => array ("Headline" => _("User must change password"),
"Text" => _("Date after the user must change his password. Format: DD-MM-YYYY")),
"homeDrive" => array(
"ext" => "FALSE", "Headline" => _("Home drive"),
"Headline" => _("Home drive"),
"Text" => _("Drive letter assigned on windows workstations as homedirectory.")),
"homePath" => array(
"ext" => "FALSE", "Headline" => _("Home path"),
"Headline" => _("Home path"),
"Text" => _('UNC-path (\\\\server\\share) of homedirectory. $user and $group are replaced with user and group name.'). ' '. _("Can be left empty.")),
"profilePath" => array(
"ext" => "FALSE", "Headline" => _("Profile path"),
"Headline" => _("Profile path"),
"Text" => _('Path of the user profile. Can be a local absolute path or a UNC-path (\\\\server\\share). $user and $group are replaced with user and group name.'). ' '. _("Can be left empty.")),
"scriptPath" => array(
"ext" => "FALSE", "Headline" => _("Logon script"),
"Headline" => _("Logon script"),
"Text" => _('File name and path relative to the netlogon-share which should be executed on logon. $user and $group are replaced with user and group name.'). ' '. _("Can be left empty.")),
"userWorkstations" => array(
"ext" => "FALSE", "Headline" => _("Samba workstations"),
"Headline" => _("Samba workstations"),
"Text" => _("List of Samba workstations the user is allowed to login. Empty means every workstation.")),
"workstations" => array(
"ext" => "FALSE", "Headline" => _("Samba workstations"),
"Headline" => _("Samba workstations"),
"Text" => _("Comma separated list of Samba workstations the user is allowed to login. Empty means every workstation."). ' '. _("Can be left empty.")),
"group" => array(
"ext" => "FALSE", "Headline" => _("Windows group name"),
"Headline" => _("Windows group name"),
"Text" => _("If you want to use a well known RID you can selcet a well known group.")),
"groupUpload" => array(
"ext" => "FALSE", "Headline" => _("Windows group RID"),
"Headline" => _("Windows group RID"),
"Text" => _("This is the RID of the user's primary Windows group.")),
"specialUser" => array(
"ext" => "FALSE", "Headline" => _("Special user"),
"Headline" => _("Special user"),
"Text" => _("If you want to create domain administrators or other special users use this option.")),
"domain" => array(
"ext" => "FALSE", "Headline" => _("Domain"),
"Headline" => _("Domain"),
"Text" => _("Windows domain name of account."). ' '. _("Can be left empty."))
);
return $return;

View File

@ -190,88 +190,88 @@ class sambaSamAccount extends baseModule {
// help Entries
$return['help'] = array (
"displayName" => array(
"ext" => "FALSE", "Headline" => _("Display name"),
"Headline" => _("Display name"),
"Text" => _("This is the account's full name on Windows systems.")),
"password" => array(
"ext" => "FALSE", "Headline" => _("Samba password"),
"Headline" => _("Samba password"),
"Text" => _("This is the account's Windows password.")),
"resetPassword" => array(
"ext" => "FALSE", "Headline" => _("Reset password"),
"Headline" => _("Reset password"),
"Text" => _("This will reset the host's password to a default value.")),
"pwdUnix" => array(
"ext" => "FALSE", "Headline" => _("Use Unix password"),
"Headline" => _("Use Unix password"),
"Text" => _("If checked Unix password will also be used as Samba password.")),
"pwdUnixUpload" => array(
"ext" => "FALSE", "Headline" => _("Use Unix password"),
"Headline" => _("Use Unix password"),
"Text" => _("If set to \"true\" Unix password will also be used as Samba password.")),
"noPassword" => array(
"ext" => "FALSE", "Headline" => _("Use no password"),
"Headline" => _("Use no password"),
"Text" => _("If checked no password will be used.")),
"noPasswordUpload" => array(
"ext" => "FALSE", "Headline" => _("Use no password"),
"Headline" => _("Use no password"),
"Text" => _("If set to \"true\" no password will be used.")),
"noExpire" => array(
"ext" => "FALSE", "Headline" => _("Password does not expire"),
"Headline" => _("Password does not expire"),
"Text" => _("If checked password does not expire. (Setting X-Flag)")),
"noExpireUpload" => array(
"ext" => "FALSE", "Headline" => _("Password does not expire"),
"Headline" => _("Password does not expire"),
"Text" => _("If set to \"true\" password does not expire. (Setting X-Flag)")),
"deactivated" => array(
"ext" => "FALSE", "Headline" => _("Account is deactivated"),
"Headline" => _("Account is deactivated"),
"Text" => _("If checked then the account will be deactivated. (Setting D-Flag)")),
"locked" => array(
"ext" => "FALSE", "Headline" => _("Account is locked"),
"Headline" => _("Account is locked"),
"Text" => _("If checked then the account will be locked (setting L-Flag). You usually want to use this setting to unlock user accounts which were locked because of failed login attempts.")),
"deactivatedUpload" => array(
"ext" => "FALSE", "Headline" => _("Account is deactivated"),
"Headline" => _("Account is deactivated"),
"Text" => _("If set to \"true\" account will be deactivated. (Setting D-Flag)")),
"pwdCanChange" => array(
"ext" => "FALSE", "Headline" => _("User can change password"),
"Headline" => _("User can change password"),
"Text" => _("Date after the user is able to change his password. Format: DD-MM-YYYY")),
"pwdMustChange" => array ("ext" => "FALSE", "Headline" => _("User must change password"),
"pwdMustChange" => array ("Headline" => _("User must change password"),
"Text" => _("Date after the user must change his password. Format: DD-MM-YYYY")),
"homeDrive" => array(
"ext" => "FALSE", "Headline" => _("Home drive"),
"Headline" => _("Home drive"),
"Text" => _("The home directory will be connected under this drive letter.")),
"homePath" => array(
"ext" => "FALSE", "Headline" => _("Home path"),
"Headline" => _("Home path"),
"Text" => _('UNC-path (\\\\server\\share) of homedirectory. $user and $group are replaced with user and group name.'). ' '. _("Can be left empty.")),
"profilePath" => array(
"ext" => "FALSE", "Headline" => _("Profile path"),
"Headline" => _("Profile path"),
"Text" => _('Path of the user profile. Can be a local absolute path or a UNC-path (\\\\server\\share). $user and $group are replaced with user and group name.'). ' '. _("Can be left empty.")),
"scriptPath" => array(
"ext" => "FALSE", "Headline" => _("Logon script"),
"Headline" => _("Logon script"),
"Text" => _('File name and path relative to netlogon-share which should be executed on logon. $user and $group are replaced with user and group name.'). ' '. _("Can be left empty.")),
"userWorkstations" => array(
"ext" => "FALSE", "Headline" => _("Samba workstations"),
"Headline" => _("Samba workstations"),
"Text" => _("List of Samba workstations the user is allowed to login. Empty means every workstation.")),
"workstations" => array(
"ext" => "FALSE", "Headline" => _("Samba workstations"),
"Headline" => _("Samba workstations"),
"Text" => _("Comma separated list of Samba workstations the user is allowed to login. Empty means every workstation."). ' '. _("Can be left empty.")),
"group" => array(
"ext" => "FALSE", "Headline" => _("Windows primary group"),
"Headline" => _("Windows primary group"),
"Text" => _("This is the user's primary Windows group.")),
"groupUpload" => array(
"ext" => "FALSE", "Headline" => _("Windows primary group SID"),
"Headline" => _("Windows primary group SID"),
"Text" => _("This is the SID of the user's primary Windows group.")),
"specialUser" => array(
"ext" => "FALSE", "Headline" => _("Special user"),
"Headline" => _("Special user"),
"Text" => _("This allows you to define this account as a special user like administrator or guest.")),
"ridUpload" => array(
"ext" => "FALSE", "Headline" => _("Samba RID"),
"Headline" => _("Samba RID"),
"Text" => _("This is the relative ID number for your Windows account. You can either enter a number or one of these special accounts: ") .
implode(", ", array_keys($this->rids)) . "<br><br>" . _("If you leave this empty LAM will use: uidNumber*2 + sambaAlgorithmicRidBase.")),
"ridUploadHost" => array(
"ext" => "FALSE", "Headline" => _("Samba RID"),
"Headline" => _("Samba RID"),
"Text" => _("This is the relative ID number for your host account. If you leave this empty LAM will use: uidNumber*2 + sambaAlgorithmicRidBase.")),
"domain" => array(
"ext" => "FALSE", "Headline" => _("Domain"),
"Headline" => _("Domain"),
"Text" => _("Windows domain name of account.")),
"logonHours" => array(
"ext" => "FALSE", "Headline" => _("Logon hours"),
"Headline" => _("Logon hours"),
"Text" => _("This option defines the allowed logon hours for this account.")),
"logonHoursUpload" => array(
"ext" => "FALSE", "Headline" => _("Logon hours"),
"Headline" => _("Logon hours"),
"Text" => _("This option defines the allowed logon hours for this account. The format is the same as for the LDAP attribute. The 24*7 hours are represented as 168 bit which are saved as 21 hex (21*8 = 168) values. The first bit represents Sunday 0:00 - 0:59 in GMT.")),
'expireDate' => array (
"Headline" => _("Account expiration date"),

View File

@ -4,6 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 - 2006 Michael Duergner
2008 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -27,30 +28,23 @@ $Id$
* LDAP Account Manager help page.
*
* @author Michael Duergner
* @author Roland Gruber
* @package Help
*/
/**
*
*/
/** LDAP connection */
include_once("../lib/ldap.inc");
/**
*
*/
/** configuration */
include_once("../lib/config.inc");
session_save_path("../sess"); // Set session save path
@session_start(); // Start LDAP Account Manager session
session_save_path("../sess");
@session_start();
/**
*
*/
include_once("../lib/status.inc"); // Include lib/status.php which provides statusMessage()
/** status messages */
include_once("../lib/status.inc");
/**
*
*/
/** help data */
include_once("../help/help.inc"); // Include help/help.inc which provides $helpArray where the help pages are stored
setlanguage();
@ -88,16 +82,6 @@ function echoHTMLFoot()
* @param array The help variables that are used to replace the spacer in the help text.
*/
function displayHelp($helpEntry,$helpVariables) {
/* Load external help page */
if (isset($helpEntry["ext"]) && ($helpEntry["ext"] == "TRUE"))
{
echoHTMLHead();
include_once("../help/" . $helpEntry["Link"]);
echoHTMLFoot();
}
/* Print help site out of $helpEntry */
else
{
echoHTMLHead();
echo " <h1 class=\"help\">" . $helpEntry['Headline'] . "</h1>\n";
$format = " <p class=\"help\">" . $helpEntry['Text'] . "</p>\n";
@ -107,7 +91,6 @@ function displayHelp($helpEntry,$helpVariables) {
echo ' <p class="help">' . _('See also') . ': <a class="helpSeeAlso" href="' . $helpEntry['SeeAlso']['link'] . '">' . $helpEntry['SeeAlso']['text'] . '</a></p>';
}
echoHTMLFoot();
}
}
/* If no help number was submitted print error message */