Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
adddirfile.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Generated Header (not documented yet)
8  *
9  * @author Anakeen
10  * @version $Id: adddirfile.php,v 1.15 2005/06/28 08:37:46 eric Exp $
11  * @package FDL
12  * @subpackage GED
13  */
14 /**
15  */
16 // ---------------------------------------------------------------
17 // $Id: adddirfile.php,v 1.15 2005/06/28 08:37:46 eric Exp $
18 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/adddirfile.php,v $
19 // ---------------------------------------------------------------
20 include_once ("FDL/Lib.Dir.php");
21 include_once ("FDL/freedom_util.php");
22 // -----------------------------------
24 {
25  // -----------------------------------
26  // PrintAllHttpVars();
27  // Get all the params
28  $dirid = GetHttpVars("dirid");
29  $docid = GetHttpVars("docid");
30  $mode = GetHttpVars("mode");
31  $return = GetHttpVars("return"); // return action may be folio
32  $folio = (GetHttpVars("folio", "N") == "Y"); // return in folio
33  $folio = ($folio || $return);
34 
35  $dbaccess = $action->dbaccess;
36 
38  /*
39  * @var Dir $dir
40  */
42 
43  $err = $dir->AddFile($doc->initid, $mode);
44 
45  if ($err != "") $action->addWarningMsg($err);
46 
47  if ($folio) {
48  $refreshtab = (($doc->doctype == "F") ? "N" : "Y");
49  redirect($action, GetHttpVars("app") , "FOLIOLIST&refreshtab=$refreshtab&dirid=$dirid");
50  } else redirect($action, GetHttpVars("app") , "FREEDOM_VIEW&dirid=$dirid");
51 }
addWarningMsg($msg)
global $action
adddirfile(Action &$action)
Definition: adddirfile.php:23
$docid
Definition: cleanFamily.php:13
new_Doc($dbaccess, $id= '', $latest=false)
$dir
Definition: resizeimg.php:144
$dbaccess
Definition: checkVault.php:17
if($file) if($subject==""&&$file) if($subject=="") $err
← centre documentaire © anakeen