-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
60 lines (40 loc) · 1.53 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
NAME:
phpGACL - PHP Generic Access Control List.
AUTHORS:
Mike Benoit <ipso@snappymail.ca>
MAILING LISTS:
See here: http://sourceforge.net/mail/?group_id=57103
INSTALL:
Please refer to the docs/MANUAL or the "Manual" / API Guide link at http://phpgacl.sourceforge.net/
Consult the example.php file in this directory.
UPGRADING:
MAKE A BACKUP FIRST!
MAKE A BACKUP FIRST!
MAKE A BACKUP FIRST!
Then run setup.php. It will most likely NOT work, as ADODB's XML Schema still needs some work.
Upgrading from ANY version to v3.3.x WILL NOT WORK YET! The schema format has changed way
to much.
Unless your running PostgreSQL, then upgrading from 3.1.x or older to 3.2.x or newer will require
a complete dump (including column names), dropping the database, running setup.php, then
importing the dump.
SYNOPSIS:
require_once("gacl.class.php");
$gacl_options = array(
'db_type' => 'mysql',
'db_host' => 'localhost',
'db_user' => 'root',
'db_password' => '',
'db_name' => 'gacl',
);
$gacl = new gacl($gacl_options);
if ( $gacl->acl_check( <ACO Section VALUE>, <Access Control Object VALUE> , <ARO Section VALUE>, <Access Request Object VALUE> ) ) {
echo "Access Granted!";
} else {
echo "Access Denied!";
}
DESCRIPTION:
See here: http://phpgacl.sourceforge.net/
COPYRIGHT:
Copyright (c) 2004 Mike Benoit, All rights reserved.
This software is released under the GNU Lesser General Public License.
Please read the disclaimer at the top of the gacl.inc.php file.