Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
freedom_convert.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_convert.php,v 1.4 2005/08/08 16:00:54 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage
15  */
16 /**
17  */
18 // refreah for a classname
19 // use this only if you have changed title attributes
20 include_once ("FDL/Class.Doc.php");
21 
22 $famId = GetHttpVars("tofamid", ""); // familly filter
23 $docid = GetHttpVars("docid", ""); // document
24 if (($docid == "") && ($famId == 0)) {
25  print "arg class needed :usage --tofamid=<family id> --docid=<doc id to be converted>\n";
26 } else {
27 
28  $appl = new Application();
29  $appl->Set("FDL", $core);
30 
31  $dbaccess = $appl->GetParam("FREEDOM_DB");
32  if ($dbaccess == "") {
33  print "Database not found : param FREEDOM_DB";
34  exit;
35  }
36 
38  if ($doc->isAffected()) {
39  if ($doc->convert($famId)) print $doc->title . " converted";
40  else print $doc->title . " NOT converted";
41  } else {
42  print "document $docid not found";
43  }
44 }
45 ?>
← centre documentaire © anakeen - published under CC License - Dynacase