• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[LIBRARY] XACL(v:0.01a) - XML Access Control List - Enables simple ACL management with an XML ACL file

#1
[eluser]nedloh312[/eluser]
This is the first library i have ever released for public ever (Including before CodeIgniter:O!), so please go easy!

This library is aimed at creating a simple to use, easy to manage ACL. The inspiration case from mx_acl which didn't suit all my needs so i decided to start it again.

The XML file Format (acl.xml) is quite easy to understand as you can see here:
Code:
<acl>
    <pages>
        <page>
            <hrefs>&lt;!--Unlimited URI's per rule--&gt;
                <href>admin/edit</href>
                <href>admin/update</href>
                <href>admin/delete</href>
            </hrefs>
            <allowed>4</allowed>&lt;!--Blocks based on user role--&gt;
            <redirect>true</redirect>&lt;!--Whether to redirect the user or simply show an error--&gt;
            <errormsg>You are not allowed to see this page.</errormsg>&lt;!--Show's the error to the user, either before or after redirecting.--&gt;
        </page>
        <page>
            <href>sales/delete</href>&lt;!--Single URI--&gt;
            <allowed>3</allowed>
            <redirect>true</redirect>
            <errormsg>You are not allowed to see this page.</errormsg>
        </page>
    </pages>
</acl>
—————————————————————————————————————————————————————————————----

Features:

Simple To Use
The ability to specify more than 1 link per rule. This enables you to block a larger number of URI's without the need to create an extremely large ACL.

No silly script initialization
Automatically checks whether the user has permission to view the current page.

XML ACL enables higher control over users
Powerful XML ACL
—————————————————————————————————————————————————————————————----

How To Use:
Simply move the files from the zip file to your CodeIgniter application directory. Making sure to change your cache_path in your CodeIgniter config.php file to match the new location of your acl.xml.


Messages In This Thread
[LIBRARY] XACL(v:0.01a) - XML Access Control List - Enables simple ACL management with an XML ACL file - by El Forum - 12-28-2009, 12:15 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.