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
setactpar.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: setactpar.php,v 1.3 2004/03/22 15:21:40 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage CORE
15
*/
16
/**
17
*/
18
// ---------------------------------------------------------------
19
// $Id: setactpar.php,v 1.3 2004/03/22 15:21:40 eric Exp $
20
// $Source: /home/cvsroot/anakeen/freedom/core/Action/Core/setactpar.php,v $
21
// ---------------------------------------------------------------
22
// $Log: setactpar.php,v $
23
// Revision 1.3 2004/03/22 15:21:40 eric
24
// change HTTP variable name to put register_globals = Off
25
//
26
// Revision 1.2 2003/08/18 15:46:41 eric
27
// phpdoc
28
//
29
// Revision 1.1 2002/01/08 12:41:33 eric
30
// first
31
//
32
// Revision 1.2 2001/02/07 11:31:11 yannick
33
// Ménage sur debug
34
//
35
// Revision 1.1 2001/02/06 16:32:45 yannick
36
// Add Action-Session set action
37
//
38
// Revision 1.2 2000/10/10 19:09:11 marc
39
// Mise au point
40
//
41
// Revision 1.1 2000/10/06 19:37:44 marc
42
// Creation
43
//
44
//
45
// ---------------------------------------------------------------
46
include_once (
"Class.Action.php"
);
47
// -----------------------------------
48
function
setactpar
(&
$action
)
49
{
50
// -----------------------------------
51
global
$_POST
;
52
reset($_POST);
53
$sapp =
GetHttpVars
(
"sapp"
,
$action
->name);
54
$sact =
GetHttpVars
(
"sact"
,
$action
->parent->name);
55
56
$key =
GetHttpVars
(
"key"
,
""
);
57
58
$app
=
new
Application
(
$action
->dbaccess);
59
$app
->Set($sapp,
$action
->parent);
60
$act =
new
Action
(
$action
->dbaccess);
61
$act->Set($sact,
$app
,
$action
->session);
62
63
if
($key !=
""
) {
64
if
($key !=
"all"
) {
65
$val =
GetHttpVars
(
"$key"
,
""
);
66
$act->ActRegister($key, $val);
67
}
else
{
68
global
$_POST
;
69
reset($_POST);
70
while
(list($k, $v) = each($_POST)) {
71
if
(($k !=
"key"
) && ($k !=
"sapp"
) && ($k !=
"sact"
)) {
72
$act->ActRegister($k, $v);
73
}
74
}
75
}
76
}
77
78
redirect(
$action
, $sapp, $sact);
79
}
80
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase