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_user_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_user_chg.php,v 1.4 2007/02/14 15:13:16 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_user_chg.php,v 1.4 2007/02/14 15:13:16 eric Exp $
20
// $Source: /home/cvsroot/anakeen/freedom/core/Action/Access/access_user_chg.php,v $
21
// ---------------------------------------------------------------
22
// $Log: access_user_chg.php,v $
23
// Revision 1.4 2007/02/14 15:13:16 eric
24
// Fixes for session values in access interfaces
25
//
26
// Revision 1.3 2007/02/14 13:22:41 eric
27
// Add user filter on ACCES when too many users
28
//
29
// Revision 1.2 2003/08/18 15:46:41 eric
30
// phpdoc
31
//
32
// Revision 1.1 2002/01/08 12:41:33 eric
33
// first
34
//
35
// Revision 1.3 2001/08/28 10:12:50 eric
36
// modification pour la prise en comptes des groupes d'utilisateurs
37
//
38
// Revision 1.2 2000/10/23 12:36:04 yannick
39
// Ajout de l'acces aux applications
40
//
41
// Revision 1.1 2000/10/23 09:10:27 marc
42
// Mise au point des utilisateurs
43
//
44
// Revision 1.1.1.1 2000/10/21 16:44:39 yannick
45
// Importation initiale
46
//
47
// Revision 1.2 2000/10/19 16:47:23 marc
48
// Evo TableLayout
49
//
50
// Revision 1.1.1.1 2000/10/19 10:35:49 yannick
51
// Import initial
52
//
53
//
54
//
55
// ---------------------------------------------------------------
56
include_once (
"Class.QueryDb.php"
);
57
include_once (
"Class.Application.php"
);
58
include_once (
"Class.Acl.php"
);
59
include_once (
"Class.Permission.php"
);
60
// -----------------------------------
61
function
access_user_chg
(&
$action
)
62
{
63
// -----------------------------------
64
// select the first user if not set
65
// What user are we working on ? ask session.
66
$user_id =
GetHttpVars
(
"id"
);
67
$group = (
GetHttpVars
(
"group"
) ==
"yes"
);
68
$filteruser = getHttpVars(
"userfilter"
);
69
70
$action
->log->debug(
"user_id : "
. $user_id);
71
72
if
($group) {
73
$action
->Register(
"access_group_id"
, $user_id);
74
redirect(
$action
,
"ACCESS"
,
"GROUP_ACCESS"
);
75
}
else
{
76
$action
->Register(
"access_user_id"
, $user_id);
77
redirect(
$action
,
"ACCESS"
,
"USER_ACCESS&userfilter=$filteruser"
);
78
}
79
}
80
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase