Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
freedom_card.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: freedom_card.php,v 1.7 2005/06/28 08:37:46 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: freedom_card.php,v 1.7 2005/06/28 08:37:46 eric Exp $
20 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/freedom_card.php,v $
21 // ---------------------------------------------------------------
22 include_once ("FDL/Class.Dir.php");
23 // -----------------------------------
24 // -----------------------------------
26 {
27  // -----------------------------------
28  $docid = GetHttpVars("id");
29  $latest = GetHttpVars("latest");
30  $dbaccess = $action->GetParam("FREEDOM_DB");
32  if (!$doc->isAffected()) $action->exitError(sprintf(_("cannot see unknow reference %s") , $docid));
33 
34  if (($latest == "Y") && ($doc->locked == - 1)) {
35  // get latest revision
36  SetHttpVar("id", $doc->latestId());
37  }
38 
39  $action->lay->Set("TITLE", $doc->title);
40 }
41 ?>
← centre documentaire © anakeen - published under CC License - Dynacase