HttpInitFolder


int HttpInitFolder ( const char *pBaseUrl , unsigned uFlags , const char *pTypeFilter , int iUserId )




 
Initalizes the folder plugin for external use with HttpFolderTrans(...). 

 
pBaseUrl is the base url for which the plugin is used

0 = means every folder
 
uFlags several flags for the plugin:
 
HTTP_FOLDER_INGNOREROOT   no folder view for the root path
HTTP_FOLDER_ADDSPACE   add a space at the begin of a entry

 
pTypeList is a list of viable file types.
 
pTypeFilter list of suffixes of all allowed or not allowed file types:
 
"html;htm;txt" show "*.html" "*.htm" and "*.txt"
"*html;htm;txt" don't show "*.html" "*.htm" and "*.txt"
 
iUserId user id for internal use.
 

Returns 0 if the plugin was installed or an error code:

1 = no more user parameters
2 = base url is to long
 

 

see also:

AzHttp Overview | HttpRegisterFolder | HttpFolderTrans