[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><!--Unlimited URI's per rule-->
<href>admin/edit</href>
<href>admin/update</href>
<href>admin/delete</href>
</hrefs>
<allowed>4</allowed><!--Blocks based on user role-->
<redirect>true</redirect><!--Whether to redirect the user or simply show an error-->
<errormsg>You are not allowed to see this page.</errormsg><!--Show's the error to the user, either before or after redirecting.-->
</page>
<page>
<href>sales/delete</href><!--Single URI-->
<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.