HFS: URL parameters

From rejetto wiki
Jump to: navigation, search

Address operators can be used in HTML eg. href = "/~login" and in the address bar of the browser eg. www.yoursite.com/~login. Here is a list of available operators:

~nodefault 
doesn't serve default file in a folder, but folder with files (since v2.1beta)
~login 
calls for the login screen
~files.lst 
inserts HTML from filelist.tpl if exists in hfs.exe folder, otherwise produces ASCII file list of the requested folder
~img 
shows server graphic
~progress 
calls the HTML from section [progress]
~upload 
calls HTML from section [upload] for the requested folder
~upload-no-progress 
calls HTML from section [upload-no-progress] for requested folder
~upload+progress 
calls HTML from section [upload+progress] for the requested folder
~folder.tar 
calls for all files in the folder to be downloaded in .tar format
~folder.tar?recursive 
calls for all the files and folders in the current folder to be downloaded in .tar format
~folder.tar?recursive&nofolders 
tells the archive to list all files together, ignoring folders

To access the icon images use the following

/~img_folder 
shows a default folder image.
/~img_file 
will load the according icon for the file type.
/~img_link  
shows the image for a link.
/~img# 
where ‘#’ is the number of the icon in the icon list of HFS.

Other address operators are available in the form  ?param1&param2&... Note: some of them are available only since version 2.3 (today still in beta 2007/11/15)

sort=[ n | e | s | t | d ] 
Sort by [ Name | Ext | Size | Date | Hits ]
rev 
Invert the order of sorting
offset=nn 
List files from the offset nn(0 being the first file)
limit=nn 
Limit the listing with nn items
page=mm,nn  
List files from the page mm with nn items
filter=mask 
Show items corresponding to the mask filter
files-filter=mask 
Show files corresponding to the mask filter
folders-filter=mask 
Show folders corresponding to the mask filter
search=pattern 
Search recursively for any file or folder containing containing the pattern
recursive 
ask to list files in this folder but also from subfolders
foldersbefore=1 or foldersbefore= 
folders are displayed before files, or not
linksbefore=1 or linksbefore= 
links are displayed before files and folders, or not