Home « Server software «
Documentation: articles/export.php
articles/export.php - Download one article in XML
Accept following invocations:- export.php/12
- export.php?id=12
Following restrictions apply while accepting the query:
- anonymous users can see only active articles (the 'active' field == 'Y')
- members can see active and restricted articles ('active field == 'Y' or 'R')
- associates and editors can see all articles
If following features are enabled, this script will use them:
- compression - using gzip
- cache - supported through ETag and by setting Content-Length; Also, Cache-Control enables caching for some time, even through HTTPS
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')
- permission denied is the default
If a secret handle has been provided, and if the surfer has not been authenticated, he is automatically logged in as the article creator. This is necessary to authorize the handling of items attached to the anchor, such as comments, file, links or actions.
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.
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com