A CMS system where screen will be showed based upon the access provided CMS backend

Discussion in 'PHP' started by Business Analyst, Feb 5, 2010.

  1. #1
    Hi,
    The requirements is that in a application from the backend CMS the admin will create users and corresponding area of accessibility i.e. suppose for reporting related user can access only reporting functions and none other than that. The user creator person can access and create/edit/delete only the user from the system.


    I am using PHP for this. Can anybody help me how can I implement this in a solution any Web Tutorial Links that can give me an example so that I can get acquainted and do my work.

    Any nice tutorial or example will be greatly appreciated..............

    Thanks
    BA:)
     
    Last edited: Feb 5, 2010
    Business Analyst, Feb 5, 2010 IP
  2. 0x00

    0x00 Well-Known Member

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    115
    #2
    The simplest way would be to have a row in the users table called 'access' for example:

    value -- access
    100 -- reports
    200 -- users
    300 -- full-admin

    etc... and then you can easily have that row embedded in the users session as he/she logs in.. then show the appropriate pages for that access level in the admin panel..
     
    0x00, Feb 6, 2010 IP
  3. tygas

    tygas Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Most of todays frameworks are using ACL component which lets you define functions with user groups access

    Google for:
    zend acl
    cakephp acl
     
    tygas, Feb 6, 2010 IP