Home « Server software «
Documentation: files/view.php
files/view.php - Display one file in situation
This page is useful for displaying information on files to be downloaded. Also, for some extensions YACS offers to stream file content as an alternative to the download.If several files have been posted to a single anchor, a navigation bar will be built to jump directly to previous and next neighbours. This is displayed as a sidebar box in the extra panel.
The extra panel also features top popular referrals in a sidebar box, if applicable.
Free icons used for OpenOffice.org files have been found at KDE-look.org.
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.
When the shared file is a Freemind map, and if the related Java applet is available, YACS adds a link to use it from within the current browser window.
Restrictions apply on this page:
- associates and editors are allowed to move forward
- permission is denied if the anchor is not viewable
- permission is granted if the anchor is the profile of this member
- authenticated users may view their own posts
- 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
Accept following invocations:
- view.php/12
- view.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:
- add some Flash detection http://www.quirksmode.org/js/flash.html