Platform  3.1
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  * @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: changetitle.php,v 1.5 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: changetitle.php,v 1.5 2005/06/28 08:37:46 eric Exp $
20 // $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/changetitle.php,v $
21 // ---------------------------------------------------------------
22 include_once ("FDL/Class.Doc.php");
23 include_once ("FDL/Class.DocAttr.php");
24 include_once ("FREEDOM/freedom_mod.php");
25 include_once ("VAULT/Class.VaultFile.php");
26 
27 function changetitle(&$action)
28 {
29 
30  $dbaccess = $action->GetParam("FREEDOM_DB");
31  $docid = GetHttpVars("id", 0);
32  $ntitle = GetHttpVars("ititle", "");
33 
34  $action->lay->Set("docid", $docid);
35 
37 
38  if ($ntitle != "") {
39  $doc->title = $ntitle;
40  $err = $doc->modify();
41  if ($err != "") $action->ExitError($err);
42 
43  $action->AddLogMsg(sprintf(_("new title for %s") , $doc->title));
44  }
45 
46  redirect($action, "FDL", "FDL_CARD&id=" . $doc->id);
47 }
48 ?>
← centre documentaire © anakeen - published under CC License - Dynacase