Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
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
* @package FDL
5
*/
6
/**
7
* Duplicate a document
8
*
9
* @author Anakeen
10
* @version $Id: freedom_duplicate.php,v 1.12 2005/06/07 16:06:24 eric Exp $
11
* @package FDL
12
* @subpackage GED
13
*/
14
/**
15
*/
16
17
include_once (
"FDL/duplicate.php"
);
18
19
include_once (
"FDL/Class.Dir.php"
);
20
// -----------------------------------
21
function
freedom_duplicate
(&
$action
)
22
{
23
// -----------------------------------
24
// Get all the params
25
$dirid
= GetHttpVars(
"dirid"
, 10);
// where to duplicate
26
$docid
= GetHttpVars(
"id"
, 0);
// doc to duplicate
27
$folio = GetHttpVars(
"folio"
,
"N"
) ==
"Y"
;
// return in folio
28
duplicate
(
$action
,
$dirid
,
$docid
);
29
30
if
($folio) redirect(
$action
,
"FREEDOM"
,
"FOLIOLIST&dirid="
.
$dirid
);
31
else
redirect(
$action
,
"FREEDOM"
,
"FREEDOM_VIEW&dirid="
.
$dirid
);
32
}
33
?>
$action
global $action
Definition:
accountRefreshGroup.php:16
$docid
$docid
Definition:
cleanFamily.php:13
duplicate
duplicate(Action &$action, $dirid, $docid, $temporary=false)
Definition:
duplicate.php:19
freedom_duplicate
freedom_duplicate(&$action)
Definition:
freedom_duplicate.php:21
$dirid
$dirid
Definition:
importDocuments.php:66
← centre documentaire
© anakeen