gibbo1715 Posted November 19, 2009 Share Posted November 19, 2009 HI all Does anyone know where i can find the following, im getting my head round php slowly but this would help me out a lot What im after is a script that works with a mysql database that allows users to be registered by an administrator into different usergroups and then based on usergroup be able to give access to different parts of the site I d like to be able to create as many usergroups as i like and then assign pages to that usergroup hope that makes sense, if anyone can point me to something that does this or would get me started i d ap[preciate it thanks Gibbo Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted November 19, 2009 Share Posted November 19, 2009 Most things with specific permissions deals with something call ACL (Access control lists), but are a fairly complicated topic when you get to the lowest level of it. The data structures typically deal with integers representing permissions and utilizing bitmasks to check these permissions. Unfortunately, since you're new, which is no big deal since we all were just starting out at some point, it would probably be pretty scary. If you really want to look into how real systems do it, or if you're feeling adventurous, you can google "Access control list" or "ACL". You could also check out Zend Framework's ACL class: http://framework.zend.com/manual/en/zend.acl.html . edit: broken link, silly period. Quote Link to comment Share on other sites More sharing options...
gibbo1715 Posted November 19, 2009 Author Share Posted November 19, 2009 Thanks, i ll have a look, i was wondering about just having some tables in a my sql database and when the user runs a page just checking his session against the access level required for that page but it sounds like theres a bit more to it than that thanks gibbo Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted November 19, 2009 Share Posted November 19, 2009 Well you can also do that. There are probably an infinite number of ways you can implement access control; I was merely pointing out the method most used in large systems. Quote Link to comment Share on other sites More sharing options...
gibbo1715 Posted November 20, 2009 Author Share Posted November 20, 2009 Thanks for your help, I d better get reading me thinks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.