Home « Server software «
Documentation: articles/duplicate.php
articles/duplicate.php - Duplicate an article
This script calls for confirmation, then actually duplicates an article. Images of the original article are duplicated as well, but not files, links, nor comments. It updates the database, then redirects to the anchor page, or to the index page for articles.Restrictions apply on this page:
- associates and authenticated editors are allowed to move forward
- permission is denied if the anchor is not viewable by this surfer
- permission is denied if the article has been published, and if revision are forbidden ('users_without_revision' == 'Y')
- logged surfers may decide to delete their own posts
- else permission is denied
Accept following invocations:
- duplicate.php/12
- duplicate.php?id=12
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
Testeurs:
- Fernand Le Chien