Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: files/edit.php

files/edit.php - Upload a new file or update an existing one

If no anchor has been provided to host the file, this script will create one. The title given for the file, or the file name, will be used as the page title. On direct uploads the sender will have the opportunity to select in which section the article has to be created. By default the article will be posted in the first public section appearing at the site map.

Also, fully qualified href can be provided instead of real files, to create shadow entries linked to material posted elsewhere. For example, you can use these href to list within YACS files that are available at anonymous FTP servers.

On new file upload, the href field is always stripped.

This script accepts following situations:

An alternate link can be added to any file record, to better support P2P software (eMule, etc.)

This script attempts to validate the new or updated article description against a standard PHP XML parser. The objective is to spot malformed or unordered HTML and XHTML tags. No more, no less.

Restrictions apply on this page:

The active field is used to control the publication of uploaded files

If the configuration enables it, associates can select to upload public files into some FTP space. In this case the active flag will take the value 'X'. Here are the rules used to take into account the fact that a file can not be transferred from the web to the ftp or vice-versa:

A button-based editor is used for the description field. It's aiming to introduce most common codes supported by YACS.

The edition time is not limited at all. Some Javascript code polls the server in the background to ensure that session data is not lost during all the time the browser window is opened.

Accepted calls:

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:

Testeurs:

Reste à faire:

Tools
Browse the source of this script
Server software