Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
refreshdir.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: refreshdir.php,v 1.3 2003/08/18 15:47:03 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 // $Id: refreshdir.php,v 1.3 2003/08/18 15:47:03 eric Exp $
20 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/refreshdir.php,v $
21 // ---------------------------------------------------------------
22 // $Log: refreshdir.php,v $
23 // Revision 1.3 2003/08/18 15:47:03 eric
24 // phpdoc
25 //
26 // Revision 1.2 2002/06/19 12:32:29 eric
27 // modif des permissions : intégration de rq sql hasviewpermission
28 //
29 // Revision 1.1 2002/02/05 16:34:07 eric
30 // decoupage pour FREEDOM-LIB
31 //
32 // Revision 1.2 2001/11/28 13:40:10 eric
33 // home directory
34 //
35 // Revision 1.1 2001/11/09 09:41:14 eric
36 // gestion documentaire
37 //
38 //
39 // ---------------------------------------------------------------
40 include_once ("FDL/Class.Doc.php");
41 include_once ("FDL/Class.QueryDir.php");
42 // -----------------------------------
43 // -----------------------------------
44 function refreshdir(&$action)
45 {
46  // -----------------------------------
47  $action->log->start();
48  // Set the globals elements
49  $baseurl = $action->GetParam("CORE_BASEURL");
50  $standurl = $action->GetParam("CORE_STANDURL");
51  $dbaccess = $action->GetParam("FREEDOM_DB");
52  // Get all the params
53  $dirid = GetHttpVars("dirid"); // directory to refresh
54 
55  $oqd = new QueryDir($dbaccess);
56  $oqd->RefreshDir($dirid);
57  redirect($action, GetHttpVars("app") , "FREEDOM_VIEW&dirid=$dirid");
58 }
59 ?>
← centre documentaire © anakeen - published under CC License - Dynacase