Aller au contenu principal Aide Panneau de contrôle

A+   A-

Logiciel serveur «  

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, as other attached items such as files, links, or comments, but also tables and locations. 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 duplicate 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 :

Testeurs :


tn