Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
setactpar.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Generated Header (not documented yet)
8  *
9  * @author Anakeen
10  * @version $Id: setactpar.php,v 1.3 2004/03/22 15:21:40 eric Exp $
11  * @package FDL
12  * @subpackage CORE
13  */
14 /**
15  */
16 // ---------------------------------------------------------------
17 // $Id: setactpar.php,v 1.3 2004/03/22 15:21:40 eric Exp $
18 // $Source: /home/cvsroot/anakeen/freedom/core/Action/Core/setactpar.php,v $
19 // ---------------------------------------------------------------
20 // $Log: setactpar.php,v $
21 // Revision 1.3 2004/03/22 15:21:40 eric
22 // change HTTP variable name to put register_globals = Off
23 //
24 // Revision 1.2 2003/08/18 15:46:41 eric
25 // phpdoc
26 //
27 // Revision 1.1 2002/01/08 12:41:33 eric
28 // first
29 //
30 // Revision 1.2 2001/02/07 11:31:11 yannick
31 // Ménage sur debug
32 //
33 // Revision 1.1 2001/02/06 16:32:45 yannick
34 // Add Action-Session set action
35 //
36 // Revision 1.2 2000/10/10 19:09:11 marc
37 // Mise au point
38 //
39 // Revision 1.1 2000/10/06 19:37:44 marc
40 // Creation
41 //
42 //
43 // ---------------------------------------------------------------
44 include_once ("Class.Action.php");
45 // -----------------------------------
46 function setactpar(&$action)
47 {
48  // -----------------------------------
49  global $_POST;
50  reset($_POST);
51  $sapp = GetHttpVars("sapp", $action->name);
52  $sact = GetHttpVars("sact", $action->parent->name);
53 
54  $key = GetHttpVars("key", "");
55 
56  $app = new Application($action->dbaccess);
57  $app->Set($sapp, $action->parent);
58  $act = new Action($action->dbaccess);
59  $act->Set($sact, $app, $action->session);
60 
61  if ($key != "") {
62  if ($key != "all") {
63  $val = GetHttpVars("$key", "");
64  $act->ActRegister($key, $val);
65  } else {
66  global $_POST;
67  foreach ($_POST as $k => $v) {
68  if (($k != "key") && ($k != "sapp") && ($k != "sact")) {
69  $act->ActRegister($k, $v);
70  }
71  }
72  }
73  }
74 
75  redirect($action, $sapp, $sact);
76 }
global $action
global $_POST
Definition: chgpasswd.php:17
$app
setactpar(&$action)
Definition: setactpar.php:46
← centre documentaire © anakeen