Documentation : articles/mail.php
articles/mail.php - Mail an article
This script has a form to post a mail message based on an existing article.If the action parameter is empty, a menu is offered either:
- to invite a set of people to contribute
- or to send some feed-back to the initial author
When a message is sent to invited people, these may, or not, be part of the community.
Long lines of the message are wrapped according to Dan's suggestion.
Surfer signature is appended to the message, if any. Else a default signature is used instead, with a link to the site front page.
Senders can select to get a copy of messages.
Messages are sent using utf-8, and are either base64-encoded, or send as-is.
Restrictions apply on this page:
- associates and editors are allowed to move forward
- creator is allowed to view the page
- permission is denied if the anchor is not viewable
- article is restricted ('active' field == 'R'), but the surfer is an authenticated member
- public access is allowed ('active' field == 'Y'), and the surfer has been authenticated
- permission denied is the default
If the file
demo.flag exists, the script assumes that this instance
of YACS runs in demonstration mode, and no message is actually posted.Accepted calls:
- mail.php/<id>
- mail.php?id=<id>
- mail.php/<id>/feed-back
- mail.php?id=<id>&action=feed-back
- mail.php/<id>/invite
- mail.php?id=<id>&action=invite
If this article, or one of its anchor, 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
- GnapZ
Testeurs :
- Guillaume Perez