Home « Server software «
Documentation: decisions/edit.php
decisions/edit.php - Post a new decision or update an existing one
A button-based editor is used for the description field. It's aiming to introduce most common codes supported by YACS. Also, sample smilies are displayed, and may be used to introduce related codes into the description field.A preview mode is available before actually saving the decision in the database.
This script attempts to validate the new or updated decision against a standard PHP XML parser. The objective is to spot malformed or unordered HTML and XHTML tags. No more, no less.
On new decision by a non-associate a mail is sent to the system operator. Also, a mail message is sent to the article creator if he/she has a valid address.
As a very first countermeasure against weblog spammers URI are not allowed into anonymous decisions.
The permission assessment is based upon following rules applied in the provided orders:
- the anchor may disallow the action
- associates are allowed to move forward
- permission is denied if the anchor is not viewable
- surfer created the decision
- this is a new post and the surfer is an authenticated member
- permission denied is the default
When permission is denied, anonymous (not-logged) surfer are invited to register to be able to post new decisions.
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:
- edit.php/<type>/<id> create a new decision for this anchor
- edit.php?anchor=<type>:<id> create a new decision for this anchor
- edit.php/<id> modify an existing decision
- edit.php?id=<id> modify an existing decision
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