Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
deldirfile.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: deldirfile.php,v 1.14 2005/06/28 08:37:46 eric Exp $
11  * @package FDL
12  * @subpackage GED
13  */
14 /**
15  */
16 
17 include_once ("FDL/Class.Dir.php");
18 include_once ("FDL/freedom_util.php");
19 // -----------------------------------
21 {
22  // -----------------------------------
23  // Get all the params
24  $dirid = GetHttpVars("dirid");
25  $docid = GetHttpVars("docid");
26  $folio = GetHttpVars("folio", "N") == "Y"; // return in folio
27  // print "deldirfile :: dirid:$dirid , docid:$docid";
28  $dbaccess = $action->dbaccess;
29  /*
30  * @var Dir $dir
31  */
32  $dir = new_Doc($dbaccess, $dirid); // use initial id for directories
33  $err = $dir->DelFile($docid);
34  if ($err != "") $action->exitError($err);
35 
36  if ($folio) {
38  $refreshtab = (($doc->doctype == "F") ? "N" : "Y");
39  redirect($action, "FREEDOM", "FOLIOLIST&refreshtab=$refreshtab&dirid=" . $dir->initid);
40  } else redirect($action, "FREEDOM", "FREEDOM_VIEW&dirid=" . $dir->initid);
41 }
global $action
exitError($texterr, $exit=true, $code="")
$docid
Definition: cleanFamily.php:13
deldirfile(Action &$action)
Definition: deldirfile.php:20
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