Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
generic_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  * Generated Header (not documented yet)
9  *
10  * @author Anakeen 2000
11  * @version $Id: generic_duplicate.php,v 1.9 2007/11/27 16:36:19 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage
15  */
16 /**
17  */
18 // ---------------------------------------------------------------
19 // $Id: generic_duplicate.php,v 1.9 2007/11/27 16:36:19 eric Exp $
20 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Generic/generic_duplicate.php,v $
21 // ---------------------------------------------------------------
22 include_once ("FDL/duplicate.php");
23 
24 include_once ("FDL/Class.Dir.php");
25 include_once ("GENERIC/generic_util.php");
26 // -----------------------------------
28 {
29  // -----------------------------------
30  // Get all the params
31  $dirid = GetHttpVars("dirid"); // where to duplicate
32  $docid = GetHttpVars("id", 0); // doc to duplicate
33  if ($dirid == "") {
34  $dbaccess = $action->GetParam("FREEDOM_DB");
36 
37  $dirid = $fdoc->dfldid;
38  }
39  $copy = duplicate($action, $dirid, $docid);
40 
41  redirect($action, "FDL", "FDL_CARD&refreshfld=Y&id=" . $copy->id, $action->GetParam("CORE_STANDURL"));
42 }
43 ?>
← centre documentaire © anakeen - published under CC License - Dynacase