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
import_useracl.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
* import USER login and acl
9
*
10
* @param string $filename the file which contain new login or ACLs
11
* @author Anakeen 2002
12
* @version $Id: import_useracl.php,v 1.2 2003/08/18 15:46:41 eric Exp $
13
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
14
* @package FDL
15
* @subpackage WSH
16
*/
17
/**
18
*/
19
// ---------------------------------------------------------------
20
// $Id: import_useracl.php,v 1.2 2003/08/18 15:46:41 eric Exp $
21
// $Source: /home/cvsroot/anakeen/freedom/core/Api/import_useracl.php,v $
22
// ---------------------------------------------------------------
23
include_once (
"Lib.Http.php"
);
24
include_once (
"ACCESS/upload.php"
);
25
26
$filename
=
GetHttpVars
(
"filename"
);
27
$content
= file(
$filename
);
28
29
$tnewacl
= array();
30
while
(list($k, $v) = each(
$content
)) {
31
switch
(substr($v, 0, 1)) {
32
case
"U"
:
33
changeuser
(
$action
, substr($v, 2) ,
true
);
34
break
;
35
36
case
"A"
:
37
changeacl
(
$action
, substr($v, 2) ,
true
);
38
break
;
39
}
40
}
41
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase