Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
revision.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: revision.php,v 1.9 2005/06/28 08:37:46 eric Exp $
11  * @package FDL
12  * @subpackage GED
13  */
14 /**
15  */
16 // ---------------------------------------------------------------
17 // $Id: revision.php,v 1.9 2005/06/28 08:37:46 eric Exp $
18 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/revision.php,v $
19 // ---------------------------------------------------------------
20 include_once ("FDL/Class.Doc.php");
21 include_once ("FDL/Class.DocAttr.php");
22 function revision(Action & $action)
23 {
24  $dbaccess = $action->dbaccess;
25  $docid = GetHttpVars("id", 0);
26  $comment = GetHttpVars("comment", _("no comment"));
27 
29 
30  $err = $doc->canEdit();
31  if ($err != "") $action->ExitError($err);
32 
33  $err = $doc->revise($comment);
34  if ($err != "") $action->ExitError($err);
35 
36  $action->AddLogMsg(sprintf(_("%s new revision %d") , $doc->title, $doc->revision));
37 
38  redirect($action, "FDL", "FDL_CARD&refreshfld=Y&id=" . $doc->id, $action->GetParam("CORE_STANDURL"));
39 }
$comment
Definition: fdl_execute.php:35
global $action
$docid
Definition: cleanFamily.php:13
revision(Action &$action)
Definition: revision.php:22
new_Doc($dbaccess, $id= '', $latest=false)
$dbaccess
Definition: checkVault.php:17
if($file) if($subject==""&&$file) if($subject=="") $err
← centre documentaire © anakeen