mpfserver Manual
 
 
 access | load user-rights library to get access-rights for client session
mpf:xml | importas=access
this is to protect parts of your databases/applications for access by authentified users with required access-rights set only (does work only, if session mode is turned on). usergroups/access-rights must be listed in xml-file that is compliant with MpfXmlTreeLib-class
accessing user-rights information
user-rights information will be stored in session variables "session/usergroup" and "session/access". use the token-structure as shown below to display value of any attribute you defined for user-tag in xml-file. available until client session expires

{mpf:session/usergroup  }
/[myattrib]
id identifier attribute 
[...] any other defined attribute in user library file (XML) 
||count
use this parameter to count number of items in list (a list/array will not be initialized)
||recs=[number]
this parameter is for use of integrated page partitioning. in combination with "count"-parameter token will return number of pages
||page=[number]
use this parameter to access pages if "recs"-parameter is set to restrict number of records per page
|| convert=[lowercase|uppercase|upperfirst]
convert value string
|| encode=[url|html|html-chars|crypt]
encode value to another format
|| trim=[left|right|both]
remove whitespaces from value
|| convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
|| parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
|| encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
|| trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
|| [opr][condition]
condition may be used to check value

{mpf:session/access  }
/[myattrib]
id identifier attribute 
login login name 
password password 
group usergroup 
[...] any other defined attribute in user library file (XML) 
||count
use this parameter to count number of items in list (a list/array will not be initialized)
||recs=[number]
this parameter is for use of integrated page partitioning. in combination with "count"-parameter token will return number of pages
||page=[number]
use this parameter to access pages if "recs"-parameter is set to restrict number of records per page
|| convert=[lowercase|uppercase|upperfirst]
convert value string
|| encode=[url|html|html-chars|crypt]
encode value to another format
|| trim=[left|right|both]
remove whitespaces from value
|| convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
|| parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
|| encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
|| trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
|| [opr][condition]
condition may be used to check value
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).