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