Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
freedom_duplicate.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Duplicate a document
9  *
10  * @author Anakeen 2000
11  * @version $Id: freedom_duplicate.php,v 1.12 2005/06/07 16:06:24 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage GED
15  */
16 /**
17  */
18 
19 include_once ("FDL/duplicate.php");
20 
21 include_once ("FDL/Class.Dir.php");
22 // -----------------------------------
24 {
25  // -----------------------------------
26  // Get all the params
27  $dirid = GetHttpVars("dirid", 10); // where to duplicate
28  $docid = GetHttpVars("id", 0); // doc to duplicate
29  $folio = GetHttpVars("folio", "N") == "Y"; // return in folio
30  duplicate($action, $dirid, $docid);
31 
32  if ($folio) redirect($action, "FREEDOM", "FOLIOLIST&dirid=" . $dirid);
33  else redirect($action, "FREEDOM", "FREEDOM_VIEW&dirid=" . $dirid);
34 }
35 ?>
← centre documentaire © anakeen - published under CC License - Dynacase