Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
onefam_modpref.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
* validate user or master choosen families
9
*
10
* @author Anakeen 2000
11
* @version $Id: onefam_modpref.php,v 1.8 2006/10/05 09:22:38 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
21
function
onefam_modpref
(&
$action
, $idsattr =
"ONEFAM_IDS"
)
22
{
23
$tidsfam =
GetHttpVars
(
"idsfam"
, array());
// preferenced families
24
$openfam =
GetHttpVars
(
"preffirstfam"
);
//
25
$dbaccess
=
$action
->GetParam(
"FREEDOM_DB"
);
26
27
$idsfam =
$action
->GetParam($idsattr);
28
$idsfam = implode(
","
, $tidsfam);
29
30
if
($idsattr ==
"ONEFAM_IDS"
) {
31
$action
->parent->param->Set($idsattr, $idsfam,
PARAM_USER
.
$action
->user->id,
$action
->parent->id);
32
$action
->parent->param->Set(
"ONEFAM_FAMOPEN"
, $openfam,
PARAM_USER
.
$action
->user->id,
$action
->parent->id);
33
}
else
{
34
$action
->parent->param->Set($idsattr, $idsfam,
PARAM_APP
,
$action
->parent->id);
35
$action
->parent->param->Set(
"ONEFAM_FAMOPEN"
, $openfam,
PARAM_APP
,
$action
->parent->id);
36
}
37
38
redirect(
$action
,
GetHttpVars
(
"app"
) ,
"ONEFAM_ROOT"
);
39
}
40
function
onefam_modmasterpref
(&
$action
)
41
{
42
onefam_modpref
(
$action
,
"ONEFAM_MIDS"
);
43
}
44
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase