Home « Server software «
Documentation: files/fetch.php
files/fetch.php - Download one file
This script actually counts the hit then redirect the browser for a true download.Restrictions apply on this page:
- associates and editors are allowed to move forward
- permission is denied if the anchor is not viewable
- access is restricted ('active' field == 'R'), but the surfer is an authenticated member
- public access is allowed ('active' field == 'Y' or 'X')
- permission denied is the default
Optionnally, this script also read internal information for some file types, in order to enhance the provided listing. This reading is based on the getid3() library, which is loaded if it is available.
For authentication on protected page this script use basic HTTP authentication. This means that the anonymous surfer will have either to use the regular login page, or to provide name and password on a per-request basis.
Per-request authentication is based on HTTP basic authentication mechanism, as explained in RFC2617.
Accept following invocations:
- fetch.php/12
- fetch.php?id=12
If the anchor for this item specifies a specific skin (option keyword '
skin_xyz
'),
or a specific variant (option keyword 'variant_xyz
'), they are used instead default values.This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
Reste à faire:
- passthrough file content for file of reasonable size