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