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
access_appl_chg.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: access_appl_chg.php,v 1.2 2003/08/18 15:46:41 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage ACCESS
15
*/
16
/**
17
*/
18
// ---------------------------------------------------------------
19
// $Id: access_appl_chg.php,v 1.2 2003/08/18 15:46:41 eric Exp $
20
// $Source: /home/cvsroot/anakeen/freedom/core/Action/Access/access_appl_chg.php,v $
21
// ---------------------------------------------------------------
22
// $Log: access_appl_chg.php,v $
23
// Revision 1.2 2003/08/18 15:46:41 eric
24
// phpdoc
25
//
26
// Revision 1.1 2002/01/08 12:41:33 eric
27
// first
28
//
29
// Revision 1.3 2001/11/09 15:39:52 eric
30
// correction nom registre
31
//
32
// Revision 1.2 2001/09/07 16:52:01 eric
33
// gestion des droits sur les objets
34
//
35
// Revision 1.1 2000/10/23 12:36:47 yannick
36
// Ajout de l'acces aux applications
37
//
38
// Revision 1.1 2000/10/23 09:10:27 marc
39
// Mise au point des utilisateurs
40
//
41
// Revision 1.1.1.1 2000/10/21 16:44:39 yannick
42
// Importation initiale
43
//
44
// Revision 1.2 2000/10/19 16:47:23 marc
45
// Evo TableLayout
46
//
47
// Revision 1.1.1.1 2000/10/19 10:35:49 yannick
48
// Import initial
49
//
50
//
51
//
52
// ---------------------------------------------------------------
53
include_once (
"Class.QueryDb.php"
);
54
include_once (
"Class.Application.php"
);
55
include_once (
"Class.Acl.php"
);
56
include_once (
"Class.Permission.php"
);
57
// -----------------------------------
58
function
access_appl_chg
(&
$action
)
59
{
60
// -----------------------------------
61
// select the first user if not set
62
// What user are we working on ? ask session.
63
$user_id =
GetHttpVars
(
"id"
);
64
$isclass = (
GetHttpVars
(
"isclass"
) ==
"yes"
);
65
$action
->log->debug(
"appl_id : "
. $user_id);
66
67
if
($isclass) {
68
$action
->Register(
"access_class_id"
, $user_id);
69
redirect(
$action
,
"ACCESS"
,
"OBJECT_ACCESS"
);
70
}
else
{
71
$action
->Register(
"access_appl_id"
, $user_id);
72
redirect(
$action
,
"ACCESS"
,
"APPL_ACCESS"
);
73
}
74
}
75
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase