Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
onefam_togen.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  * Redirector for generic
9  *
10  * @author Anakeen 2000
11  * @version $Id: onefam_togen.php,v 1.8 2007/05/28 08:13:57 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 
19 include_once ("FDL/Class.Doc.php");
20 include_once ("FDL/Lib.Dir.php");
21 
23 {
24 
25  $famid = GetHttpVars("famid", 0);
26  $gonlylist = GetHttpVars("gonlylist");
27  $gaction = "";
28 
29  if ($famid == 0) $action->exitError(_("Family is not instanciate"));
30 
31  if ($gonlylist == "yes") {
32  $gapp = "GENERIC";
33  $gaction = "GENERIC_TAB&catg=0&tab=0&famid=$famid";
34  } else {
35  $gapp = $action->GetParam("APPNAME", "ONEFAM");
36  $gaction = "ONEFAM_GENROOT&famid=$famid";
37  }
38  $dbaccess = $action->GetParam("FREEDOM_DB");
40  if (!$doc->isAffected()) $action->exitError(sprintf(_("Family (#%d) is not referenced") , $famid));
41  $action->Register("DEFAULT_FAMILY", $famid);
42 
43  redirect($action, $gapp, $gaction);
44 }
45 ?>
← centre documentaire © anakeen - published under CC License - Dynacase